I am sure I am missing something basic here. I have just moved my Shelly 1 to MQTT and have it working fully. However, every time I restart HA, the Shelly defaults to ‘unavailable’. If I go to the Shelly web interface and reset the device, it becomes available and works as expected.
My HA config:
switch: - platform: mqtt name: "Bedroom light" state_topic: "shellies/shelly1/relay/0" command_topic: "shellies/shelly1/relay/0/command" availability_topic: "shellies/shelly1/online" payload_on: "on" payload_off: "off" payload_available: "true" payload_not_available: "false" retain: true
In the Shelly MQTT config, I have ‘clean session’ and ‘retain’ checked, and max QOS set to 0 (default).
What am I missing?