1) Give a description of the problem
I want to turn on 2 lights, inside and outside when someone rings the doorbell and it is “dark” outside. I used 30 min before sunset for this.
2) What is the expected behavior?
As above. I also want the lights to turn off after a set time. For now I have it at 20 mins. I initially had the ‘wait’ command right after the ‘turn on’ command followed by ‘turn off’. This didn’t work so then I had a variable created. It seems like a long work around for something simple. Will the variable be false only after the piston runs?
3) What is happening/not happening?
The lights weren’t turning off. The lights did turn on with the doorbell push. So I changed the piston to what is posted now. As stated above. Wanted feedback. Thanks
**4) Post a Green Snapshot of the piston!
5) Attach logs after turning logging level to Full
(PASTE YOUR LOGS HERE THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM CORRECTLY)