Skip to content

System status reported as Unknown after HA restart #2086

Closed Answered by proddy
FredericMa asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, so we keep the <base>/status topic as is, which is either offline or online and make it MQTT retain.

The line

    queue_publish_retain("status", "online", false); // with retain off

in Mqtt::on_connect() goes to ..., true)

so don't use anything from the heartbeat (binary_sensor.system_status)

Replies: 8 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@proddy
Comment options

@FredericMa
Comment options

@proddy
Comment options

@proddy
Comment options

Answer selected by FredericMa
Comment options

You must be logged in to vote
2 replies
@proddy
Comment options

@proddy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Question about something
4 participants
Converted from issue

This discussion was converted from issue #2085 on October 12, 2024 21:27.