Quantcast
Channel: ESPHome - Home Assistant Community
Viewing all articles
Browse latest Browse all 1486

How to configure ESPHome mqtt sensor to show OFF when unavailable?

$
0
0

Hello, I have simple PIR sensor that turns power on ESP8266 and sends mqtt state “on”. Then it cuts off power to ESP, so in Home Assistant it becomes “unavailable” after some time. But I would prefer to show sensor state as “off”, because in this case unavailable means “off”. How the sensor would be configured in configuration.yaml please? It is simplest PIR sensor - just to connect ESP power to PIR out pin. Thank you!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1486

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>