Page 1 of 1

Time related event does not work

Posted: Sun Apr 02, 2017 8:01 am
by Wima
I want to turn on the lights when a door is opened between 23.55 and 06.00 (so at night).
I made an event but seems not to work. What is wrong ?

Wil

Re: Time related event does not work

Posted: Sun Apr 02, 2017 9:56 am
by mhn
"changes and becomes". Is the light "on" before? Maybe "set to" instead?

Re: Time related event does not work

Posted: Sun Apr 02, 2017 5:07 pm
by Sparkman
The issue is that the two conditions will never be true at the same time as they are both relative to midnight.

"The Time is After 23:55" really means "The Time is After 23:55 and Before 00:00"

"The Time is Before 06:00" is really "The Time is After 00:00 and Before 06:00"

I would create a virtual device and change it to On using an event triggered at 23:55 and change it to Off using an event triggered at 06:00. Use the status of the virtual device as your condition instead.

Cheers
Al