You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After Power ON, the MQTT sends an ONLINE once in the field McL/config. A connected client receives this status. A new client or a new query brings an OFFLINE, although the McL is still switched on and working.
To Reproduce
MQTT Broker Mosquitto
MQTT-client Node-Red
MQTT-Client Laptop
ESP McL with SK6812
a) Node-Red is connected to the broker. The field McL/config is subscribed.
Power on ESP. Node-Red MQTT says ONLINE
b) Laptop establishes a new connection to the broker The McL/config field is subscribed to. I see an OFFLINE. But the ESP is ONLINE
c) Node-Red MQTT-Client makes a reconnect to Broker. Subscribes to new McL/config. The answer is OFFLINE. But the ESP is ONLINE
d) Power OFF from ESP all MQTT clients get an OFFLINE
The text was updated successfully, but these errors were encountered:
Works as expected here but i think that the out message for the new status could be sent faster e.g my HASS shows the "old" state for around 5-10 seconds after switching on/off as it waits for the feedback...
There is a programmable delay in the definitions.h file.
#define DELAY_MQTT_HA_MESSAGE 5
This is so that it doesn't flood HA with too many messages all at the same time. It waits for it to be in a stable state and then sends the message. But it is configurable in the sketch.
Describe the bug
After Power ON, the MQTT sends an ONLINE once in the field McL/config. A connected client receives this status. A new client or a new query brings an OFFLINE, although the McL is still switched on and working.
To Reproduce
a) Node-Red is connected to the broker. The field McL/config is subscribed.
Power on ESP. Node-Red MQTT says ONLINE
b) Laptop establishes a new connection to the broker The McL/config field is subscribed to. I see an OFFLINE. But the ESP is ONLINE
c) Node-Red MQTT-Client makes a reconnect to Broker. Subscribes to new McL/config. The answer is OFFLINE. But the ESP is ONLINE
d) Power OFF from ESP all MQTT clients get an OFFLINE
The text was updated successfully, but these errors were encountered: