Skip to content

The sensor "state" does not update in Home Assistant #58

Answered by PricelessToolkit
r2-4b asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Delete the sensor from the "HA" MQTT sensor list.
  2. Trigger Sensor.
  3. check if the status is "mail"
  4. Publish "empty" to topic. "homeassistant/sensor/mbox/state" and don't just set the status to "empty"

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

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@PricelessToolkit
Comment options

Answer selected by r2-4b
@r2-4b
Comment options

@PricelessToolkit
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants