Excellent Robin because watching the log while you are working on your rules is essential. Your rules look correctly formed, do you have an item for each of these items?
Light_Desk
Plug_in_onoff_Module
zwave_device_7a2a2811_node22_switch_dimmer
zwave_device_7a2a2811_node4_switch_binary
How are the items defined? in a rules file or in Paper UI, sorry if I missed this in earlier post
iām sorry, I meant to ask if the items were defined in an items file or Paper UI
Items must be defined in an items file in the items directory or in Paper UI
The rule is looking for a specific event - that Item to change form OFF to ON
but the actual event
the given Item changes from 0 to 100.
It was never OFF and has not become ON.
The rule is doing exactly what you told it to do, itās a dumb machine.
Suggestion - simplify your rule trigger to just āchangedā.
Add a message so that you can see when it triggers.
Check the state of the Dimmer Item in the rule. Remember, this Item is a Dimmer type - it does not have ON or OFF states, the state is always 0-100.
rule āPlant Timer Link Onnā
when
Item zwave_device_7a2a2811_node22_switch_dimmer changed
then
logInfo('test', "My rule has started")
if ( (zwave_device_7a2a2811_node22_switch_dimmer.state) as Number > 0) {
logInfo('test', "The dimmer is on")
zwave_device_7a2a2811_node4_switch_binary.sendCommand(ON)
} else {
logInfo('test', "The dimmer is off")
}
end
There is actually a way to cheat and force a dimmer 0-100 state to be treated as though it was on/off, but itās good to understand why your rule didnāt work.
if ( zwave_device_7a2a2811_node22_switch_dimmer.state as OnOffType == ON) {
As for the other rules -
there is no sign of that Item changing in your events.log, so why would the rule ever run. Dumb machine, cannot guess what you want.
What makes you think that this Item is āthe sameā as your real zwave Items?