-
Notifications
You must be signed in to change notification settings - Fork 409
Description
Problem:
After Home Assistant restarts, the state of OpenBK devices is often shown as unknown, and device diagnostics are unavailable.
Currently, the only ways to restore state are:
enable periodic status broadcast (adds MQTT traffic and unnecessary flash wear) [Flag 2 ON],
manually reboot the OpenBK device,
toggle the device so it publishes something.
All three options are inconvenient.
Proposed Solution:
When the device receives the standard HA message
homeassistant/status online
it should immediately publish its full state (the same data normally published on broadcast interval).
Benefits:
Ensures HA quickly restores correct device state after restart.
Eliminates the need for periodic broadcasts (or allows them to be set to a much longer interval, e.g. 10 minutes).
Reduces MQTT traffic and flash wear.
Improves user experience: no manual toggling or rebooting required.
Summary:
→ Problem: after HA restart, OpenBK devices appear as unknown until they publish again.
→ Solution: publish full state once when HA announces itself online.
→ Result: correct state recovery, less traffic, more reliability.