Hi all,
I am trying to get my Hue lights working with my KNX wall switches. I’ve red al lot of examples and use some examples from people who have it allready working. But no succes for me…
What i see is that when I push my KNX wall switch, the switch “Lampje_Tijn” is switching ON and OFF in my PaperUI and also see the same in Karaf console.
When I manually switch the Switch “Hue_Lampje_Tijn” in the PaperUI, the Hue light is switching ON and OFF.
It Seems that the Rule is not detecting the switching light or is not able to switch the Hue light.
Anybody can tell what is wrong in here?
Below a part of the KNX.things file:
Thing device hue "hue" [pingInterval=0]
{
Type switch-control: lampjeTijn [ga="0/0/21+<0/4/20"]
Type switch-control: eettafelLampen [ga="0/0/9+<0/1/8"]
}
Part of the KNX.items:
Switch Lampje_Tijn ["Lighting"] { channel="knx:device:bridge:hue:lampjeTijn"}
Switch Hue_Lampje_Tijn ["Lighting"] { channel="hue:group:xxxx:2:switch"}
Switch Eettafel_Lampen ["Lighting"] { channel="knx:device:bridge:hue:eettafelLampen"}
Switch Hue_Eettafel ["Lighting"] { channel="hue:group:xxx:1:switch"}
and below my KNX.rules:
rule "Switch hue Lampje Tijn"
when
Item Lampje_Tijn received command
then
if (receivedCommand == ON) {
Hue_lampje_Tijn.sendCommand(ON)
}
else{
Hue_Lampje_Tijn.sendCommand(OFF)
}
rule "Switch hue Eettafel"
when
Item Eettafel_Lampen received command
then
if (receivedCommand == ON) {
Hue_Eettafel.sendCommand(ON)
else {
Hue_Eettafel.sendCommand(OFF)
}