[SOLVED] Strange behavior on MQTT Gateway Reset
-
Hello @electrik and @Yveaux ; thanks for the answers.
It's still not totally clear who is retaining those messages.
It's a mosquitto issue, an issue from the Controller (OpenHAB2 or HomeAssistant) or a driver issue from MySensors?
BTW, the last case, having updated the MQTT Mysensors gateway as well as the affected sensor leaf, I would discard this last option.
I need to understand as well how to read the debug messages from mosquitto. It doesn't contain the message value and have no idea if the retain flag is set or not :-) I know that's a little off topic :-)
Any further help is appreciated!Happy Holidays!!
Simon
-
Hello @electrik and @Yveaux ; thanks for the answers.
It's still not totally clear who is retaining those messages.
It's a mosquitto issue, an issue from the Controller (OpenHAB2 or HomeAssistant) or a driver issue from MySensors?
BTW, the last case, having updated the MQTT Mysensors gateway as well as the affected sensor leaf, I would discard this last option.
I need to understand as well how to read the debug messages from mosquitto. It doesn't contain the message value and have no idea if the retain flag is set or not :-) I know that's a little off topic :-)
Any further help is appreciated!Happy Holidays!!
Simon
@xefil said in Strange behavior on MQTT Gateway Reset:
driver issue from MySensors
MySensors Sensors, Repeaters and Gateways do not remember or cache any messages.
If messages are retained somehow, this is certainly not caused by the MySensors network. -
MySensors does set the retain message on I_BATTERY_LEVEL messages (but no other messages). Such messages are not present in the above debug log, but I thought I'd add a note here for completeness.
Discussion on extending the retain flag to more message types: https://github.com/mysensors/MySensors/issues/1026
-
MySensors does set the retain message on I_BATTERY_LEVEL messages (but no other messages). Such messages are not present in the above debug log, but I thought I'd add a note here for completeness.
Discussion on extending the retain flag to more message types: https://github.com/mysensors/MySensors/issues/1026
@mfalkvidd said in Strange behavior on MQTT Gateway Reset:
MySensors does set the retain message on I_BATTERY_LEVEL messages (but no other messages)
If the define MY_MQTT_CLIENT_PUBLISH_RETAIN is used, all messages are retained. But that is not active by default, so probably not used in this case. Just to be complete ;-)
-
@mfalkvidd said in Strange behavior on MQTT Gateway Reset:
MySensors does set the retain message on I_BATTERY_LEVEL messages (but no other messages)
If the define MY_MQTT_CLIENT_PUBLISH_RETAIN is used, all messages are retained. But that is not active by default, so probably not used in this case. Just to be complete ;-)
@electrik said in Strange behavior on MQTT Gateway Reset:
@mfalkvidd said in Strange behavior on MQTT Gateway Reset:
MySensors does set the retain message on I_BATTERY_LEVEL messages (but no other messages)
If the define MY_MQTT_CLIENT_PUBLISH_RETAIN is used, all messages are retained. But that is not active by default, so probably not used in this case. Just to be complete ;-)
Thanks!
Well, I've succesfully deleted the retained messages via cli using mosquitto command:mosquitto_pub -t <my_retained_topic> -r -nMaybe it was set by the controller, then removed, but mqtt was retaining it.
Simon
-
@electrik said in Strange behavior on MQTT Gateway Reset:
Great thanks for your feedback!
Thanks to you for the support and hints ;-)
I wish you a happy new year!
Simon