Help with loops for motion sensor


#1

1) Give a description of the problem
I want the Piston to repeat the waiting period before turning of the bathroom lights if motion was activated again.

2) What is the expected behavior?
Motion is detected, turn on bathroom lights. Motion were not active for at least 3 minutes, then turn off bathroom lights. If motion is active repeat 3 minute waiting period until this condition is not met.

3) What is happening/not happening?
I don’t know which loop to use to repeat the waiting period.

4) Post a Green Snapshot of the pistonimage
(UPLOAD YOUR IMAGE HER

E)


#2

Try this one, just add your other sensor. Webcore cancels the timer by default when condition changes so it will keep resetting the timer until motion completely stops.


#3

What is the difference between using the trigger (is active) or the trigger (changes to active) ? Is there really a difference in how they will execute the action? I have been using (changes to active) , but I see some use (is active) instead. By the way I have changed my Piston to reflect the wait as an action instead of using the stays inactive option and it does seem to work better. I noticed when the timer counts down and motion is active again the timer goes away until motion is not active and then starts counting down from set time. Thanks for the suggestion.


#4

In the absence of a trigger, the condition will act like a trigger. You’ll notice the orange lightning bolt on the left hand gutter to show webcore is subscribing to that device’s attribute and act on it based on your piston.