1) Give a description of the problem
I have attempted to create a piston to turn on a light 10 seconds after my Ring Doorbell is pressed when it is between sunset and sunrise and then turn it off 2 mins later. A copy of the piston is shown below.
2) What is the expected behaviour?
The light should come on 10 seconds after the doorbeel is pressed (assuming that it is between 30 mins before Sunset and 30 mins after sunrise). The light should stay on for 2 mins and then shut off.
3) What is happening/not happening?
Everything happens correctly, except the light does not shut off. I have moved the wait and off statements around trying to get them to function correctly with no success.
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)
REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.