Skip to content

MQTT publishes are lost in some cases #2534

@Programie

Description

@Programie

What happened?

In rare cases, MQTT topics published by an app in AppDaemon are lost without any error message in the logs.

Unfortunately, it's really hard to reproduce as it only seem to happen once in a few days. I'm still trying to find a way to reproduce it.

The issue only happens in AppDaemon. I can't reproduce the same issue in other applications connected to the same MQTT broker (like Home Assistant and Node-RED).

Last year, I've moved a lot of stuff from Node-RED to AppDaemon and Node-RED never had any issues with missed MQTT topics.

Version

4.5.10

Installation type

Python virtual environment

Relevant log output

Nothing, as no errors or warnings are logged in that case (neither from AppDaemon nor from my MQTT broker).

Relevant code in the app or config file that caused the issue

self.mqtt.mqtt_publish(topic="my-topic", payload="my payload", qos=1, retain=True)

Anything else?

In case it's relevant: I'm using mosquitto (version 2.0.22) as MQTT broker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issueSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions