Extended color light unable to set Color after changing Color Temperature

Hi!

I’m pulling my hair out to get a Lidl Silvercrest Ledstrip to work as expected. I get the feeling something is wrong. It behaves correct when controlling it in Phoscon but not when controlling it from OH.

In OH it shows up as an Extended Color light with Channels Color and Color Temperature.
In Phoscon you can switch values between Color and Color Temperature without any issues.

In OH it also works but as soon as the Color Temperature is changed, either from Phoscon or OH I’m unable to set a color in OH. To be able to change colors in OH at this stage I have to go to Phoscon and choose a color there first. After that I’m able to change color again in OH. It’s like the light is stuck and OH is unable to get the light from Color Temperature to Color.

Here’s the log when changing Color Temperature:

2020-12-12 00:42:25.379 [vent.ItemStateChangedEvent] - Light_BaR_Mirror_Color changed from 356,100,100 to 0.0,100,100

2020-12-12 00:42:25.384 [vent.ItemStateChangedEvent] - Light_BaR_Mirror_ColorTemp changed from 6329 to 2016

This is afterwards when I am stuck not beeing able to set Color from OH:

2020-12-12 00:44:37.773 [ome.event.ItemCommandEvent] - Item 'Light_BaR_Mirror_Color' received command 353,83,100

2020-12-12 00:44:37.814 [nt.ItemStatePredictedEvent] - Light_BaR_Mirror_Color predicted to become 353,83,100

2020-12-12 00:44:37.869 [vent.ItemStateChangedEvent] - Light_BaR_Mirror_Color changed from 0.0,100,100 to 353,83,100

2020-12-12 00:44:37.952 [vent.ItemStateChangedEvent] - Light_BaR_Mirror_Color changed from 353,83,100 to 352.99610894941634,83,100

2020-12-12 00:44:53.271 [vent.ItemStateChangedEvent] - Light_BaR_Mirror_Color changed from 352.99610894941634,83,100 to 0.0,100,100

Nothing happens and after a few seconds the Color state is reset to the value it got when I switched to Color Temperature the first time: 0.0,100,100

Items

Color  Light_BaR_Mirror_Color 	"Badrumsspegel"		(gBaR)	{ channel="deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color", ga="Light" [ roomHint="Badrum" ] }
	
Number  Light_BaR_Mirror_ColorTemp 	"Badrumsspegel varmvit"		(gBaR)	{ channel="deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature", ga="Light" [ roomHint="Badrum" ] }

Set up:
Raspberry Pi 4
Openhab 2.5.10
Deconz 2.7.1
Conbee 2

Tried searching for similar issues but didn’t find anything. Anyone recognizes this or have any ideas?

Please set the log-level ofbthe deconz binding to trace and show the log when the error occurs.

Okay, hope this is of some help…

When setting a color temperature:

2020-12-12 11:09:49.815 [ome.event.ItemCommandEvent] - Item 'Light_BaR_Mirror_ColorTemp' received command 5000

2020-12-12 11:09:49.860 [nt.ItemStatePredictedEvent] - Light_BaR_Mirror_ColorTemp predicted to become 5000

==> /var/log/openhab2/openhab.log <==

2020-12-12 11:09:49.867 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:09:49.880 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:09:49.885 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:09:49.890 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:09:49.900 [TRACE] [z.internal.handler.LightThingHandler] - Sending {"ct":200} to light 46 via http://192.168.10.2:80/api/F86D8D32FD/lights/46/state

2020-12-12 11:09:49.908 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:09:49.914 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:09:49.911 [TRACE] [nternal.netutils.WebSocketConnection] - Raw data received by websocket: {"e":"changed","id":"46","r":"lights","state":{"alert":null,"bri":17,"colormode":"ct","ct":200,"effect":null,"hue":0,"on":true,"reachable":true,"sat":254,"xy":[0.3368,0.6262]},"t":"event","uniqueid":"84:2e:14:ff:fe:34:3f:cc-01"}

2020-12-12 11:09:49.916 [TRACE] [z.internal.handler.LightThingHandler] - Result code=200, body=[{"success":{"/lights/46/state/ct":200}}]

