I have a number of outside lights on the front of our house which are all programmed into a scene. One of these is a bright porch light which I am trying to change to bright white when motion is detected on the sensor.
My rule checks to see if we're in night mode, the outside lights are already on or the light level is low. If any of these are true then the porch light should go bright. That bit works great! When no motion is detected then after a minute I am trying to check to see if the rest of the outside light master virtual switch is on, then resume the scene (currently called Outdoor Font - East) or if the outside lighting switch is off then turn porch light off. Again this part seems to work too.
The bit where I seem to have the issue and I thought I had set this up right but clearly not. When motion is not detected long enough for the sensor to show inactive, the minute countdown starts and carries out the resuming of the scene, even if motion is detected again within that minute. I would expect it to stop the count down and go back to the start of the rule
Advice is appreciated, I've included a screenshot of the rule.