more G-Labs products

Author Topic: Sunset trigger using wizard  (Read 1560 times)

November 18, 2015, 11:17:55 PM
Read 1560 times

purps

  • *
  • Information
  • Newbie
  • Posts: 11
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.
« Last Edit: November 18, 2015, 11:32:59 PM by purps »

November 19, 2015, 03:56:58 PM
Reply #1

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
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.

November 26, 2015, 12:06:44 AM
Reply #2

purps

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

November 26, 2015, 12:11:39 AM
Reply #3

purps

  • *
  • Information
  • Newbie
  • Posts: 11
I have literally just seen a screenshot here that might help me 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.

November 26, 2015, 08:44:44 PM
Reply #4

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
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).

December 07, 2015, 05:48:15 PM
Reply #5

purps

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

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

Cheers,
Matt.