2020-12-12 11:09:49.921 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:09:49.927 [TRACE] [z.internal.handler.LightThingHandler] - deconz:extendedcolorlight:homeserver:842e14fffe343fcc01 received LightMessage{hascolor=null, ctmax=null, ctmin=null, type=null, state=LightState{reachable=true, on=true, bri=17, alert='null', colormode='ct', effect='null', hue=0, sat=254, ct=200, xy=[0.3368, 0.6262], transitiontime=null}, e='changed', r='lights', t='event', id='46', manufacturername='', modelid='', name='', swversion='', ep='', uniqueid='84:2e:14:ff:fe:34:3f:cc-01'}

2020-12-12 11:09:49.929 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:09:49.937 [DEBUG] [z.internal.handler.LightThingHandler] - val = '254', scaledValue = '100'

2020-12-12 11:09:49.943 [DEBUG] [z.internal.handler.LightThingHandler] - val = '17', scaledValue = '7'

==> /var/log/openhab2/events.log <==

2020-12-12 11:09:49.973 [vent.ItemStateChangedEvent] - Light_BaR_Mirror_Color changed from 96,100,7 to 0.0,100,7

Afterwards when trying to set a Color and nothing happens:

2020-12-12 11:17:05.668 [ome.event.ItemCommandEvent] - Item 'Light_BaR_Mirror_Color' received command 309.827576,90.980392,7.000000

2020-12-12 11:17:05.712 [nt.ItemStatePredictedEvent] - Light_BaR_Mirror_Color predicted to become 309.827576,90.980392,7.000000

==> /var/log/openhab2/openhab.log <==

2020-12-12 11:17:05.737 [TRACE] [z.internal.handler.LightThingHandler] - Sending {"bri":17,"hue":56401,"sat":231} to light 46 via http://192.168.10.2:80/api/F86D8D32FD/lights/46/state

2020-12-12 11:17:05.750 [TRACE] [nternal.netutils.WebSocketConnection] - Raw data received by websocket: {"e":"changed","id":"46","r":"lights","state":{"alert":null,"bri":17,"colormode":"hs","ct":200,"effect":null,"hue":56401,"on":true,"reachable":true,"sat":231,"xy":[0.3368,0.6262]},"t":"event","uniqueid":"84:2e:14:ff:fe:34:3f:cc-01"}

2020-12-12 11:17:05.755 [TRACE] [z.internal.handler.LightThingHandler] - Result code=200, body=[{"success":{"/lights/46/state/bri":17}},{"success":{"/lights/46/state/hue":56401}},{"success":{"/lights/46/state/sat":231}}]

2020-12-12 11:17:05.764 [TRACE] [z.internal.handler.LightThingHandler] - deconz:extendedcolorlight:homeserver:842e14fffe343fcc01 received LightMessage{hascolor=null, ctmax=null, ctmin=null, type=null, state=LightState{reachable=true, on=true, bri=17, alert='null', colormode='hs', effect='null', hue=56401, sat=231, ct=200, xy=[0.3368, 0.6262], transitiontime=null}, e='changed', r='lights', t='event', id='46', manufacturername='', modelid='', name='', swversion='', ep='', uniqueid='84:2e:14:ff:fe:34:3f:cc-01'}

2020-12-12 11:17:05.770 [DEBUG] [z.internal.handler.LightThingHandler] - val = '231', scaledValue = '91'

==> /var/log/openhab2/events.log <==

2020-12-12 11:17:05.773 [vent.ItemStateChangedEvent] - Light_BaR_Mirror_Color changed from 0.0,100,7 to 309.827576,90.980392,7.000000

==> /var/log/openhab2/openhab.log <==

2020-12-12 11:17:05.777 [DEBUG] [z.internal.handler.LightThingHandler] - val = '17', scaledValue = '7'

==> /var/log/openhab2/events.log <==

2020-12-12 11:17:05.829 [vent.ItemStateChangedEvent] - Light_BaR_Mirror_Color changed from 309.827576,90.980392,7.000000 to 309.82467383840697,91,7

==> /var/log/openhab2/openhab.log <==

2020-12-12 11:17:19.906 [TRACE] [nternal.netutils.WebSocketConnection] - Raw data received by websocket: {"e":"changed","id":"46","r":"lights","state":{"alert":null,"bri":17,"colormode":"ct","ct":200,"effect":null,"hue":0,"on":true,"reachable":true,"sat":254,"xy":[0.3368,0.6262]},"t":"event","uniqueid":"84:2e:14:ff:fe:34:3f:cc-01"}

