Turn off rule for z-wave device no-longer firing

Hi,

I recently decide dto change my living room lights from turning on via a timed rule to using the Sun rise/set events via Astro binding.
I have only enabled the lights to turn on at sunset and left the original timed rules for turning the lights off later in the evening however the turn on side is working fine but now the lights don’t turn off based on the schedule.

I cant figure out why and have struggled to understand how to debug the rules via the openHAB console.

Any help would be appreciated.

Example rulle below showing new start event and the old commented out timed ones and the stop event.

// Start Living Room lamp 2 timer
rule "Lamp 2 Timer On Living Room"
when
Item SunsetStart_Event received update ON
//Time cron “15 15 16 ? JAN-APR,SEP-DEC MON-THU” or
//Time cron “15 25 16 ? JAN-APR,SEP-DEC FRI-SUN” or
//Time cron “15 15 18 * AUG ?” or
//Time cron "15 30 19 * MAY-JUL ?"
then
sendCommand(GF_LV_ZW_Socket_2, ON)
end

rule "Lamp 2 Timer Off Living Room"
when
Time cron “15 58 22 ? * MON-THU” or
Time cron "15 48 23 ? * FRI-SUN"
then
val Override_S = LivOverride.previousState().state
if (Override_S == OFF) {
sendCommand(GF_LV_ZW_Socket_2, OFF)
}
end
//

Cheers

Kevin

Hi Kevin,

If you try changed to ON instead of received update ON, does that work? I have implemented rules with changed to and those work.

Thanks,

Casper

1 Like

Thanks will give that a try.

Kevin

Thanks Casper,

Basic test of the new rule appears to be fine, have updated the other lights to match and will find out tonight if this is fixes the timed off issue but I believe it will.

Regards

Kevin

Good to hear.