Two zwave dimmers simultanously

Hi Guys,

I bought two zwave wallplugs with dimmerfunction. Each single dimmer works well.

Dimmer Dimmer1 “” { zwave=“2:command=SWITCH_MULTILEVEL,respond_to_basic=true” }
Dimmer Dimmer2 “” { zwave=“3:command=SWITCH_MULTILEVEL,respond_to_basic=true” }

But I need an ambient-slider wich effects the two dimmers at the same time.

My first idea was a rule. (One rule to dimm them all :wink: )
But I discoverd that there is the possibility to add more than one zwave binding to one item.
So I made a slider with to zwave nodes:

Dimmer Stimmungslicht “Stimmungslicht” { zwave=“3:command=SWITCH_MULTILEVEL,respond_to_basic=true”, zwave=“2:command=SWITCH_MULTILEVEL,respond_to_basic=true” }

But these slider has only effect an the first binding. When I chance the order of the nodes the effect changes too.
Any advise for me?

A rule would work I think. You’d have :
Dimmer Dimmer1 “” { zwave=“2:command=SWITCH_MULTILEVEL,respond_to_basic=true” }
Dimmer Dimmer2 “” { zwave=“3:command=SWITCH_MULTILEVEL,respond_to_basic=true” }
Dimmer DimmerControl1 "This is a dimmer"
Which are the real devices, then you’d have in your sitemap :
Slider DimmerControl1

Then a rule :
rule "Dim things"
when
Item DimmerControl1 received update
then
var Number DimLevel = DimmerControl1.state as DecimalType
sendCommand(Dimmer1,DimLevel)
sendCommand(Dimmer2,DimLevel)
end

Which would make DimmerControl1 as a “virtual”, meaning by itself it does nothing. The rule is what makes a single slider control 2 zwave devices.