Hi
I’m trying to find a way to check for a state of a device and if it meets requirements, trigger automation.
To show a one example: I have motion sensor that turn light on/off. There’s a automation that triggers if it goes to off
with making light off as a result. But there are situations when this simple conditions can be bypassed for some reason. Because I’m not sure what can cause it (and even if I find one issue I can’t be sure if there aren’t more) I wanted to add some periodical check (with defined periods) that would work in a way that if light are on and motion sensor is off wait for some time and turn lights off.
The issue is I can’t find something that could do this periodical…scans…And I’m pretty sure I read long time ago about something like that. Any suggestions?
https://www.home-assistant.io/docs/automation/trigger/#time-pattern-trigger
This is rarely a good solution though. Much better to trigger on states.
Thanks! I knew I’ve seen it somewhere.
Yeah, I know it not the best solution but I need to do some prevention in order to minimize annoyance that can happen right now. And meanwhile I will have to try and find what’s the actual issue is and find better motion sensors then Sonoff SNZB-04…