Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.53k stars 1.63k forks source link

Ikea Bulb LED1624G9 "normal" hue after color change #678

Closed djusHa closed 5 years ago

djusHa commented 5 years ago

Hi everyone!

How can i return to a "normal" hue on my Ikea bulb, after a color change? What i want is the same warm white color tone that i get if i turn the Bulb off and on again ( bulb was currentless ).

Koenkk commented 5 years ago

This can be done by setting the color_temperature to the default one.

djusHa commented 5 years ago

thanks for prompt replay. Any suggestions which these value is?

djusHa commented 5 years ago

Send various values with zigbee2mqtt/0xd0cf5efffe28ba53/set {"state":"ON","color_temp":255} or zigbee2mqtt/0xd0cf5efffe28ba53/set {"color_temp":255} no Luck

Feedback from zigbee2mqtt: zigbee2mqtt:info 2018-12-10 23:56:05 MQTT publish, topic: 'zigbee2mqtt/0xd0cf5efffe28ba53', payload: '{"state":"ON","brightness":254,"color":{"x":0.14,"y":0.052}}'

There is no color_temp attribute...

Koenkk commented 5 years ago

Can you provide more logging?

djusHa commented 5 years ago

Found something interesting, part of data from db: type: 'Router', ieeeAddr: '0xd0cf5efffe28ba53', nwkAddr: 21567, manufId: 4476, manufName: 'IKEA of Sweden', powerSource: 'Mains (single phase)', modelId: 'TRADFRI bulb E27 CWS opal 600lm', epList: [ 1 ], status: 'online', joinTime: 1544565437, endpoints: { '1': [Circular] } }

lightingColorCtrl: { dir: Spec { cid: 'lightingColorCtrl', sid: 'dir', value: 1 }, attrs: Spec { '15': 0, '16397': 0, '16398': 0, '65533': 1, cid: 'lightingColorCtrl', sid: 'attrs', remainingTime: 0, currentX: 30015, currentY: 26870, colorMode: 2, numPrimaries: 0, enhancedColorMode: 1, colorCapabilities: 8, colorTempPhysicalMin: 250, colorTempPhysicalMax: 454 } },

and here from debug log: zigbee2mqtt:debug 2018-12-11 21:36:48 Received zigbee message of type 'devChange' with data '{"cid":"lightingColorCtrl","data":{"currentX":30499,"currentY":24765,"colorMode":1}}' of device 'TRADFRI bulb E27 CWS opal 600lm' (0xd0cf5efffe28ba53) zigbee2mqtt:info 2018-12-11 21:36:48 MQTT publish, topic: 'zigbee2mqtt/0xd0cf5efffe28ba53', payload: '{"state":"ON","brightness":254,"color":{"x":0.465,"y":0.378}}'

Device seems to support color_temp. What is "colorMode" and "enhancedColorMode"?

djusHa commented 5 years ago

e0426b5

Koenkk commented 5 years ago

Can you checkout the dev branch and check if color_temp work for this bulb? (should be supported: https://github.com/Koenkk/zigbee-shepherd-converters/blob/master/devices.js#L416)

djusHa commented 5 years ago

What about this commit: LED1624G9 doesn't support color temperature.

Is it still relevant or is there new Info about the Device?

Koenkk commented 5 years ago

I don't know, does setting the color temperature work?

sergiejL commented 5 years ago

Hi, I have the same problem. On "release" docker image command is not supported, on latest develop docker image command supported and processed (according to log sent to zigbee network "ToZigbee"). Unfortunately it doesn't work.

Workaround with setting xy color according CIEXYZ gives 20% light less then bulb after power cycle.

jvdpas commented 5 years ago

I don't know, does setting the color temperature work?

No setting { color_temp: 304 } does not work on this bulb.

Koenkk commented 5 years ago

@jvdpas thanks for confirming, this is also what I observed with my LED1624G9, removed the colortemp support for this device.

sergiejL commented 5 years ago

Hi Koenkk, but how restore "normal" color. This bulb has 4 different LED (warm white, red, yellow, blue): https://github.com/ffleurey/ThingML-Tradfri

I've tried to set xy values (to match RGB from that site or white curve on xy chart) but light level is ~20% lower (measure using RGB sensor in my smartphone) I'm new in zigbee world but is it possible to sniff decrypted data between Ikea remote (or as a last resort Ikea gateway) and bulb?

Koenkk commented 5 years ago

@sergiejL yes that's possible, please see https://koenkk.github.io/zigbee2mqtt/how_tos/how_to_sniff_zigbee_traffic.html

djusHa commented 5 years ago

@sergiejL:

Can you try this Values, especially X,Y:

// Color / Temperature related, these are independent of brightness, i.e. do not change if brightness does public static final String COLOR = "5706"; public static final String COLOR_X = "5709"; public static final String COLOR_Y = "5710"; public static final String COLOR_COLD = "f5faf6"; public static final String COLOR_COLD_X = "24930"; public static final String COLOR_COLD_Y = "24694"; public static final String COLOR_NORMAL = "f1e0b5"; public static final String COLOR_NORMAL_X = "30140"; public static final String COLOR_NORMAL_Y = "26909"; public static final String COLOR_WARM = "efd275"; public static final String COLOR_WARM_X = "33135"; public static final String COLOR_WARM_Y = "27211";

It's a part from src of ThingML / Tradfri. https://github.com/ffleurey/ThingML-Tradfri/blob/master/tradfri-java/src/main/java/org/thingml/tradfri/TradfriConstants.java

sergiejL commented 5 years ago

public static final String COLOR_NORMAL_X = "30140"; public static final String COLOR_NORMAL_Y = "26909";

unfortunately color is almost the same (naked eye) but illuminance drops from ~160 lx to 130 lx (on table placed 1m bellow single bulb). I sent {"state": "ON", "color": {"x": 0.45989990234, "y": 0.41059875488}} which gives log message:

Zigbee publish to device '**', lightingColorCtrl - moveToColor - {"transtime":0,"colorx":30140,"colory":26909} - {"manufSpec":0,"disDefaultRsp":0} - null

I'll buy ikea remote and capture traffic

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

keteflips commented 4 years ago

Same issue

https://github.com/Koenkk/zigbee2mqtt/issues/3738