more G-Labs products

Author Topic: Script Wizard Help  (Read 886 times)

June 26, 2015, 10:35:00 PM
Read 886 times

Maximo

  • ***
  • Information
  • Full Member
  • Posts: 84
Hi,

I've created a very simple program using the wizard. But need a little confirmation that I've got the trigger set correctly. See the attachment. Have I got the right value? As in @Sunset.

Thanks

Garry


June 26, 2015, 11:17:10 PM
Reply #1

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
I'm not sure if you can use the scheduled events that way.  It might work, but I've only ever seen where the script evaluates that the comparison time matches the current time.  I don't know what your script does, but if it's simply turning on/off a module,  you can use the scheduled On/Off script that's already built in.  Just enable it and set a time for whichever module you want turned on or off.

June 26, 2015, 11:37:05 PM
Reply #2

Maximo

  • ***
  • Information
  • Full Member
  • Posts: 84
Thanks for the reply. I'll see what happens as it is.

The program uses a Multi Sensor to read the light level outside and if it's below 250Lux and the time is less that today's sunset the Living room lights are switched on. So if I can use the Schedule.Time as I have then it'll work great.

Cheers,

Garry

June 29, 2015, 05:47:52 PM
Reply #3

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
That is very similar to the Smart Lights script that is built in to HG.  That script uses a motion sensor and a light sensor to turn lights on if it's dark and motion is sensed.  You could easily modify this to work for your needs or just create a dummy motion sensor that was always on and use the script as is.