Actually the Dimmers (Qubino Z-Wave Plus Flush Dimmer ZMNHDD3) were not sending anything back to openHAB when toggling the physical switch. After a bunch of research I determined this could be fixed by updating the Association Group of the Thing by adding “Controller” to the Multilevel Association Group. Once I did that, for all three dimmers, the starting sending their states back to openHAB.
I then figured, if the Dimmer can send its State back to the Controller why not see if it can send its State to the other Dimmers. So I started with one other Dimmer adding each other to the Multilevel Association Group.
Using PaperUI update Things:
- Dimmer1: Multilevel Association Group = Controller, Dimmer2
- Dimmer2: Multilevel Association Group = Controller, Dimmer1
Then I went and deactivated the rule but left some logging on so I could see what was happening. To my delight, this worked, well kind of. Dimmer1 did in fact set Dimmer2 to match its state, but then Dimmer2 sent its state back to Dimmer1 which then caused a crazy light show which proceeded until I removed one of the associations. I’m sure there’s a way around this, like the Lock in the rule but at least I had learned some cool capability that I was not aware of.
So where did it all end up…
Chose one of these dimmers as the master and the other two as slaves with the intention that I would only use the Master in any UI as well as Physical Location.
For each of the Slave locations, I replaced the Switch (each was actually a combo Switch/Outlet) with an Outlet leaving the ZMNHDD3 in box. This ended up having one Switch for the Counter Lights and added two additional outlets which made my wife happy.
Kitchen Counter Light (node53): Multilevel Association Group=Controller, node54, node55
Kitchen Counter Light Slave1 (node54): Multilevel Association Group=Controller
Kitchen Counter Light Slave2 (node55): Multilevel Association Group=Controller
Group SwitchLights (AllLights)
Group DimmerLights (AllLights)
Switch Switch_Kitchen_Counter (SwitchLights)
Switch Switch_Kitchen_Counter_Slave1 (SwitchLights)
Switch Switch_Kitchen_Counter_Slave2 (SwitchLights)
Dimmer Dimmer_Kitchen_Counter (DimmerLights)
Dimmer Dimmer_Kitchen_Counter_Slave1 (DimmerLights)
Dimmer Dimmer_Kitchen_Counter_Slave2 (DimmerLights)
var lock = false
rule "equalize switches"
Member of SwitchLights received command
SwitchLights.members.filter[d|d.name != triggeringItem.name].forEach[d|d.sendCommand(receivedCommand)]
rule "equalize dimmers"
Member of DimmerLights received command
DimmerLights.members.filter[d|d.name != triggeringItem.name].forEach[d|d.sendCommand(receivedCommand)]
- The Rule controls the equalization of the Switches and Dimmers when changed by openHAB.
- The Multilevel Association Group controls the equalization of the Switches and Dimmers when changed by the Physical Switch.
Everything is working exactly as intended. There’s likely more that can be done here, but man did I learn a bunch last night. Crawled into bed around 2:30AM.
Special thanks to @Udo_Hartmann, @pacive and the openHAB Community!