Hey everyone,
I have those 2 devices:
- Homematic HM-PB-2-WM55-2 and
- Philips Hue White
The upper button of the HM-PB-2-WM55-2 should toggle the Hue bulb on and off when I press it short.
Those are my items:
// Wandtaster
Switch Schalter_OG_01_oben “Schalter_OG_01_oben” {homematic=“address=NEQ0451655, channel=1, parameter=PRESS_SHORT”}
Switch Schalter_OG_01_unten “Schalter_OG_01_unten” {homematic=“address=NEQ0451655, channel=2, parameter=PRESS_SHORT”}
// Philips Hue
Dimmer Stehleuchte_OG “Stehleuchte_OG” [“Lighting”] { channel=“hue:0100:0017882911ca:6:brightness” }
And this is my rule:
rule "Toggle_Stehleuchte_OG“
when
Item Schalter_OG_01_oben received update
then
if (Stehleuchte_OG.state == OFF)
{
sendCommand(Stehleuchte_OG, ON)
}
else if (Stehleuchte_OG.state == ON) {
sendCommand(Stehleuchte_OG, OFF)
}
end
But nothing will happen. Can anybody help me? Looking forward to your feedback.
Best
Tom