How do you trigger of an unavailable device?

Tags: #<Tag:0x00007f32844b8418>

Last night I had an esphome board with a DHT22 sensor die and HA detected that it was “unavailable”. How can I create an automation to do something (turn on a light, sent a message, etc.) when a device or entity goes unavailable?

Regards,
Bill

State trigger with the entity ID and to: 'unavailable'

Thank you!!

1 Like