How to write the item definition for a knx switch? My scenario: I have a MDT glass switch (BE-GTT4x.01) whith a touch position configured as a “one-switch-dimmer” (Ein-Tasten-Dimmen). The Switch with short touch (dimm on/off) is GA 1/1/0, the long touch is GA 1/1/1 for dimming. A third GA “value for switching” (Wert fur Umschaltung) is 1/1/2. The LED in the switch has the GA 1/1/3) and the dimable ceiling lamp has the GA 1/2/2 to set it, dtp 9.007, I think.
A short touch swiches lamp on, a long touch starts the dimming up/down and as long as the lamp is not off (e.g >0%) the LED in the switch should be lit.
So I am lost on how to pack those GA into one item.
I do notr want to manage LED in switch separatly from the Lamp with rules. Can i define multiple knx="" statements in the definition?
Thank you. I think I expressed not clearly. Breaking it down to simpler problem: I try to switch two devices with one item definition. An LED in the Switch (1/1/3) and the ceiling lamp (1/2/2).
Switch led "LED" { knx="1/1/3" } // works
Switch led "Lamp" { knx="1/2/2" } // works
Switch led "LED&Lamp" { knx="1/1/3+1/2/2" } // doesn't work, switches only the LED
Switch led "LED&Lamp" { knx="1/1/3", knx="1/2/2" } // doesn't work
what is the syntax that second is not only listening GA?
This will never work.
Please read the documentation.
If understand correctly you would like to control two lights using one item, this in openHAB terms is called a group.
Do this:
Group gLights "LED&Lamp"
Switch led "LED" (gLights) { knx="1/1/3" } // works
Switch led "Lamp" (gLights) { knx="1/2/2" } // works