Page 1 of 1

Simple turn on between time range

Posted: Friday 09 December 2016 0:04
by jrich523
Hey Guys,
I am trying to do this with blocky but i suppose lui is fine too.

I just want to turn a light on between 4:30 and 9:30pm, so i created a simple IF block and did the time range and inside the Do i just turned the light on.
This sort of works because it will turn the light on, but after it passes 9:30 it never actually shuts off. Is there some simple way to handle this or do i need to do an On event at 4:30 and then a seperate off event at 9:30?

Thanks, just want to make sure im doing this the best way.
thanks

Re: Simple turn on between time range

Posted: Friday 09 December 2016 0:13
by Toulon7559
Why use Blocky or lua-script for switching a lamp based on time?
Simpler method: go to Switches, for the subject Switch select 'Timers', and set the time for ON and the time for OFF.
With 'Timers' for each time you can also set a random variation around this time, and you can also make choices for weekdays, for weekends and for selected days.

Re: Simple turn on between time range

Posted: Friday 09 December 2016 0:56
by jrich523
well crap.... im an idiot.... thanks...

Re: Simple turn on between time range

Posted: Wednesday 14 December 2016 9:10
by Toulon7559
For alignment with the nominal times for sun's light you may include sunrise or sunset in Timer-setting.