I am really new to openhab and knx, and so there are a lot of problems for me. I am trying to create dimmer items with knx binding, but they don’t work. Normal switches and rollershutters do. But the dimmer items drive me crazy.
I got 5 adresses for one dimmer:
0/0/23 dimmer (Dimmen Licht)
0/0/24 listening adress for dimmer (Rückmeldung Dimmen Licht)
0/0/30 on/off (Schalten Licht)
0/0/34 listening on/off (Rückmeldung Schalten Licht)
0/0/39 value (Rückmeldung Wert Licht)
Sorry for that list, but i hink thats the biggest problem i got. Thats the list i received from the electrician. Postet the german translation in brackets.
Dimmer MyDimmer "My Dimmer is [%d %%]" {knx="0/0/30,5.001:missing+<5.001:0/0/39"}
I doubt there is a return address for dimming action, as this is useless.
The actuator has to has the R flag (L flag in german) set for 0/0/39 to get the value of the dimmer when starting openHAB.
Digging out this old post but now relating to the KNX2.4 binding.
Since I upgraded to 2.4 many of my rules (which did work before) don’t work properly anymore.
Let me start with dimmers:
I have a rule which tries to influence the dimm value depending on another variable:
rule "Bathroom Night Light"
when
Item Licht_Elternbad_dim received command ON
then
if (Licht_Elternbad_Night.state == ON) {
Licht_Elternbad_dim.sendCommand( 30)
}
end
My thing:
Type dimmer : Licht_Elternbad_dim "Elternbad" [switch="1/3/101+<1/3/104", increaseDecrease="1/3/102", position="1/3/103+<1/3/105"]
A dimmer channel will not receive any commands but only changes.
As you want the commands, you have to use an additional control channel.
It’s a bad idea to use the on/off-status of the dimmer either, but you can use this one for the switch:
things:
Type dimmer : Licht_Elternbad_dim "Elternbad" [switch="1/3/101", increaseDecrease="1/3/102", position="1/3/103+<1/3/105"]
Type switch-control : Licht_Elternbad_sw "Elternbad Switch" [ ga="1/3/104" ]
rule "Bathroom Night Light"
when
Item Licht_Elternbad_sw changed to ON
then
if (Licht_Elternbad_Night.state == ON)
Licht_Elternbad_dim.sendCommand( 30)
end