HomeGenie Forum
General Category => Troubleshooting and Support => Topic started by: gustavoringler on March 02, 2014, 12:16:25 AM
-
Hi forum users,
I created a simple Scene, that basically turns on my outside lights at Sunset.
This is the program condition, in the wizard script:
"HomeGenie Automation Property TimeEvent Equals @sunset"
Is there a way to add a "delay" ? (in other words...if I want my lights to be turned on 30 minutes AFTER sunset, how can I achieve this) ?
I guess I can add an instruction to create a 30 minute "pause" (like "HomeGenie Automation do PAUSE 1800", to get a pause of 1800 seconds (=30 minutes) before turning on the lights)...but maybe there is a better way to achieve this, directly in the scheduler command ?
Thoughts ?
Thanks !
Gus
-
Hey Gus,
I ended up modifying the weather underground plugin so that it set sunset for one hour earlier than it should. Not the best workaround, but I didn't want to bother creating a date/time object (so it has to be full hours )
Just add the code:
sunset_hour=sunset_hour-1;
right before you get to the lines that begin with Scheduler....