OH3 Rule does not trigger for OFF

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"
	Item vDaylight received command 

		logInfo("Daylight", "vDaylight = " + vDaylight.state.toString)

Log entry:

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

So there is no command event?

1 Like

That worked, I switched from a Chrome browser to Firefox and it worked perfectly.

Thank you!!