Hello, I am stumped on this one. Probably comes about from my not understanding how to use the wait command.
I have a rule to turn on the lights a low level when somebody is stumbling around living room after dark. It’s designed turn the lights off after a couple of minutes. However, sometimes I will awaken early And will go out and activate a rule called good morning which flexor switch GM1 to indicate to the Night lights rule that someone is up and not to turn off the lights again. However the lights go off anyway. Here is my code:
IF (Time between 22:00 and 06:00(T) AND
GM1(off) is off(T) [TRUE]) THEN
On: Inside Lights
Dim: Nightlights: 1
On: Inside colored lights
Dim: Inside colored lights: 5
Wait for condition: Port Mult Sensor inactive TRUE
Set color: Inside colored lights ->White
Dim: Nightlights: 0 --> delayed: 0:05:00 (cancelable)
Set color: Inside colored lights ->White ->Level: 0 --> delayed: 0:05:00 (cancelable)
Wait for events: GM1(off) turns on
Cancel Delayed Actions
Does anybody see what I’m doing wrong?