The sensor "state" does not update in Home Assistant #58
-
Everything works so far. I tested everything with the "OLED" version. As soon as I trigger the motion sensor, the RSSI and battery status are updated immediately in HASS, but not the state. When I click on MQTT in HASS, the sensor information appears. In the subscribed topics, I see the last 10 payloads and when they were triggered. That all seems correct, but the "state" sensor does not update and always remains on "Mail" or any other status I set it to. Even after triggering, it does not revert to the correct state. Attached is the Diagnostic File from HASS: Here i have triggered it a few times and it stays "empty" RSSI working great, refreshes at every triggerig: What could be the cause of this? Because as it stands, I cannot use it for HASS yet :-( |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi, To reset the "Mail" state, don't just set it from HA. Use MQTT publish like "empty" to the topic. |
Beta Was this translation helpful? Give feedback.
-
Hi,No, unfortunately, you did not understand the problem correctly. The status can be set to "Empty" without any issues. However, once the motion sensor is triggered, the status no longer changes to "Mail."
|
Beta Was this translation helpful? Give feedback.
If you change the status from HA even once, after that it will not work.
PS: You used this code, right? https://github.com/PricelessToolkit/MailBoxGuard/tree/main/Code/MQTT_JSON