Upon restart of HA, MQTT entities, such as binary_sensor.doorwin_digoo_under_stairs_door have an unknown state. For that particular device, it does not get a state until the next time its state changes.
Having a default value is likely not the answer, so the reality is that workflows likely need to take this into account, such as the Downstairs Hallway Sensors Flow. Without it in that particular example, the lights do not turn off because it fails to confirm that the door is closed.
Upon restart of HA, MQTT entities, such as
binary_sensor.doorwin_digoo_under_stairs_door
have an unknown state. For that particular device, it does not get a state until the next time its state changes.Having a default value is likely not the answer, so the reality is that workflows likely need to take this into account, such as the
Downstairs Hallway Sensors
Flow. Without it in that particular example, the lights do not turn off because it fails to confirm that the door is closed.