openhab-addons: [deconz] missing channel color_temperature

Expected Behavior

For devices of type Extended color light which report "modes": ["ct", "hs", "xy"] and have valid ctmin, ctmax, and colorcapabilities, the color_temperature channel should be exposed automatically as part of the discovered Thing and a new channel brighness_ct should be created in the deCONZ binding.

Channel Behavior

The device (GLEDOPTO GL-C-007P) reports:

{
  "capabilities": {
    "alerts": [
      "none",
      "select",
      "lselect"
    ],
    "color": {
      "ct": {
        "max": 500,
        "min": 158
      },
      "effects": [
        "none",
        "colorloop"
      ],
      "modes": [
        "ct",
        "hs",
        "xy"
      ]
    },
    "sleeper": false
  },
  "colorcapabilities": 31,
  "config": {
    "groups": [
      "0",
      "1",
      "2"
    ]
  },
  "ctmax": 500,
  "ctmin": 158,
  "ddf_hash": null,
  "ddf_policy": "latest_prefer_stable",
  "etag": "637a44b303a511d5b9279d5e01688d3d",
  "hascolor": true,
  "lastannounced": null,
  "lastseen": "2025-03-29T09:22Z",
  "manufacturername": "GLEDOPTO",
  "modelid": "GL-C-007P",
  "name": "Led Corridoio Notte",
  "nwkaddress": 7671,
  "state": {
    "alert": "none",
    "bri": 254,
    "colormode": "hs",
    "ct": 363,
    "effect": "none",
    "hue": 0,
    "on": true,
    "reachable": true,
    "sat": 254,
    "xy": [0, 0]
  },
  "swversion": "20241206",
  "type": "Extended color light",
  "uniqueid": "a4:c1:38:89:fb:f3:c5:a3-0b"
}

The generated Thing (via inbox discovery) has these code:

UID: deconz:extendedcolorlight:000000000000:a4c13889fbf3c5a30b
label: Phoscon Led Corridoio Notte
thingTypeUID: deconz:extendedcolorlight
configuration:
  lastSeenPolling: 1440
  id: "11"
bridgeUID: deconz:deconz:000000000000
location: Corridoio Notte
channels:
  - id: color
    channelTypeUID: system:color
    label: Color
    description: Controls the color of the light
    configuration: {}
  - id: color_temperature
    channelTypeUID: system:color-temperature-abs
    label: Color Temperature
    description: Controls the color temperature of the light in Kelvin
    configuration: {}
  - id: ontime
    channelTypeUID: deconz:ontime
    label: On Time
    description: Time that the light stays on before switched off automatically (0=forever)
    configuration: {}
  - id: alert
    channelTypeUID: deconz:alert
    label: Alert
    configuration: {}
  - id: effect
    channelTypeUID: deconz:effect
    label: Effect Channel
    configuration: {}
  - id: last_seen
    channelTypeUID: deconz:last_seen
    label: Last Seen
    description: The date and time when the sensor was last seen.
    configuration: {}

the UI has these channels:

  • color
  • ontime
  • alert
  • effect
  • last_seen

But the expected color_temperature channel is missing, even though:

  • The device is in colormode: "ct" at discovery time
  • The capabilities clearly advertise support for ct

Creating a Number item manually linked to ...:color_temperature does work, and returns Kelvin values correctly converted from the reported CT (e.g., ct: 363 → 2755 K). This confirms that the channel backend exists but is not exposed via UI or inbox Thing definition.

Brighness Behavior

Even if the hidden color_temperature channel works, the brightness control is not behaving correctly.

deConz API exposes two different values of state.bri depending of state.colormode. If state.colormode : ct the state.bri report the brightness of the White channel (W), while in state.colormode : hs | xy the brighness is referred to RGB channels.

This is working fine if you have a white lamp with temperature (no color), but if you have both RGB+CT, then the binding handles the RGB channell with brighness, CT with the hidden channel, but not the CT brightness.

The results is the brigthness value in Color, depends on the last action, if you change che color it is the right one, if you change the temperature it is the W channel brightness

Possible Solution

When object has CT and others channels, create a kind of Followup between the two state.bri:

  • when brightness is changed in RGB channels:
 {state.colormode: hs|xy, state.bri <value>}

