JonathanCasey / home-assistant-config

Configuration for hassio / home assistant
3 stars 0 forks source link

Handle unknown mqtt entity states #258

Open JonathanCasey opened 2 years ago

JonathanCasey commented 2 years ago

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.