more G-Labs products

Author Topic: Scheduler - Triggering @ Sunset  (Read 2146 times)

March 02, 2014, 12:16:25 AM
Read 2146 times

gustavoringler

  • *
  • Information
  • Newbie
  • Posts: 8
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


March 13, 2014, 03:18:59 AM
Reply #1

miket

  • **
  • Information
  • Jr. Member
  • Posts: 40
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....