This object is in archive! 

On and off in one rule

Torbjorn Nesheim shared this question 9 years ago
Need Answer

I'd like to be able to set an explisit on-time and off-time on within one rule, eg


time=17:00 -> turn on

time=23:00 -> turn off


Any suggestions how to do this? I've tried to search this forum without any luck, but my search strings might be the problem...


This function can be implemented by using two rules but that I already know. I also do not want to use the wait-command.

Replies (5)

photo
1

You can try something like that:


XF738Eco0XuannRmJhnB


The scheduler is "Minutelly", every 1 minute.

photo
1

I also use this kind of trick to call an URL on Virtual Device Change :


ZCVDxvRjRrtouth5MuFb

photo
1

Thanks! Of course, the timer is very versatile, and I didn't think of that approach.

photo
1

You can use two schedulers in one rule as trigger.

Try.


When Sched1 (7.30) or Sched2 (23.00)

if light=on

light set to off

else

light set to on


OR


if time(now) = 7.30

light set to on

if time(now) =23.00

light set to off.

photo
1

Problem is, if your box or device is offline at the precise moment of the trigger (murphy's law), action is never performed.

Leave a Comment
 
Attach a file