a second command shold be executed to change the one in CT channels with the same value:

{state.colormode: ct, state.bri <value>}

and viceversa. this maintain compatibility with HomeKit that has only one brightness for color and temperature

Steps to Reproduce (for Bugs)

  1. Create GLEDOPTO GL-C-007P or GL-G-004P in deCONZ/Phoscon
  2. Discover the Thing from OpenHAB inbox
  3. Observe that the channel color_temperature is missing
  4. Link an item manually to the expected UID ...:color_temperature and observe that it works correctly

Context

I’m trying to control both color and white brightness of the GL-C-007P or GL-G-004P via OpenHAB. The inability to access the color_temperature channel from the UI complicates both automation and HomeKit integration.

Your Environment

  • Version used: openHAB 4.3.3 (Main UI Commit 1cc0b830)
  • Add-on: org.openhab.binding.deconz (latest from addons 4.3)
  • Environment name and version: Java 17, DSM 7.2 (Synology)
  • Operating System: Linux (Synology NAS)

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 32 (18 by maintainers)

Most upvoted comments

Not sure for Dimmable because I don’t have one, but the others are correct. Every Items have a Last Seen My RGBW has also an Alarm, Scene, onTime.

Test

Reduce CT bri to 128

X:\andrea.bignozzi>curl -X PUT http://192.168.20.2:8090/api/xxxx/lights/11/state -H "Content-Type: application/json" -d "{\"on\":true, \"bri\":0, \"ct\":158}
[{"success":{"/lights/11/state/on":true}},{"success":{"/lights/11/state/bri":0}},{"success":{"/lights/1/state/ct":158}}]
11:10:19.517 [TRACE] [internal.netutils.WebSocketConnection] - Websocket$1743020543748-1 received raw data: {"e":"changed","id":"11","r":"lights","state":{"alert":"none","bri":0,"colormode":"ct","ct":158,"effect":"none","hue":0,"on":true,"reachable":true,"sat":125,"xy":[0,0]},"t":"event","uniqueid":"a4:c1:38:89:fb:f3:c5:a3-0b"}

11:10:19.520 [TRACE] [nz.internal.handler.LightThingHandler] - deconz:extendedcolorlight:000000000000:a4c13889fbf3c5a30b received LightMessage{hascolor=null, ctmax=null, ctmin=null, type=null, state=LightState{reachable=true, on=true, bri=0, alert='none', colormode='ct', effect='none', effectSpeed=null, ontime=null, hue=0, sat=125, ct=158, xy=[0.0, 0.0], transitiontime=null}, e='changed', r='LIGHTS', t='event', id='11', manufacturername='', modelid='', name='', swversion='', ep='', uniqueid='a4:c1:38:89:fb:f3:c5:a3-0b'}

11:10:19.523 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Phoscon_Led_Corridoio_Notte_Colore_Color' changed from 0.0,50,1 to 0.0,50,0

results as expected

Reduct XY bri to 128

X:\andrea.bignozzi>curl -X PUT http://192.168.20.2:8090/api/xxxxx/lights/11/state -H "Content-Type: application/json" -d "{\"on\":true, \"bri\":128, \"xy\":[0.2,0.6]}"}
[{"success":{"/lights/11/state/on":true}},{"success":{"/lights/11/state/bri":0}},{"success":{"/lights/1/state/xy":[0.2,0.6]}}]
11:13:39.184 [TRACE] [internal.netutils.WebSocketConnection] - Websocket$1743020543748-1 received raw data: {"e":"changed","id":"11","r":"lights","state":{"alert":"none","bri":128,"colormode":"xy","ct":158,"effect":"none","hue":0,"on":true,"reachable":true,"sat":125,"xy":[0.2,0.6]},"t":"event","uniqueid":"a4:c1:38:89:fb:f3:c5:a3-0b"}
11:13:39.186 [TRACE] [nz.internal.handler.LightThingHandler] - deconz:extendedcolorlight:000000000000:a4c13889fbf3c5a30b received LightMessage{hascolor=null, ctmax=null, ctmin=null, type=null, state=LightState{reachable=true, on=true, bri=128, alert='none', colormode='xy', effect='none', effectSpeed=null, ontime=null, hue=0, sat=125, ct=158, xy=[0.2, 0.6], transitiontime=null}, e='changed', r='LIGHTS', t='event', id='11', manufacturername='', modelid='', name='', swversion='', ep='', uniqueid='a4:c1:38:89:fb:f3:c5:a3-0b'}
11:13:39.190 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Phoscon_Led_Corridoio_Notte_Colore_Color' changed from 0.0,50,1 to 131.299,69.52800,86.584

