[Solved] Auto reset motion sensor state
abmantis last edited by abmantis
Is there any way to set the state of a motion sensor (binary_sensor) to "off" from Home Assistant?
My sensor sends a TRIPPED=0 when there's no movement, but if the message is lost or the sensor goes out of battery, I want it to appear as "off" in HA after some time.
You could use a template binary sensor that is based on the mysensors binary sensor but also checks time since last changed state.
See the last example here for how to use last changed state.
abmantis last edited by
@martinhjelmare great idea! Thank you.