(1) Need- I would like to turn off lights 10 minutes after activitated BUT only during the hours of midnight and 7 am as those same lights are currently scheduled to stay on from Sundown to midnight.
I see a timer to delay actions. I would like to set or create a variable timer (let's say 5 minutes) where it would perform another trigger x minutes after executing a previous trigger.
I am BRAND NEW to this code. As Itype this I realize that perhaps all I need to do is run my Lights Off routine (trigger) immediately after my Lights On routine (trigger). If I am mistaken, any guidance woud be appreciated.
(2) Will the below even work and execute at 12:05 or only at midnight with motion? I have another variable for 7AM that will turn off lights otherwise I guess I need a between two variable times or again I need better guidance.