Hi there, I’m using OH 2.4.0 and I’m using different fibaro controllers via z-wave binding.
I have one rgb controller that is working if I use the computer interface to control it, But If I use the wall switch the click is associated to the wrong item.
On wallswitch clik I get:
[vent.ItemStateChangedEvent] - LuceCorridoioNode3_Dimmerred changed from 34 to 0
While i would like to get a simple on/off from the switch.
I think it should trigger the dimmer thing of the fibaro (called LuceCorridoioNode3_Dimmer)
Can you please help me on how to set the wallswitch to send this commands (please don’t tell me I have to reset the device and re-add it to my network):
[vent.ItemStateChangedEvent] - LuceCorridoioNode3_Dimmer changed from 100 to 0
[vent.ItemStateChangedEvent] - LuceCorridoioNode3_Dimmer changed from 0 to 100
Create the proxy item wallswitch if needed (or whatever your wallswitch shows up as in OH) and try a rule like something below.
You may want to test this in VSCode as it may have a syntax error.
rule "switch"
when
Item wallswitch changed
then
if(LuceCorridoioNode3_Dimmer.state as Number == 0){
LuceCorridoioNode3_Dimmer.sendCommand(100)
}
else{
LuceCorridoioNode3_Dimmer.sendCommand(0)
}
end