Piston on Motion for X Minutes


#1

I believe I have these two set properly, I just was hoping for an expert opinion.

With my ring, when it sees motion, it turns on the outside lights for 10 minutes

for my second motion, when someone needs the bathroom in the middle of the night, it turns on 2 lights for 5 minutes

I have TCP set to NO. Will they trigger and execute properly ?

and

also, what is better in this case. the IF/AND or nested IFs. Or does it real matter?


#2

I believe you should always avoiding nesting IF statements. So your bathroom piston should look like:


#3

Here’s my bathroom lighting, which has been working just fine for a long time:


#4

How does this look?


#5

Looks good, it’ll work fine, but why set the TCP to Never on the 20 minute timer?
If you remove the TCP Never, then it’ll start the timer to turn off when motion becomes inactive.


#6

and this Piston will continuously fire as motion changes ?

(constantly loops between my time frame, or one time)?


#7

The piston will recognize when motion becomes inactive and will start a 20 minute timer from that point to turn off the lights. It’s that whole “conditions vs. triggers” thing. It’s not looping, it’s simply subscribing to Motion Sensor 3’s events.


#8

Thank you

I will see how they go tonight!