2020-12-12 11:17:19.911 [TRACE] [z.internal.handler.LightThingHandler] - deconz:extendedcolorlight:homeserver:842e14fffe343fcc01 received LightMessage{hascolor=null, ctmax=null, ctmin=null, type=null, state=LightState{reachable=true, on=true, bri=17, alert='null', colormode='ct', effect='null', hue=0, sat=254, ct=200, xy=[0.3368, 0.6262], transitiontime=null}, e='changed', r='lights', t='event', id='46', manufacturername='', modelid='', name='', swversion='', ep='', uniqueid='84:2e:14:ff:fe:34:3f:cc-01'}

2020-12-12 11:17:19.916 [DEBUG] [z.internal.handler.LightThingHandler] - val = '254', scaledValue = '100'

2020-12-12 11:17:19.921 [DEBUG] [z.internal.handler.LightThingHandler] - val = '17', scaledValue = '7'

==> /var/log/openhab2/events.log <==

2020-12-12 11:17:19.950 [vent.ItemStateChangedEvent] - Light_BaR_Mirror_Color changed from 309.82467383840697,91,7 to 0.0,100,7

Don’t know if this is of any interest. Raw data from the same light popping up once in a while when in Color Temperature mode. Thought it looked weird with that many rows of the same thing.

2020-12-12 11:27:41.672 [TRACE] [nternal.netutils.WebSocketConnection] - Raw data received by websocket: {"attr":{"colorcapabilities":0,"ctmax":65279,"ctmin":0,"id":"46","lastannounced":null,"lastseen":"2020-12-12T10:27Z","manufacturername":"Heiman","modelid":"TS0505A","name":"Bathroom Ledstrip","swversion":null,"type":"Extended color light","uniqueid":"84:2e:14:ff:fe:34:3f:cc-01"},"e":"changed","id":"46","r":"lights","t":"event","uniqueid":"84:2e:14:ff:fe:34:3f:cc-01"}

2020-12-12 11:27:41.680 [TRACE] [z.internal.handler.LightThingHandler] - deconz:extendedcolorlight:homeserver:842e14fffe343fcc01 received LightMessage{hascolor=null, ctmax=null, ctmin=null, type=null, state=null, e='changed', r='lights', t='event', id='46', manufacturername='', modelid='', name='', swversion='', ep='', uniqueid='84:2e:14:ff:fe:34:3f:cc-01'}

2020-12-12 11:27:43.653 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:27:43.662 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:27:43.674 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:27:43.676 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:27:43.684 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:27:43.684 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:27:43.694 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:27:43.734 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:27:43.741 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:27:43.750 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:27:43.758 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:27:43.796 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:27:43.804 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:27:43.814 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:27:43.823 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:27:43.864 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:27:43.871 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:27:43.877 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:27:43.970 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:27:43.978 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

2020-12-12 11:27:43.985 [TRACE] [nz.internal.StateDescriptionProvider] - returning new stateDescription for deconz:extendedcolorlight:homeserver:842e14fffe343fcc01:color_temperature

