5 minutes after sunset trigger


#1

I have the following basic piston that every day 5minutes after sunset I need to open and close a virtual contact sensor which triggers an Alexa routine. I’ve attached a snapshot of the piston. However it seems to always be late. So for example if sunset is at 8:30 then it should trigger at 8:35 but sometimes it triggers at 8:36. Any ideas why this could be happening?

download~2


#2

If it is just one minute, it is likely rounding error. The timing in Webcore is not perfect and it tends to truncate or round off seconds. If sunset was 8:30:45, it may see that as 8:31 and wait until 8:36.