Bug: MQTT messages are not sent with retain flag although HASS.agent is set to do so #128
Closed
3 of 4 tasks
Labels
bug
Something isn't working
Describe the bug
Although I have marked the option "retain flag" for MQTT, it seems it doesn't work. Checked with some MQTT clients and I don't see the sensor messages being sent as retained.
I can confirm that If I restart my Home Assistant server, all the sensors from Hass.agent will change to "Unknown" until the MQTT broker gets another updated message. (Occurs for both Hass.agent and Satellite Service sensors)
Expected behavior
I was expecting the #/state topic messages to be sent with a retain flag then Home Assistant would show the last sensors states after restart.
For instance, if I inspect the topic "homeassistant/sensor/WINDOWS_10/WINDOWS_10_lastboot/state" there is not retain flag, therefore the state of the entity inside Home Assistant will be "unknown" until I either restart Hass.agent, Windows or the entity changes its state (which can take days for some entities. E.g. Last boot entity).
Screenshots
Misc info (please complete the following information):
winver.exe
output): Windows 10 Version 21H2 (OS Build 19044.1826)Please check what's applicable (multiple answers possible):
The text was updated successfully, but these errors were encountered: