How to to switch between white and color mode with hue2 binding

Hi,

i’m using openhab 4.3 and try to control my lamps, that are connected via hue bridge. The lamps are not original hue lamps. They support color and white (dimming only) mode. I can control the lamps via hue-app without any issue.

I followed the binding description to read the devices from the bridge (there are more, but i removed it for readability):

Bridge hue:bridge-api2:hb1 "Philips Hue Bridge 1" [ ipAddress="x", applicationKey="x" ]
{
     // Device things
    Thing device azLichtFenster 	"Arbeitszimmer Fenster" [resourceId="7970e897-f525-4e65-9742-4727c1f5f4f6"] // Extended color light idV1:/lights/10
}

I tried the following items configuration for testing:

Switch			OG_Arbeitszimmer_Licht1_Switch						"Hue 1 on/off"														(OG_Arbeitszimmer)			{ channel="hue:device:hb1:azLichtFenster:switch" }
Dimmer			OG_Arbeitszimmer_Licht1_Dimm						"Hue 1 Helligkeit"													(OG_Arbeitszimmer)			{ channel="hue:device:hb1:azLichtFenster:brightness" }
Color			OG_Arbeitszimmer_Licht1_Color						"Hue 1 Lichtfarbe"													(OG_Arbeitszimmer)			{ channel="hue:device:hb1:azLichtFenster:color" }

I use BasicUI without extra configuration. The only working channel seems to be the color one. The other channels do nothing. If i click on the on/off (switch channel), the switch toggles to on the goes immediately back to off. Same with dimmer channel.

The color channel switches the lamp to color mode. But for all-day use, i need the white mode with dimming functionality.

So my questions are:

  • How can i use white mode?
  • How can i control both modes via BasicUI and MainUI?
  • How can i control the lamps via KNX?

Thank you very much in advance!

Check in the UI in the Thing’s channels if the “switch” and the “brightness” channels are actually available for your liht Thing. It might be that only the “on-of-only” (switch item) and “dimming-only” (dimmer item) channels are available, so you may have linked Items to non-existent channels. Another option is to link the switch and dimmer both to the “color” channel (works in v2 just like in v1).

White only mode you can achieve by setting a color-temperature.

Thank you very much for your answer.
OK, found the following channels:

I also added a new item

Dimmer			OG_Arbeitszimmer_Licht1_ColorTemp					"Hue 1 Farbtemperatur"												(OG_Arbeitszimmer)			{ channel="hue:device:hb1:azLichtFenster:color-temperature" }

When I change the color temperature, i can see the changes in the hue app. But because the light does not support the color temperature, it has no effect on the light.

But it still does not switch into “ct” (=white) mode. It stays in “xy” (colormode property from local hue api). When i set the light in ct mode with the hue app, it stays there, unless i change the color via color channel. The other channels have no effect in ct mode.

Did some more testing. As you said, linking the switch and dimmer all to the color channel did the trick.

Switch			OG_Arbeitszimmer_Licht1_Switch						"Hue 1 on/off"														(OG_Arbeitszimmer)			{ channel="hue:device:hb1:azLichtFenster:color" }
Dimmer			OG_Arbeitszimmer_Licht1_Dimm						"Hue 1 Helligkeit"													(OG_Arbeitszimmer)			{ channel="hue:device:hb1:azLichtFenster:color" }
Color			OG_Arbeitszimmer_Licht1_Color						"Hue 1 Lichtfarbe"													(OG_Arbeitszimmer)			{ channel="hue:device:hb1:azLichtFenster:color" }
Dimmer			OG_Arbeitszimmer_Licht1_ColorTemp					"Hue 1 Farbtemperatur"												(OG_Arbeitszimmer)			{ channel="hue:device:hb1:azLichtFenster:color-temperature" }

Now the on/off switch works. Also I can change the brightness with the dimmer linked to the color channel. And the dimmer linked to the color-temperature now switches into ct mode. :slightly_smiling_face:

Not fully solved. I tried the on/off switch and it works in the BasicUI. At least the control is working. If I switch it on via BasicUI and then switch it off via hue app, the status in the BasicUI does not update. It still shows on.

In MainUI the switch does not work at all.

Any ideas?

Strange behaviour. Now everything works. I did not change any configuration…