I’m integrate my device to HA via mqtt, when i’m connect to broker and subscribe to receive HA status (homeassistant/status), i’m immediately receive ‘offline’. If restart HA, then receive offline, then online.
Why on connect i only receive offline? How to receive online on connect to mqtt broker (HA already connect to that broker). Or, how to query current HA status via mqtt?
MQTT Birth and Last will - Home Assistant — that’s not help.
The log looks like:
homeassistant/status offline
homeassistant/sensor/0x00158d0006d4ded6/battery/config {“availability”:[{“topic”:“zigbee2mqtt/bridge/state”},{“topic”:“zigbee2mqtt/Button_GardenLights/availability”}],"availability_
homeassistant/sensor/0x00158d0006d4ded6/voltage/config {“availability”:[{“topic”:“zigbee2mqtt/bridge/state”},{“topic”:“zigbee2mqtt/Button_GardenLights/availability”}],"availability_
homeassistant/sensor/0x00158d0006d4ded6/action/config {“availability”:[{“topic”:“zigbee2mqtt/bridge/state”},{“topic”:“zigbee2mqtt/Button_GardenLights/availability”}],"availability_m