Rule with Motion Sensor

Having a problem with this rule, and hoping someone can enlighten me.
I want my garage lights to come on and stay on as long as the garage door is open. I also want my garage lights to come on and stay on as long as I am moving around in the garage, even if the garage door is closed.

Typically, I go into the garage and the motion sensor makes the lights come on (good so far). Then I frequently open the garage door, and the lights stay on for as long as the garage door is open (good so far). However, when I go into the garage and don't open the garage door, the garage lights come on immediately, and then go out after a few minutes, even though I am moving around. I then dance in front of the motion sensor and the lights still do not come on. The motion sensor is an Ecolink and it has a 4 minute reset interval. There is no HE Motion App instance tied to this particular motion sensor.

I thought that if I was active in the garage, the motion sensor would keep triggering the Rule and cancel the previous command to turn off the lights. Is that not true?

Rule

Here is what I would recommend changing the “Wait for event” to “Wait for Expression” and add a 5 minute duration.

With this change, you will want to remove the 5 minute delay to the “Off” command.

Is there any particular reason that you did this with a rule, and not using Motion Lighting app?

But if you want to keep the rule mostly as is (although Sebastien's method is probably better) you can change delayed to "Cancelable" option, and insert as the first action of the rule "Cancel Delayed Actions".

1 Like