Why is my piston cancelling?


#1

1) Give a description of the problem
Condition #10 seems to cancel the Piston

2) What is the expected behavior?
I want when there is motion detected, to turn on the kitchen lights. I also want to store the current state of the lights and have the original original state of the light restored after 5 min

3) What is happening/not happening?
For some reason its cancelling after the time condtion is passed. I dont want to activate the piston during those times because sunrise triggers the motion detector on the ring door bell.

Preformatted text

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

5) Attach any logs (From ST IDE and by turning logging level to Full)log
(PASTE YOUR LOGS HERE BETWEEN THE MARKS THEN HIGHLIGHT ALL OF THE LOGS SND CLICK ON THE </> ICON TO FORMAT THEM)


#2

First of all…you have WAAAAAAYYYY too much going on here. I would suggest that you turn off True and False until you have a better handle on them. Because you’re not using them correctly.

I would set something up like this:

If Motion changes to active
Then
Set VAR1 = whatever
Set Var 2 = whatever
Set lights to how you want them for motion.

then a second statement in the same piston
If motion stays inactive for 5 minutes.
Set lights to VAR1 VAR2.

Is that enough for you to follow or do you need the whole piston. Cause that it gonna be a bigger ask. :slight_smile:


#3

Could you be more specific on how I’m using the true false wrong?


#4

Because you have both built into the if statement and then both written into the then statement but for a different device. You could write the entire piston without usine one true/false statement. You asked how you could get the piston to work…did you try what I suggested?