results as expected

Reduce bri without declaring a colormode

X:\andrea.bignozzi>curl -X PUT http://192.168.20.2:8090/api/xxxxxx/lights/11/state -H "Content-Type: application/json" -d "{\"on\":true, \"bri\":254}
[{"success":{"/lights/11/state/on":true}},{"success":{"/lights/11/state/bri":254}}]
11:16:19.785 [TRACE] [internal.netutils.WebSocketConnection] - Websocket$1743020543748-1 received raw data: {"e":"changed","id":"11","r":"lights","state":{"alert":"none","bri":254,"colormode":"xy","ct":158,"effect":"none","hue":0,"on":true,"reachable":true,"sat":125,"xy":[0.2,0.6]},"t":"event","uniqueid":"a4:c1:38:89:fb:f3:c5:a3-0b"}
11:16:19.786 [TRACE] [nz.internal.handler.LightThingHandler] - deconz:extendedcolorlight:000000000000:a4c13889fbf3c5a30b received LightMessage{hascolor=null, ctmax=null, ctmin=null, type=null, state=LightState{reachable=true, on=true, bri=254, alert='none', colormode='xy', effect='none', effectSpeed=null, ontime=null, hue=0, sat=125, ct=158, xy=[0.2, 0.6], transitiontime=null}, e='changed', r='LIGHTS', t='event', id='11', manufacturername='', modelid='', name='', swversion='', ep='', uniqueid='a4:c1:38:89:fb:f3:c5:a3-0b'}
11:16:19.789 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Phoscon_Led_Corridoio_Notte_Colore_Color' changed from 131.299,69.52800,86.584 to 131.298,68.97100,100.00

the RGB change brighness to 254 (the last colormode selected) I change colormode, without changing bri

X:\andrea.bignozzi>curl -X PUT http://192.168.20.2:8090/api/33A77F5F12/lights/11/state -H Content-Type: application/json" -d "{\"on\":true, \"ct\":158}
[{"success":{"/lights/11/state/on":true}},{"success":{"/lights/11/state/ct":158}}]
11:21:33.952 [TRACE] [internal.netutils.WebSocketConnection] - Websocket$1743020543748-1 received raw data: {"e":"changed","id":"11","r":"lights","state":{"alert":"none","bri":254,"colormode":"ct","ct":158,"effect":"none","hue":0,"on":true,"reachable":true,"sat":125,"xy":[0,0]},"t":"event","uniqueid":"a4:c1:38:89:fb:f3:c5:a3-0b"}
11:21:33.954 [TRACE] [nz.internal.handler.LightThingHandler] - deconz:extendedcolorlight:000000000000:a4c13889fbf3c5a30b received LightMessage{hascolor=null, ctmax=null, ctmin=null, type=null, state=LightState{reachable=true, on=true, bri=254, alert='none', colormode='ct', effect='none', effectSpeed=null, ontime=null, hue=0, sat=125, ct=158, xy=[0.0, 0.0], transitiontime=null}, e='changed', r='LIGHTS', t='event', id='11', manufacturername='', modelid='', name='', swversion='', ep='', uniqueid='a4:c1:38:89:fb:f3:c5:a3-0b'}

the light switch to CT with brightness 254 as expected.

Conclusion

My whishlist comes fo free, is the actual deconz:colortemperaturelight:brightness, should only be moved to the deconz:colortemperaturelight

Switch, is not linkable to the Color channel, but if I use the colorpicker in Items, it has an on/off switch on the right that is working, so maybe I’m missing something, or there is somethin broken in tha channel

Recap

  • adding deconz:colortemperaturelight:brightness to deconz:colortemperaturelight solves the dimming problem (decoupling brightness from the Color Item)
  • fixing deconz:colortemperaturelight:brightness forcing CT permits to modify only the CT bri

Now I’ll try to link Switch, Dimmer and Shutter by API, so we can find out if the problem is the UI or the core.