Afternoon all,
Can someone take a look at my piston below please and see if they can work out what’s not set correctly. I’ve taken Dustin’s awesome example from the Webcore wiki and extended it to include two motion sensors (one in my hallway and one at the top of the stairs). I’ve got a hue bulb downstairs and a ST outlet powering a lamp upstairs. Essentially, when either motion sensor detects motions AND the lux level is <= 10 I have both lights switch on. After two minutes of inactivity the lights should go off.
What’s not working is that when the 2 minutes inactivity countdown starts, if I walk back in front of the motion sensor I want the countdown to reset to two minutes - this doesn’t happen. The lights go off after two minutes even if I’m doing a dance in front of the hallway motion sensor.
I’ve added the check to see if either of the lights are on to overcome the motion sensor being active and the lux level now being > 10 due to a light being on.
Thanks in advance
Ade