Second Motion Dependent On First Motion


#1

I am trying to create a piston where if a second motion sensor is not triggered within a certain time of the first motion sensor then the light will turn off. I can’t figure out how to include the second motion with a 20 second time limit.

If Motion 1 Changes to Active
.
[Include Motion 2, but wait 20 seconds after Motion 1 was activated]
.
Then
Turn Off Light
Else (motion 2 was activated within 20 seconds of motion 1)
Light Stays On


#2

Something like this? (ignore the top variables)


#3

Or possibly this:

Note: I haven’t actually tested any of these. Just tried to throw together a couple examples that might work.


#4

Thanks. I didn’t know about the follow by operator. I’ll have to test out both and see which works.