Skip to content

Feature Request: Publish state when homeassistant/status = online #1785

@maxihatop

Description

@maxihatop

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions