Turning lights off after 10 mins if no motion or other doors opened


#1

1) Give a description of the problem
If someone opens a door midway through the 10 mins I want this to reset the 10 min timer, not continue the original 10 min timer

2) What is the expected behaviour?
I have a house with enterances to two different units. I have door sensors on both doors and a motion sensor in the hallway. I have setup 3 pistons setup for each such that if any door is opened or the motion sensor detects motion they turn on the hallway lights.

I am trying to design a piston that turns off the hallway lights after 10 mins of no activity in ANY of the sensors

So if Door #1 was opened and closed, then 5 mins later door #2 was open and closed, it would be 10 mins after door #2 was closed that the lights turned off, not after the closing of door #1

3) What is happening/not happening?
Every design I come up with seems to not turn the lights off. I am new to webcore and this is my first time using an “and” statement and I think that is where the issue is coming from

Thanks for any suggestions you can offer!


#2

Hi there,
Not in front of my comp. but i will take a look at it in a couple of hours, unless someone jumps in…


#3

I believe this would do the trick:

IF all of Door 1 and Door 2's contact stays closed for 10 minutes
    Then Turn off light
END IF