But the Deconz REST API reports the correct value (and even sends a changed event with the new values.

Okay but the light is not changing. I have to set a color in Phoscon first to “unlock” it in openhab.

What about this last row that is always in the end when trying to set color. Isn’t it weird that it goes back to 0.0?

2020-12-12 11:17:19.950 [vent.ItemStateChangedEvent] - Light_BaR_Mirror_Color changed from 309.82467383840697,91,7 to 0.0,100,7

I don’t have much knowledge about different lights but this ledstrip seems to set Color with certain LEDs and when Color Temp is set different LEDs is lit up that is not in use when using color mode.

Okay, maybe gotten a bit wiser.

It seems like when I’m setting Color from Phoscon colormode is in XY

When I set color from Openhab with colorpicker Colormode is in HS

I’m guessing this is the issue. The light wants it in XY or something, whatever that is. Will do some googleing in that area…

Log when setting Color in Phoscon: Colormode XY

020-12-12 14:17:36.442 [TRACE] [nternal.netutils.WebSocketConnection] - Raw data received by websocket: {"e":"changed","id":"46","r":"lights","state":{"alert":null,"bri":254,"colormode":"xy","ct":470,"effect":null,"hue":0,"on":true,"reachable":true,"sat":254,"xy":[0.4951,0.1625]},"t":"event","uniqueid":"84:2e:14:ff:fe:34:3f:cc-01"}

2020-12-12 14:17:36.447 [TRACE] [z.internal.handler.LightThingHandler] - deconz:extendedcolorlight:homeserver:842e14fffe343fcc01 received LightMessage{hascolor=null, ctmax=null, ctmin=null, type=null, state=LightState{reachable=true, on=true, bri=254, alert='null', colormode='xy', effect='null', hue=0, sat=254, ct=470, xy=[0.4951, 0.1625], transitiontime=null}, e='changed', r='lights', t='event', id='46', manufacturername='', modelid='', name='', swversion='', ep='', uniqueid='84:2e:14:ff:fe:34:3f:cc-01'}

Log when setting Color in Openhab with colorpicker: Colormode HS

2020-12-12 14:21:19.199 [TRACE] [nternal.netutils.WebSocketConnection] - Raw data received by websocket: {"e":"changed","id":"46","r":"lights","state":{"alert":null,"bri":254,"colormode":"hs","ct":500,"effect":null,"hue":64442,"on":true,"reachable":true,"sat":254,"xy":[0.7156,0.2567]},"t":"event","uniqueid":"84:2e:14:ff:fe:34:3f:cc-01"}

2020-12-12 14:21:19.201 [TRACE] [z.internal.handler.LightThingHandler] - Result code=200, body=[{"success":{"/lights/46/state/bri":254}},{"success":{"/lights/46/state/hue":64442}},{"success":{"/lights/46/state/sat":254}}]

2020-12-12 14:21:19.204 [TRACE] [z.internal.handler.LightThingHandler] - deconz:extendedcolorlight:homeserver:842e14fffe343fcc01 received LightMessage{hascolor=null, ctmax=null, ctmin=null, type=null, state=LightState{reachable=true, on=true, bri=254, alert='null', colormode='hs', effect='null', hue=64442, sat=254, ct=500, xy=[0.7156, 0.2567], transitiontime=null}, e='changed', r='lights', t='event', id='46', manufacturername='', modelid='', name='', swversion='', ep='', uniqueid='84:2e:14:ff:fe:34:3f:cc-01'}

Oh cool! I’m not that into Github by I take it you’ve done a fix for this and I can hope for that to be accepted in a near future? :slight_smile: Impressed by the fast work.

I will immediately stop with my bad workaround which I just realized was worst than I thought.

Thanks for helping out!

Hello again!

I would just like to say that this is still not working. I’m now running on 3.0.0 and have tried the behavior of the lights in this environment as well. It’s actually working worse now than before.

The light behaves as expected when controlled from Phoscon but OH can only set Color Temperature. If I change to Color from Phoscon OH is still unable to change to another color (this worked before). If turning the light off and on from OH when in colormode the light looses its color and goes back to Color Temperature.

When Phoscon sets a Color the light Colormode is: XY

When Openhab does the same thing the light Colormode is: HS
When Openhab sets a color the values of X,Y is not updated.

Is the light supposed to be able to handle Colormode HS or what is the actual problem?

Setup:
Raspberry Pi 4
Openhab 3.0.0
Deconz 2.7.1
Conbee 2

Logs:

From ColorTemperature to Color in Phoscon:
2020-12-29 12:14:58.978 [TRACE] [z.internal.handler.LightThingHandler] - deconz:extendedcolorlight:00212E048801:588e81fffed75fd701 received LightMessage{hascolor=null, ctmax=null, ctmin=null, type=null, state=LightState{reachable=true, on=true, bri=132, alert='null', colormode='xy', effect='0', effectSpeed=null, hue=0, sat=254, ct=333, xy=[0.2983, 0.0785], transitiontime=null}, e='changed', r='LIGHTS', t='event', id='33', manufacturername='', modelid='', name='', swversion='', ep='', uniqueid='58:8e:81:ff:fe:d7:5f:d7-01'}

From ColorTemperature to Color in Openhab:

2020-12-29 12:17:48.964 [TRACE] [ernal.handler.DeconzBaseThingHandler] - Sending 
{"on":true,"bri":132,"hue":58981,"sat":254} to LIGHTS 33 via 
http://192.168.10.2:80/api/XXXXXX/lights/33/state
2020-12-29 12:17:48.981 [TRACE] [nternal.netutils.WebSocketConnection] - Raw data 
received by websocket OH-httpClient--deconz-00212E048801$21691364: 
{"e":"changed","id":"33","r":"lights","state": {"alert":null,"bri":132,"colormode":"hs","ct":333,"effect":"0","hue":58981,"on":true,"reachable":true,"sat":254,"xy":[0.2983,0.0785]},"t":"event","uniqueid":"58:8e:81:ff:fe:d7:5f:d7-01"}

2020-12-29 12:17:48.981 [TRACE] [ernal.handler.DeconzBaseThingHandler] - Result code=200, body=[{"success":{"/lights/33/state/on":true}},{"success":{"/lights/33/state/bri":132}},{"success":{"/lights/33/state/hue":58981}},{"success":{"/lights/33/state/sat":254}}]

2020-12-29 12:17:48.984 [TRACE] [z.internal.handler.LightThingHandler] - deconz:extendedcolorlight:00212E048801:588e81fffed75fd701 received LightMessage{hascolor=null, ctmax=null, ctmin=null, type=null, state=LightState{reachable=true, on=true, bri=132, alert='null', colormode='hs', effect='0', effectSpeed=null, hue=58981, sat=254, ct=333, xy=[0.2983, 0.0785], transitiontime=null}, e='changed', r='LIGHTS', t='event', id='33', manufacturername='', modelid='', name='', swversion='', ep='', uniqueid='58:8e:81:ff:fe:d7:5f:d7-01'}

Change color in Openhab when light is already set to color from Phoscon (this worked before):

2020-12-29 12:28:20.963 [TRACE] [ernal.handler.DeconzBaseThingHandler] - Sending {"on":true,"bri":132,"hue":21480,"sat":254} to LIGHTS 33 via http://192.168.10.2:80/api/XXXXXX/lights/33/state

2020-12-29 12:28:20.970 [TRACE] [ernal.handler.DeconzBaseThingHandler] - Result code=200, body=[{"success":{"/lights/33/state/on":true}},{"success":{"/lights/33/state/bri":132}},{"success":{"/lights/33/state/hue":21480}},{"success":{"/lights/33/state/sat":254}}]

2020-12-29 12:28:20.973 [TRACE] [z.internal.handler.LightThingHandler] - deconz:extendedcolorlight:00212E048801:588e81fffed75fd701 received LightMessage{hascolor=null, ctmax=null, ctmin=null, type=null, state=LightState{reachable=true, on=true, bri=132, alert='null', colormode='hs', effect='0', effectSpeed=null, hue=21480, sat=254, ct=333, xy=[0.7331, 0.2644], transitiontime=null}, e='changed', r='LIGHTS', t='event', id='33', manufacturername='', modelid='', name='', swversion='', ep='', uniqueid='58:8e:81:ff:fe:d7:5f:d7-01'}

Did you try setting colormode to xy ad described in the docs?

Oh I actually missed that. Tried it now but it still doesn’t seem to work.
It still says Color Mode HS in the logs.

Log when trying to set color after setting the advanced setting Color Mode to XY

2020-12-29 15:33:04.844 [TRACE] [ernal.handler.DeconzBaseThingHandler] - Sending {"on":true,"bri":254,"hue":8738,"sat":254} to LIGHTS 33 via http://192.168.10.2:80/api/XXXXX/lights/33/state

2020-12-29 15:33:04.852 [TRACE] [nternal.netutils.WebSocketConnection] - Raw data received by websocket OH-httpClient--deconz-00212E048801$32017363: {"e":"changed","id":"33","r":"lights","state":{"alert":null,"bri":254,"colormode":"hs","ct":364,"effect":"0","hue":8738,"on":true,"reachable":true,"sat":254,"xy":[0.4885,0.1598]},"t":"event","uniqueid":"58:8e:81:ff:fe:d7:5f:d7-01"}

2020-12-29 15:33:04.854 [TRACE] [ernal.handler.DeconzBaseThingHandler] - Result code=200, body=[{"success":{"/lights/33/state/on":true}},{"success":{"/lights/33/state/bri":254}},{"success":{"/lights/33/state/hue":8738}},{"success":{"/lights/33/state/sat":254}}]

2020-12-29 15:33:04.855 [TRACE] [z.internal.handler.LightThingHandler] - deconz:extendedcolorlight:00212E048801:588e81fffed75fd701 received LightMessage{hascolor=null, ctmax=null, ctmin=null, type=null, state=LightState{reachable=true, on=true, bri=254, alert='null', colormode='hs', effect='0', effectSpeed=null, hue=8738, sat=254, ct=364, xy=[0.4885, 0.1598], transitiontime=null}, e='changed', r='LIGHTS', t='event', id='33', manufacturername='', modelid='', name='', swversion='', ep='', uniqueid='58:8e:81:ff:fe:d7:5f:d7-01'}

2020-12-29 15:33:05.011 [TRACE] [nternal.netutils.WebSocketConnection] - Raw data received by websocket OH-httpClient--deconz-00212E048801$32017363: {"attr":{"id":"43","lastannounced":null,"lastseen":"2020-12-29T14:33Z","manufacturername":"Heiman","modelid":"TS011F","name":"Outlet Lidl 3","swversion":"69","type":"On/Off plug-in unit","uniqueid":"bc:33:ac:ff:fe:c4:5b:62-03"},"e":"changed","id":"43","r":"lights","t":"event","uniqueid":"bc:33:ac:ff:fe:c4:5b:62-03"}

2020-12-29 15:33:05.013 [TRACE] [z.internal.handler.LightThingHandler] - deconz:onofflight:00212E048801:bc33acfffec45b6203 received LightMessage{hascolor=null, ctmax=null, ctmin=null, type=null, state=null, e='changed', r='LIGHTS', t='event', id='43', manufacturername='', modelid='', name='', swversion='', ep='', uniqueid='bc:33:ac:ff:fe:c4:5b:62-03'}

Looks like there was missing something. Can you try update org.openhab.binding.deconz https://janessa.me/esh/org.openhab.binding.deconz-3.1.0-SNAPSHOT.jar?

It actually seems to work now. I rebooted Openhab service. First time i switched to colormode XY the deconz bridge crashed. Then rebooted just the binding. After Openhab service restart I can set colors from OH.

It is still something weird happening but maybe thats more a user interface bug than a deconz thing. When I bring up the colorwheel to set a color the light never changes on the first click. Nothing is seen in the log either saying that I’ve even clicked. I have to click twice, second time it works. If setting a color through the API the light changes on the first try so there is some difference there. I will investigate it more but for now thank you.
I hadn’t realised the feature of forcing the Color Mode.

Oh okay, didn’t see that you had answered. I can try and update if you still want after reading my latest post?

Yes please. You can try if switching between hs and xD breaks/recovers.

The automatic discovery uses the colormode reported in the first state and uses hs if it cannot determine which mode to use. So if the colormode is ct when the thingbis created, the thing will use hs. If it is xy, it‘ll use xy.

Okay I will try the update. Okay so if I have a color set on the light when the thing pops into my inbox it will use xy? If it didn’t I need to choose the advanced setting and force it?

So I will update and try and switch between hs and xy and just see that nothing breaks? Bridge offline for example?

I need to get some food but straigt after I will try the update! 30 min…

The logic was before:

  • from first state response, read the colormode. if it is xy, use xy, if it is something else (hs or ct), use hs

So if the light was in color mode, it would probably report xy and the thing would chose xy as colormode. If the light was in colortemperature mode, it would report ct and the thing would chose hs as colormode. So it it works or not was only dependenant on the mode the light was in during thing creation.

The colorMode setting in the config was ignored, due to a bug. This is fixed now. If colorMode is not set, the logic is the same as before, if it is set (to either xy or hs), that mode will be used.

So if you set it to hs, the behaviour shpuld be as before (i.e. color setting is not working). If you then change to xy, it should work.

Aha I see! And I can confirm that it is working. I updated the binding to the snapshot and tested.

When I set Colormode to XY I can set colors in Openhab.
When I set Colormode to HS I can not.

The bridge crashed after updating but maybe that is expected when you update while running. After restart of bundle everything worked and I could confirm the color mode setting works.

Nice, great job! I’m overall impressed by the quick responses and smart people on this forum. Thank you. Now that it works maybe I should celebrate with buying another Lidl lightstrip!

Happy New Year!

1 Like