I am trying to pass final inspection on my new master suite addition. One of the flagged items was not having a motion switch that will turn off the lights in the bathroom when there is no motion. Well, I have a smart switch and a motion sensor so that should be easy right? Guess not
I have a Zooz smart switch that works now that I excluded and re-included it using no security. I was having issues with it before, but I can turn it off and on using hubitat. I have an Iris motion sensor. I setup the following automation in Simple Automation.
Some logs may help understand it better, and confirming that you also see motion become active and then switch to inactive. Assuming that is what you meant, just wanted to make sure.
I want when the motion sensor becomes inactive, wait 1 minute then turn off light switch. Basically, turn off the light if there is no motion in the bathroom after X minutes.
Wasn't thinking there was anything wrong with the setup of the rule, just that the logs can help better understand what is (or isn't) happening. From the events log you provided that appears to be working... So like @Sebastien asked for, the logs from the app / rule are the next thing to check.
I think you do have it setup wrong. You have it set to turn off with motion. Set it to turn on, then it will turn off when there is no motion. The rule doesn’t turn it on, which is probably why it doesn’t turn it off.