Hi All,
I configured this in HA:
mqtt:
fan:
- name: "Recuperatore DRU50"
command_topic: "rec46/onoff"
state_topic: "rec46/onoff/state"
availability_topic: "rec46/will"
retain: true
And this automation:
alias: START HA aggiorna MQTT
triggers:
- event: start
trigger: homeassistant
conditions: []
actions:
- data:
payload: online
topic: rec46/will
action: mqtt.publish
mode: single
With MQTT EXPLORER I can see that the retained value are present…
But when HA starts, the fan is in unknow status.
after startup, can HA reads the retained value?