Time range before/after sunset/sunrise


#1

How do I have a piston run only between a certain time range. For instance I’m trying to create a piston that turns on my lights 30 minutes before sunset and 30 minutes after sunset but won’t turn them on during the day if I arrive home.


#2

When you select your condition (IF), select Virtual Device > Time > Is Bteween.
Then click on the value boxes and select your PRESET. You can also select your offset if you wish.


#3

Thank you for the help