OH3.1 on RPi
I have a simple rule for attached to a virtual Switch. When I set the switch in the UI to “on”, the rule correctly fires. When I turn the switch “off” in the UI, nothing happens.
rule "Daylight Rules" when Item vDaylight received command then logInfo("Daylight", "vDaylight = " + vDaylight.state.toString) end
2021-09-13 22:09:40.046 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'vDaylight' received command ON ==> /var/log/openhab/openhab.log <== 2021-09-13 22:09:45.985 [INFO ] [g.openhab.core.model.script.Daylight] - vDaylight = ON