Porch Light Piston on Doorbell Ring


#1

1) Give a description of the problem
Piston runs as expected but need to modify to not turn off the porch light if it’s already on after the doorbell is pressed.

2) What is the expected behavior?
I’d like for the light to stay on if it’s already on before the piston fires.

3) What is happening/not happening?
Porch light turns off after 3 minutes even if it’s already on.

**4) Post a Green Snapshot of the piston!


#2

How about capture switch state and restore switch state?



#3

or just add a grouping for when time is between and switch is off…

Note to @OTA use presets for sunset and sunrise instead of {$sunset} {$sunrise}


#4

Thanks guys. I’ll look into modifying it and see how it goes.

Works like a champ with @jkp’s modification. Thanks to both you and @Gopack2 for your suggestions.