Waiting for no motion doesn't work

I put in a couple of Zooz switches yesterday. I have a Zen76 on-off switch for the garage lights. I also have a Zooz motion sensor in the garage. I'd like to turn the light off if there's no motion. So I tried this, but it stops at the 'wait' step, and doesn't turn off the light.

Trigger: Garage light physical on

Delay 0:00:30
Wait for event: Garage motion motion inactive and stays that way for: 0:05:00
Off: Garage light

Log:
app:882023-01-07 08:16:57.558 AMinfoAction: Wait for event: Garage motion motion inactive and stays that way for: 0:05:00

app:882023-01-07 08:16:57.545 AMinfoDelay Over: Delay 0:00:30

app:882023-01-07 08:16:27.500 AMinfoAction: Delay 0:00:30

app:882023-01-07 08:16:27.427 AMinfoTriggered: Garage light physical on

Was there actually a "motion: inactive" event from the sensor? Adding the info logs from that device to the logs may be helpful to see.

1 Like

Guessing the delay is the problem. Became inactive before the 30 seconds was up.

temperature 59.04 °F Garage motion: Temperature is 59.04°F DEVICE Garage motion 2023-01-07 08:17:51.509 AM PST
motion inactive Garage motion motion became inactive DEVICE Garage motion 2023-01-07 08:16:44.848 AM PST
motion active Garage motion motion became active DEVICE Garage motion 2023-01-07 08:16:30.950 AM PST
illuminance 0 Lux Garage motion: Illuminance is 0Lux DEVICE Garage motion 2023-01-07 08:09:45.351 AM PST

Ya just remove the 30 second delay or add it to your 5 min delay if you want 5:30.

Personally I'd do the off with a 5 minute delay on it. Kinda like this one I have for a fan:

2 Likes

I have no idea where your light switch is in relation to you motion sensor. Can the light be turned on without the motion going active? In a situation like that, I'd use Wait for Expression instead of Event. It'll look at the state instead of waiting for a discrete event that may not happen anytime soon.

My general rule is if the trigger and the wait are looking at the same device then Wait for Event is fine. If they aren't the same then Wait for Expression is my preference.

2 Likes

Thanks. This has helped me think more about Expressions vs Events. Rule's working now.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.