For a simple example…
Let’s say I just want to turn a porch light on 10 minutes before sunset, and turn it off 10 minutes after sunrise.
What is the most efficient way to do that, so that the piston isn’t constantly using resources throughout the day and night if it isn’t close to sunrise/sunset?
I may also want to control the example light independently with other pistons, so this should be a twice a day, “check it, set it, and forget it” type of deal.