Hello,
I am trying to control my rollershutters with a switch.
So I do have a simple rule script which just sends the state of the switch as a command to my rollershutter.
My problem is, that the only trigger I can use is the “item change” event trigger.
Basically that works - using that trigger I am able to open and close my shutters.
But that’s not the bahaviour I want.
My rollershutters can be stoped in the middle of the movement by just sending the same command.
I was looking in the Event Monitor and found that there is a “ItemStateEvent” fireing everytime I press the button.
openhab/items/FS204fachWandtasterK4/FS204fachWandtasterK4_State/statechanged
GroupItemStateChangedEvent
{"type":"OnOff","value":"ON","oldType":"OnOff","oldValue":"OFF"}
openhab/items/FS204fachWandtasterK4_State/statechanged
ItemStateChangedEvent
{"type":"OnOff","value":"ON","oldType":"OnOff","oldValue":"OFF"}
openhab/items/FS204fachWandtasterK4_State/state
ItemStateEvent
{"type":"OnOff","value":"ON"}
openhab/items/FS204fachWandtasterK4_State/state
ItemStateEvent
{"type":"OnOff","value":"OFF"}
openhab/items/FS204fachWandtasterK4_State/state
ItemStateEvent
{"type":"OnOff","value":"OFF"}
openhab/items/FS204fachWandtasterK4/FS204fachWandtasterK4_State/statechanged
GroupItemStateChangedEvent
{"type":"OnOff","value":"OFF","oldType":"OnOff","oldValue":"ON"}
openhab/items/FS204fachWandtasterK4_State/statechanged
ItemStateChangedEvent
{"type":"OnOff","value":"OFF","oldType":"OnOff","oldValue":"ON"}
openhab/items/FS204fachWandtasterK4_State/state
ItemStateEvent
{"type":"OnOff","value":"OFF"}
openhab/items/FS204fachWandtasterK4_State/statechanged
ItemStateChangedEvent
{"type":"OnOff","value":"ON","oldType":"OnOff","oldValue":"OFF"}
openhab/items/FS204fachWandtasterK4/FS204fachWandtasterK4_State/statechanged
GroupItemStateChangedEvent
{"type":"OnOff","value":"ON","oldType":"OnOff","oldValue":"OFF"}
openhab/items/FS204fachWandtasterK4_State/state
ItemStateEvent
{"type":"OnOff","value":"ON"}
Unfortunately the only trigger that fires the rule is the “ItemStateChangedEvent” and that fires only when I change the state and not if the state stays the same.
How can I trigger a rule with the “ItemStateEvent” seen in the EventMonitor?
Thanks
Stefan