1) Give a description of the problem
I have a long piston that arms the house at night, among other things that are centered around motion downstairs stopping. One of the other things is to turn off the outside lights. You’ll see this portion in lines 51-78 below. You can problem ignore the rest of my shotty piston building skill. The outside lights are supposed to turn off 4 hours after sunset if SHM is armed or any time SHM becomes armed 4 hours after sunset. However, the lights often won’t turn off until 4 in the morning (4 hours after they’re expected to). I’m sure the house was armed at the proper time. Currently, the house is armed (I don’t know when it was armed) and it is almost 5 hours past sunset. This seemed to work over the winter and before the time change when 4 hours past sunset wouldn’t be after midnight, but now that seems like the issue, 4 hours after sunset is after midnight and the sunset variable has changed to the next day.
2) What is the expected behavior?
To turn my outside lights off either:
4 hours after sunset if SHM is armed or any time SHM becomes armed 4 hours after sunset.
3) What is happening/not happening?
The piston doesn’t turn off the selected lights until hours after I’d like them to.