Piston run once per day


#21

Quick summary:

5:57:56 AM =
╔Received event [Stairwell 4 in 1 Sensor 1].motion = inactive
(no action taken)

6:03:34 AM +683ms
╔Received event [Stairwell 4 in 1 Sensor 1].motion = active
║║Condition #7 evaluated true (4ms)
║║Condition #8 evaluated true 
║║Condition group #1 evaluated true (state changed)
║║Condition #6 evaluated false
║║Condition group #1 evaluated false (state changed) 
║╚Execution stage complete

I admit, I have never seen:
Condition group #1 evaluated true
followed 7 milliseconds later with
Condition group #1 evaluated false

… but then again, I usually put my conditions inside the IF, instead of using ONLY WHEN…
(not sure if that makes a difference)


#22

Sorry for the delay @WCmore. Busy couple days.

I am still using the same piston as above. No changes yet.

Thanks again for your help


#23

I guess nobody knows how to fix this piston… :expressionless:


#24

Here is how I would code it:

(I try to keep math and other comparatives out of the ONLY WHEN section)


#25

Thanks @WCmore. I’ll make your proposed changes and post the results


#26

Cool. Don’t forget to pause your current piston, so the two do not step on each others toes.


#27

Thanks again for your help @WCmore. Your version of the piston worked great!