Send OFF Repeat in X time

I have esphome connected to HA with several sensors.
My problem is that the PIR sensor Only sends the state when it changes, if for some reason the esphome node can not contact HA when sending the off signal, the sensor stays in ON state in HA until it changes state again.

How can I solve this? I’m thinking the best is ESPHome repeat the oFF time every x time. But How?

Use a template binary sensor in ESPHome to store the PIR state. This will be sent to home assistant when it reconnects like all the other sensors. Now the only way it could fail is if the PIR was disconnected from ESPHome.

1 Like