I’m having trouble getting this piston to run. I want it to kick off between sunrise with a +/- offset of 60 mins and sunset. When the time is between the specified sunrise and sunset, the next scheduled is for 3 hours to sunrise which is my very first If Statment and not for the second If Statment beginning on line 33.
I can’t figure out why it is not running. If I do a test, it will run and continue in the While Loop, but it will not do this automatically.