I have a motion sensor in my garage and my intent is to use it as a nighttime alarm. But I’m also in there during the day so I have constant “detection” and “cleared” events.
I could accomplish everything I want with just 2 automations: one that turns on the lights when motion is detected, and another that turns them off after a few minutes of inactivity. I’m stumped on that second one. Seems like “inactivity” and “presence detection” are still a challenge for home automation.
Any ideas for an automation, script or combination of the 2 that does something after 5 minutes with no “motion detected” from a particular sensor?