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