HomeGenie Forum
Automation Program Plugins and Wizard Scripting => Help => Topic started by: Maximo on June 26, 2015, 10:35:00 PM
-
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
-
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.
-
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
-
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.