I have currently a strange issue.
I have created a Switch and if I switch it from OFF to ON I see in the the log the event “[ome.event.ItemCommandEvent] - Item ‘Rolladen_SonnenSchutz_OG’ received command ON” but the Rule is not triggered. I have similar rules with exactly the same syntax and there it works fine.
Any ideas for this behavior?? Thanks in advance!
The item and rule syntax for your reference.
Item:
when
Item Rolladen_SonnenShutz_OG received command ON
then
var PosValue = Rolladen_SonnenSchutz_Pos.state as DecimalType
Rollladen_OG_Schlafzimmer.sendCommand(PosValue.intValue)
Rollladen_OG_Kinderzimmer1.sendCommand(PosValue.intValue)
logInfo("Schonnenschutz On OG", PosValue.toString())
end
I checked the log, but no log info but event is fired (->timestamp):
2020-05-18 16:09:40.525 [vent.ItemStateChangedEvent] - Rolladen_SonnenSchutz_OG changed from OFF to ON
2020-05-18 16:09:03.463 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model ‘MyHome.rules’