HomeGenie Forum

General Category => Troubleshooting and Support => Topic started by: purps on November 18, 2015, 11:17:55 PM

Title: Sunset trigger using wizard
Post by: purps on November 18, 2015, 11:17:55 PM
What is the correct method for adding a sunset trigger please with the wizard?

I have tried HomeGenie / Scheduler / Scheduler.Time / Equals "@sunset"

And I have tried Programs / Weather Underground / Astronomy.Sunset / Equals "1"

...but no luck so far. I have registered a Wunderground account.

Any help much appreciated.

Cheers,
Matt.
Title: Re: Sunset trigger using wizard
Post by: bkenobi on November 19, 2015, 03:56:58 PM
If you are trying to turn on a module at sunset, you can use the scheduled event APP that's built in to HG.  If you are trying to do something a little more complex, you might be able to use a wizard script (though I've never tried).  If you want something with logic, I'd recommend using a more advanced scripting language (C#, Python, etc).  There have been several threads that requested help on this approach, so you might find some help by locating one of them.
Title: Re: Sunset trigger using wizard
Post by: purps on November 26, 2015, 12:06:44 AM
If you are trying to turn on a module at sunset, you can use the scheduled event APP that's built in to HG.

Thanks for the reply, yes that is exactly what I am trying to do, but I am struggling to get my head round it.

I have been going to Configure -> Programs and trying to set something up in there.

The scheduled event APP that's built into HG you refer to, is this what I have seen in Configure -> Scheduler? How is that actually used?

Sorry for what are probably silly questions, but I have not been able to find the answer through searching.

Cheers,
Matt.
Title: Re: Sunset trigger using wizard
Post by: purps on November 26, 2015, 12:11:39 AM
I have literally just seen a screenshot here that might help me http://www.homegenie.it/docs/scheduler.php (http://www.homegenie.it/docs/scheduler.php)

I haven't tried my program 1. using "Scheduler.CronEvent", only "Scheduler".Time as per another post I saw, and 2. I wonder if it is case sensitive i.e. me using @sunset may not have been a good idea (again, I will blame that other post I saw!).

Let me see how that works and I'll come back to you.

Cheers,
Matt.
Title: Re: Sunset trigger using wizard
Post by: bkenobi on November 26, 2015, 08:44:44 PM
All you have to do (assuming you have the scheduled on/off APP enabled) is:

* navigate to the module you want to schedule and open the configuration dialog
* select the APP drop down and select Scheduled On/Off
* enter some type of string for your on and off times
* Update module

At that point (assuming you have correctly formatted the strings) HG will send an on/off command at the given time (twice during that minute to be precise).
Title: Re: Sunset trigger using wizard
Post by: purps on December 07, 2015, 05:48:15 PM
Thank you very much, I have got this working with the method you've described.

However I would still be keen to understand why this method is not working for me http://www.homegenie.it/docs/images/hg_scheduler_02.jpg (http://www.homegenie.it/docs/images/hg_scheduler_02.jpg)

Image taken from http://www.homegenie.it/docs/scheduler.php (http://www.homegenie.it/docs/scheduler.php)

Cheers,
Matt.