Koenkk/zigbee2mqtt

IKEA TRADFRI remote control, color temperature not working

Closed this issue · 224 comments

Hello,

after updating to the latest coordinator firmware (stable, January 2019) I was able to connect my IKEA TRADFRI floalt panel und the Ikea 5 button remote control...

Over zigbee2mqtt I have full control to the IKEA light panel (on/off, brightness, color temperature)

With the remote control I lost the ability to change the color temperature... So I can only switch it on and off and change brightness...

Very weird behavior... 😁

Somebody any idea how that can be happen and how to solve it.?

No, not yet,

I don't want do use the remote in zigbee2mqtt so I thought that wouldn't be necessary

@Koenkk I am having a similar issue. I have followed the cc sniffer guidance and bound the switch to a light fitting with three bulbs. The on/off switch and brightness work flawlessly but the change colour buttons do not change colour temperature like they used to when using the tradfri hub.

I noticed that the normal IKEA panel supports only 3 different color temperatures...

With zigbee2mqtt I can set more than that! Maybe the firmware of the panel gets in an unknown state or something?!

I've just checked and indeed setting colour temperature is not possible using this method. Perhaps some extra setup is done, need to do some more sniffing..

I have just paired a second remote to a full colour tradfri bulb. Set up went well and it integrates well with home assistant but the arrow buttons do not change colour with this bulb too

In my environment the IKEA remote control works very well with the IKEA bulbs, inclusive setting of the color temperature.

What I've done

  • Complete new setup after two crashes due to tests of the reporting feature (but that's another story)
  • Paired some IKEA bulbs
  • Paired IKEA Remote Control
  • Found out and added the group number of the Remote Control
  • Added the bulbs to the group of the Remote Control (no bind!)
  • every feature works well

zigbee2mqtt version 1.2.1 (commit #e5ca977)
Coordinator firmware version: '20190223'

Great Job!
Thanks to Koenkk and all contributors!

@didiht
So you don't paired the remote directly with the IKEA lamps?
Are the remote working without the zigbee2mqtt coordinater?

@ripperle
No, I did not pair the remote directly with the IKEA bulbs.
Yes, the remote control works with the IKEA bulbs, even without the zigbee2mqtt coordinator.

I made following test:

  • Delete the lamp from the group of the IKEA remote control -> IKEA remote does not work with the bulb anylonger
  • Add lamp again to the group of the IKEA remote -> it works again, toggle, brightness, color temperature

With the 'bind' feature I had no success to set the color_temperature with the IKEA remote previously, but I didin't test this with the current version.

bjobo commented

@didiht
I tried exactly your setup: reset everything, pair control and lights to cc2530 controller, sniff the group, add lights to group. Switching on/off and changing brightness works like a charm. However: setting the color temperature via IKEA remote control ist not working.

Can I help doing some sniffing? When I press the arrow buttons on the IKEA remote control I receive the following message in Wireshark: ZCL Scenes: Unknown Command, Seq: xx There ist no "response" from the "receiving" lamp.

Frame 581: 55 bytes on wire (440 bits), 55 bytes captured (440 bits) on interface 0
IEEE 802.15.4 Data, Dst: 0xa041, Src: 0xf909
ZigBee Network Layer Data, Dst: Broadcast, Src: 0xf909
ZigBee Application Support Layer Data, Group: 0xb62e, Src Endpt: 1
    Frame Control Field: Data (0x0c)
    Group: 0xb62e
    Cluster: Scenes (0x0005)
    Profile: Home Automation (0x0104)
    Source Endpoint: 1
    Counter: 7
ZigBee Cluster Library Frame, Mfr: Unknown (0x117c)
    Frame Control Field: Cluster-specific (0x05)
    Manufacturer Code: Unknown (0x117c)
    Sequence Number: 88
    Command: Unknown (0x07)
    Payload

zigbee2mqtt version 1.2.1 (commit #e5ca977)
Coordinator firmware version for CC2530 (via USB): '20190223'

@bjobo
Maybe I have to mention that before pairing to z2m all IKEA devices were paired to the IKEA bridge to get the newest firmware.

I also sniffed an arrow-left-click and identified two frames:

  • The first one with external source address of the remote (Frame 2)
  • The second one with external source address of the bulb (Frame 4)
Frame 2: 115 bytes on wire (920 bits), 115 bytes captured (920 bits) on interface 0
Internet Protocol Version 4, Src: 192.168.1.3, Dst: 192.168.1.3
User Datagram Protocol, Src Port: 17754 (17754), Dst Port: 17754 (17754)
ZigBee Encapsulation Protocol, Channel: 11, Length: 55
IEEE 802.15.4 Data, Dst: 0x6e92, Src: 0x0409
ZigBee Network Layer Data, Dst: Broadcast, Src: 0x0409
Frame Control Field: 0x0248, Frame Type: Data, Discover Route: Enable, Security Data
ZigBee Application Support Layer Data, Group: 0x7a2a, Src Endpt: 1
    Frame Control Field: Data (0x0c)
    Group: 0x7a2a
    Cluster: Scenes (0x0005)
    Profile: Home Automation (0x0104)
    Source Endpoint: 1
    Counter: 25
ZigBee Cluster Library Frame, Mfr: Unknown (0x117c)
    Frame Control Field: Cluster-specific (0x05)
    Manufacturer Code: Unknown (0x117c)
    Sequence Number: 77
    Command: Unknown (0x07)
Data (4 bytes)

0000  01 01 0d 00                                       ....


Frame 4: 115 bytes on wire (920 bits), 115 bytes captured (920 bits) on interface 0
Internet Protocol Version 4, Src: 192.168.1.3, Dst: 192.168.1.3
User Datagram Protocol, Src Port: 17754 (17754), Dst Port: 17754 (17754)
ZigBee Encapsulation Protocol, Channel: 11, Length: 55
IEEE 802.15.4 Data, Dst: Broadcast, Src: 0x6e92
ZigBee Network Layer Data, Dst: Broadcast, Src: 0x0409
Frame Control Field: 0x0248, Frame Type: Data, Discover Route: Enable, Security Data
ZigBee Application Support Layer Data, Group: 0x7a2a, Src Endpt: 1
    Frame Control Field: Data (0x0c)
    Group: 0x7a2a
    Cluster: Scenes (0x0005)
    Profile: Home Automation (0x0104)
    Source Endpoint: 1
    Counter: 25
ZigBee Cluster Library Frame, Mfr: Unknown (0x117c)
    Frame Control Field: Cluster-specific (0x05)
    Manufacturer Code: Unknown (0x117c)
    Sequence Number: 77
    Command: Unknown (0x07)
Data (4 bytes)

0000  01 01 0d 00                                       ....

Maybe that helps.

If I can do any further investigation just tell me.

@ripperle @bjobo
Now I had the same issue: Removing, and pairing again (6 x powercycle) lost the ability of changing the color_temp with the (grouped) remote.

But following procedure leads in my environment to the expected functionality:

  • remove the bulb from the zigbee2mqtt bridge
  • stop zigbee2mqtt bridge
  • pair the bulb to the IKEA bridge with the IKEA remote via Tradfri app
  • remove the bulb from the bridge via Tradfri app
  • power off the bulb
  • start zigbee2mqtt bridge
  • power on the bulb nearby the CC253x (no powercycle!)
  • add the bulb to the group of the IKEA Remote
  • SUCCESS color_temp is working again with the IKEA remote

It seems there is a (small?) difference of the initial states (reset with powercycle, reset by pairing and removing from IKEA bridge) that leads to the variance of functionality.
Could you test this please?

@Koenkk
Maybe we could give a hint in the documentation after others have tested this procedure and confirm that it works?

So it seems the tradfri hub does some special setup, could you sniff the zigbee traffic when pairing it to the hub? http://www.zigbee2mqtt.io/how_tos/how_to_sniff_zigbee_traffic.html

@didiht
I have no IKEA gateway or IKEA app 😁

@Koenkk
Finally I could sniff the traffic during pairing. Involved components are IKEA hub, IKEA App, IKEA remote and IKEA bulb LED1545G12 (white spectrum).
But I don't have the Khow How to analyze.
What next? Shall I upload the WS file?

bjobo commented

@didiht
Hooray! Today I finaly got time to test your procedure. I can confirm that color changing now ist working.
I'd support your hypothesis that the key aspect is not to powercycle the bulb after removing it from the TRADFRI app.
However, this evening I was not able to filter the IKEA TRADFRI connect from the zigbee traffic due to too much 'noise' of other zigbee devices (and missing experience with wireshark and the zigbee protocol). If necessary I'v to try again at the weekend.

But following procedure leads in my environment to the expected functionality:

* remove the bulb from the zigbee2mqtt bridge

* stop zigbee2mqtt bridge

* pair the bulb to the IKEA bridge with the IKEA remote via Tradfri app

* remove the bulb from the bridge via Tradfri app

* power off the bulb

* start zigbee2mqtt bridge

* power on the bulb nearby the CC253x (no powercycle!)

* add the bulb to the group of the IKEA Remote

* **SUCCESS** color_temp is working again with the IKEA remote

It seems there is a (small?) difference of the initial states (reset with powercycle, reset by pairing and removing from IKEA bridge) that leads to the variance of functionality.

@didiht could you upload it here?

@bjobo
I am glad to be able to help 😄

@Koenkk here it is:
Ws.zip

Hi,
same problem here.

Is there an Solution without Tradfri Bridge?

Devices are LED1624G9 and LED1546G12.

coordinator_firmware 20190223

Zigbee2MQTT version1.3.1

After reset the bulbs and tradfri remote
to factory and pairing with Zigbee2MQTT, no more ability to change colors / color temp with the remote.

After adding the bulbs to Tradfri remotes group, even no luck.

Same sniffer output like #1232 (comment)

On/Off and brightness on Tradfri remotes working good.

I've did some further investigation but didn't manage to decrypt the network.

I think the only hope to ever solve this issue is that IKEA shares the required Zigbee commands. I've asked them here: https://www.reddit.com/r/tradfri/comments/bpx9qf/what_magic_setup_does_the_e1524_ikea_tradfri/, fingers crossed..

stale commented

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.

Does the coordinator know which bulbs the remote is paired to?
Maybe introduce a device option for the remote to emulate the original behavior by sending commands to change the color temperature on left/right button presses?

BafHS commented

i have the two problems.

  1. Colortemp
    my steps:
  1. lamp state
  • in FHEM the power state not changing, when i switch the lamp with the remote control???
    what can i do?

@vogler I think the whole idea of this is that it works when zigbee2mqtt is down, note that your solution can already be achieved via e.g. a home assistant automation.

@BafHS for 2 you can use the reporting feature: http://www.zigbee2mqtt.io/information/report.html

that it works when zigbee2mqtt is down

Would be nice, but you wrote it's not easy to do without information from Ikea?

be achieved via e.g. a home assistant automation

Of course everyone could fix it outside (what are the colors of the scenes?), but IMHO it's better to just make it behave as expected. Less confusion and bug reports.
Is there anything speaking against it?

@vogler for that, first #1716 has to be implemented.

BafHS commented

thx, it works fine...

@BafHS for 2 you can use the reporting feature: http://www.zigbee2mqtt.io/information/report.html

stale commented

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.

My assumption has always been that this will select the next/previous scene that have been setup with the IKEA app on the Tradfri bridge. The 3 color Temp scenes are just the default. Not using IKEA app and Gateway anymore, so unable to verify this assumption myself.

stale commented

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.

I find your experiences quite awkward, since I got this working from the very first day just using zigbee2mqtt, and I never had the official Tradfri gateway.

As described here (#3485) I had this working, and suddenly (I can find the trigger, maybe there was one, but I can't recall which) it stopped working. However, I never had the official Tradfri gateway, so there must be something else.

With the latest firmware update of the remote and/or the bulb something has changed. I have bulbs paired before the upgrade where color temperature still can be controlled by the remote.
With a newly paired bulb it is not possible to control color temp anylonger.

For me it's the other way around. Changing color temp did not work.
Then I updated my remote and bulbs last week, paired the remote to the coordinator and then to the bulb, and it worked.

For me it's the other way around. Changing color temp did not work.
Then I updated my remote and bulbs last week, paired the remote to the coordinator and then to the bulb, and it worked.

I'll try to re-pair the bulb and comment back to see if that works.
Maybe is something related to pairing. I think that in one of my tests I did a direct pairing using the Ikea motion detector which "destroyed" my pairing, and I had to re-pair.
Maybe that's the trigger which made me loose the functionality.

I repaired but with the coordinator a bit farther away than the first pairing, and maybe that had something to do.
Well..., and I has an outdated firmware in the first pairing, and this pairing was with the newest pairing...

ngdio commented

I've set up zigbee2mqtt properly for the first time last week and it's not working for any of my bulbs. I haven't done firmware updates in weeks either.

I've tried repairing the bulb. Same thing.

And I think I know whats the problem. The older firmwares had included different scenes prebuilt. This latest firmware doesn't. So if you re-pair using latest firmware, you "loose" those scenes, that have to be set again into the bulb, probably using genScenes cluster, if that makes sense.

The thing is, how to "insert" / "add" scenes into the bulb?

EDIT: This should be enough to achieve what we are looking for: #2069

vide commented

After reading all the comments here and in #2069 looks like there is no solution right now :( Is there a way to downgrade the ikea bulbs firmware to get them back to its original settings with the scenes integrated?

@vide My bulb still has all its scenes and I can change them with the remote. Both updated to the newest firmware.

ngdio commented

@vogler Did you bind the remotes to the groups before or after the update? This problem only occurs in the latter scenario, as far as I can tell.

@vogler Did you bind the remotes to the groups before or after the update? This problem only occurs in the latter scenario, as far as I can tell.

I'd rather say when was the pairing. Binding shouldn't affect.

First I updated the remote which then didn't work anymore. So I paired it again: first to the coordinator (press 4 times), then to the bulb (pressed 10s). I could see messages from the remote on the coordinator and the bulb worked with it including left/right for changing scenes.
Then I updated all bulbs. Did not have to pair them. Kept working with coordinator and remote.

vide commented

@vogler just tried to pair again the remote to the bulb (10 second reset button) and nothing. I would tell you if you want to risk to pair again the bulbs with the controller. The arrows should stop working (no more scenes to control)

Ok, thanks, than I will avoid re-pairing them :)

I'm facing the same problem with a color bulb (IKEA LED1624G9).

I have noticed exactly the same things:

  1. Pairing the bulb directly with the remote allows to control everything, including scenes.
  2. Pairing the remote and the bulb to the coordinator allows to control ON/OFF and brightness, but not scenes.
  3. Upgrading the bulb while already paired to the coordinator magically restores scene control.
  4. Re-pairing the bulb after an upgrade breaks scene control again (game over if no new firmware is available).

My guess is that factory reset (which is the only known way to trigger pairing mode) erases some kind of scene configuration from the bulb. This configuration may be initialized either by a firmware upgrade, or by the Tradfri remote itself when paired directly to the bulb.

If these assumptions are correct, there would be two options:

  1. Generate the same commands as the Tradfri remote does when configuring paired bulbs.
  2. Find a way to pair bulbs without factory reset.

If these assumptions are correct, there would be two options:

  1. Generate the same commands as the Tradfri remote does when configuring paired bulbs.
  2. Find a way to pair bulbs without factory reset.

I'd go for first option.
As linked above it may be related to this: #2069

We need someone with sniffer and both gateways.

We need someone with sniffer and both gateways.

I have both gateways (Tradfri & CC26X2R1) and could use a CC2531 as sniffer.
How exactly can I help?

We need someone with sniffer and both gateways.

I have both gateways (Tradfri & CC26X2R1) and could use a CC2531 as sniffer.
How exactly can I help?

The thing would be to sniff a pairing of the bulb with the latest firmware (reset and re-pair in the official gateway).
But..., we would need someone with enough skills in zigbee2mqtt to implement it afterwards. Anyway, that would be useful anyway.

Another useful sniffing would be to add / remove scenes from the bulb in the official gateway.

dmak commented

Please can someone explain how scenes pay a role with regards to the issue? Is setting a color = a scene that needs to be present/initialized in a bulb (hence it is not an issue with IKEA E1524 remote control)?

I recently added another puck remote and after updating it, the color selection was indeed working (it wasn't before)... so the upgrade must internally have the remote rebind to the old group and do the setup.

I sadly did not capture the upgrade, but I did just capture me left,right,left,left,right,right on it. Not sure it's helpful, @Koenkk should have the network key.

https://pkg.blackdot.be/cores/zigbee/ikea_scene_puck.pcapng

@sjorge the commands still seem to be the non standard commands like it used to send before. Perhaps the remote did some setup on the bulb side so that it now responds.

Should it in theory be possible to pair a remote to a bulb directly and sniff the traffic?
We won't have the decryption key in that case I guess?

@sjorge if it commissions that to the same network you should be able to sniff that indeed.

Here are my findings on this issue:

  1. Binding procedure
    • Create a group for required devices (LIGHT_GROUP)
    • Unbind controller from default group
    • Bind controller to LIGHT_GROUP
    • Bind bulb/bulbs to LIGHT_GROUP
  2. Color temperature change
    • Not working on LED1545G12 with firmware 2.3.007, working on firmware 2.3.050
    • Working on LED1537R6 with firmware 2.0.023
  3. Other functions working great

I have the same problem.. do you know also if we can downgrade the firmware?

For my bulbs this is the latest firmware, I just needed to update them (the update was released during the last month). I don't think downgrade is supported by zigbee2mqtt, but there may be some weird manual method to do that.

Thanks a lot for your reply :)
So for now I can’t use the option to change the color is correct?

Which bulbs do you have? What firmware do they have? My LED1545G12 and LED1537R6 are working fine

My lamp are LED1537R6/LED1739R5 Firmware version is 2.0.023.
Remote is E1524/E1810

Just use the instructions provided here: https://www.zigbee2mqtt.io/devices/E1524_E1810.html
Make sure your remote has the 2.3.014 firmware

I have do all in the wiki but won't work... latest firmware.. :-(
2.3.014.

I don' know why.. the brightness work and also onn and off but no color.. :-(

You can try this:

  1. Create a group in config, put this in your configuration.yaml:
groups:
  '50':
    friendly_name: my_bulbs
  1. Remove controller from default group by pressing a button on the controller and sending MQTT message to zigbee2mqtt/bridge/unbind/[CONTROLLER_FRIENDLY_NAME] payload default_bind_group
  2. When you press a button on the controller you should now get message with group 0 (if not, then do the same as in point 4 but with [CONTROLLER_FRIENDLY_NAME] as payload)
  3. Make sure bulbs are powered on and remove bulbs from all groups by sending MQTT message to zigbee2mqtt/bridge/group/remove_all with payload [BULB_FRIENDLY_NAME]
  4. Add bulb/bulbs to group zigbee2mqtt/bridge/group/my_bulbs/add with payload [BULB_FRIENDLY_NAME]
  5. Bind controller to group, by pressing a button on the controller and sending MQTT message to zigbee2mqtt/bridge/bind/[CONTROLLER_FRIENDLY_NAME] with payload my_bulbs

Remember to replace all things in [] with your names.
That's how it worked on my side.

If it still doesn't work, try the following:

  1. Open the back of the controller
  2. Get the controller close to the bulb and press "link" button on the back of the controller
  3. After a few seconds the bulb should flash softly
  4. All functions of the controller should work now, but it won't be properly configured in zigbee2mqtt
  5. Repeat the configuration steps from the first part of this comment

You can try this:

  1. Create a group in config:
groups:
  '50':
    friendly_name: my_bulbs
  1. Remove controller from default group by sending MQTT message to zigbee2mqtt/bridge/unbind/[CONTROLLER_FRIENDLY_NAME] payload default_bind_group
  2. When you press a button on controller you should no get message with group 0 (if not, then do the same as in point 4 but with [CONTROLLER_FRIENDLY_NAME] as payload)
  3. Remove bulbs from all groups by sending MQTT to zigbee2mqtt/bridge/group/remove_all with payload [BULB_FRIENDLY_NAME]
  4. Add controller to group zigbee2mqtt/bridge/group/my_bulbs/add with payload [CONTROLLER_FRIENDLY_NAME]
  5. Add bulb to group zigbee2mqtt/bridge/group/my_bulbs/add with payload [BULB_FRIENDLY_NAME]

Remember to replace all things in [] with your names.
That's how it worked on my side.

If it still doesn't work, try the following:

  1. Open the back of the controller
  2. Get the controller close to the bulb and press "link" button on the back of the controller
  3. After a few seconds the bulb should flash softly
  4. All functions of the controller should work now, but it won't be properly configured in zigbee2mqtt
  5. Repeat the configuration steps from the first part of this comment

Thanks a lot for you reply :-D
sorry but i'm at work, i'm tried but i receive this error..

zigbee2mqtt:error 2020-06-16 16:53:32: Failed to call 'Groups' 'onMQTTMessage' (Error: Command 0xec1bbdfffe85eaf9/1 genGroups.add({"groupid":50,"groupname":""}, {"timeout":10000,"disableResponse":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null}) failed (Error: Timeout - 34352 - 1 - 4 - 4 - 0 after 10000ms)
at Endpoint. (/zigbee2mqtt-1.14.0/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:365:23)
at Generator.throw ()
at rejected (/zigbee2mqtt-1.14.0/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:6:65))

Did you put:

groups:
  '50':
    friendly_name: my_bulbs

In your configuration.yaml and restarted zigbe2mqtt?

vide commented

@wes1993 if you are at work I guess you don't have physical access to the remote, you should press any button while issueing the commands to wake the remote up otherwise you get the 10 seconds timeout because it's in power saving mode

@vide Thanks for your reply,
I'm working from Home, i have pressed the button many times but without luck. :-(

I have updated my instructions a bit. Can you copy-paste all topics and messages you are sending to MQTT?

Here is part of my configuration.yaml and the commands:

devices:
  '0x1234123412341234':
    friendly_name: IKEA Controller
  '0x5634123412341234':
    friendly_name: IKEA GU10 Warm
groups:
  '50':
    friendly_name: my_bulb

Press button and send: default_bind_group to zigbee2mqtt/bridge/unbind/IKEA Controller
Press button and send: IKEA Controller to zigbee2mqtt/bridge/group/remove_all
Make sure bulb is powered and send: IKEA GU10 Warm to zigbee2mqtt/bridge/group/remove_all
Press button and send: IKEA Controller to zigbee2mqtt/bridge/group/my_bulbs/add
Send: IKEA GU10 Warm to zigbee2mqtt/bridge/group/my_bulbs/add

You may get some error that some element cannot be removed, this will happen if it's not in any group, so don't worry and send all commands.

Sorry for the delay but yesterday was a busy day for me.. :-D now i'm ready again :-D give me some minutes to do what you have told me

@drzony
The List:

  1. Press button and send: default_bind_group to zigbee2mqtt/bridge/unbind/IKEA Controller
    image
    Response:
    image
  2. Press button and send: IKEA Controller to zigbee2mqtt/bridge/group/remove_all
    image
    Response
    image
    But the remote work with the lights in the group so i have sended also this:
    image
    Response:
    image
    image
    Cannot remove... second try:
    image
    same problem...
    My Groups.yaml file:
    image

seems that the button is not present but i can power off and on the lights..

I see you are using Home Assistant, are you sure you do not have some automations configured when pressing the button, that may be the cause why the remote is working even if not in group?
Did you add the bulbs to the group using MQTT or only in config file?
Error when removing from group is OK if the controller is not in this group. Change log level to debug and see what group you are getting when pressing the button.
You should get something like this:

debug 2020-06-17 20:25:19: Received Zigbee message from 'IKEA Controller', type 'commandToggle', cluster 'genOnOff', data '{}' from endpoint 1 with groupID 50

If it's something other than 50 or 0, then it may mean that you have older FW on your controller. If it's 0 then adding to group should work OK.

@drzony
Thanks a lot fro your help
i have removed the device from zigbee2mqtt and added again
i will try everything again
i will create the group etc ;-D

image

Group 901 usually means that it's bound to default group, that means that either unbind did not work or you have firmware <2.3.014 on the remote. Make sure you press the button before sending commands

I will check again i'm sure that i have the latest FW i remember that i have upgraded the versione last week
After the command:
image

The group ID is 0 now
The command remove_all group
image

Removed the lamp from the group:
image

The group of the remote:
image
The group of the lamp:
image

@drzony
Ok after some test i can't add the button to the group CameraZ
image

Same response the group of the remote is 0
If i add the light no converter available?
image
I have tried with other lamp same problem...
image

Can't also bind Remote directly eith lamp.
image

I have also binded the Lamp directly with te remote... no luck... :( no colo only brightness

  1. Binding directly with lamp is not supported by the controller, only binding to group
  2. Try using the button on the back of the remote as I described here, this should reset the lamp and you should be able to control everything (but it won't work properly with zigbee2mqtt). If this works, then try to repair everything with zigbee2mqtt and then repeat the first procedure.

Thanks a lot for your reply @drzony
Nothing... same problem... i have tried everything...
I have resetted and deleted the lamps, registered with the remote without Zigbee2Mqtt and everything work, paired everything again and no luck....

i don't know why.. i can't add the remote to the group with this command:
Press button and send: IKEA Controller to zigbee2mqtt/bridge/group/my_bulbs/add
same error...

I can only use this but only on off and brightness work..
zigbee2mqtt/bridge/bind/my_remote with payload my_group

I can't in this days but the only thing we can try is to buy a new kit or:

  1. Delete everything (zigbee2mqtt/mqtt etc from HA)
  2. pair the bulb with the remote
  3. install new (zigbee2mqtt/mqtt etc in HA)
  4. pair again and hope!

@Koenkk / @drzony do you have other suggestions?

@wes1993 It's a bit hard to understand what exactly you are doing.
From you post it seems that you cannot add controller to the group (you need to have "groupId 50" information after pressing the button). For me usually the problem was that the controller was turning off, so you can try to keep pressing the button every 2 seconds until you get the info with "groupId 50"

@drzony Thanks a lot for you patience :-D
I can't add the controller.. i have tried by pressing the butto every second but nothing... same error i can only bind the remote with the group but cannot add in the group...
I can remove the remote from the stock group only...
My next ste is to go at ikea and change the lights :-D

@wes1993 Sorry my mistake, you do not add controller to the group, only bind it. I've updated my previous comment.
As for changing the lights, it may not help. It seems that somehow the remote is resetting "scenes" when pairing using the back button. Zigbee2mqtt is missing this part and IKEA is not sharing how to do it.
Which coordinator are you using? You could sniff the reset process so it could be fixed. Unfortunately I do not have required hardware to do that.

The only thing I can think of is to re-pair all the bulbs by resetting them using 5-on-5-off and then adding them to group.

@drzony Thanks again for your reply :)
I’m using CC2538+CC2592 and I have a CC2531 for sniffing but I don’t know how can I do... :(

Here is the tutorial: https://www.zigbee2mqtt.io/how_tos/how_to_sniff_zigbee_traffic.html

What we need is the dump of Zigbee traffic when the bulb is paired with the controller using the button on the back of the controller.

@drzony I'm reading this wiki but where can i read the network encryption key (Transport Key)?
i don't know what is for the ikea controller/bulb.. :-(

It's described in the wiki:

Next we need to figure out the network encryption key (Transport Key). There are two ways to do this:

  1. By default, if you haven’t changed network_key in your configuration.yaml this will be 01:03:05:07:09:0B:0D:0F:00:02:04:06:08:0A:0C:0D. If you changed your network_key, then convert each number into its 2-digit hexadecimal value, and combine them all with : between. E.g. [1, 3, 5, 7, 9, 11, 13, 15, 0, 2, 4, 6, 8, 10, 12, 13] -> 01:03:05:07:09:0B:0D:0F:00:02:04:06:08:0A:0C:0D
  2. If you don’t want to manually translate the numbers, the network encryption key is also exposed when a device joins the network. Pair a new device to the network (or re-pair an existing one) and grab the message where the Info is Device Announcement….. Open the message and expand ZigBee Network Layer Data -> ZigBee Security Header.

@drzony
I have read this but for making the secenes workind i need to reset the bulb and the remote and bind directly without zigbee2mqtt so the network key is not the samere as the zigbee2mqtt i think they will create a different network..

  1. If you don’t want to manually translate the numbers, the network encryption key is also exposed when a device joins the network. Pair a new device to the network (or re-pair an existing one) and grab the message where the Info is Device Announcement….. Open the message and expand ZigBee Network Layer Data -> ZigBee Security Header.

This should show up in sniffed traffic. I don't think they create another network, just try dumping the traffic. I don't have the hardware, so I cannot walk you through it, just try it and attach the dump, then we can go from there

You don't need to reset the bulb, just get it close to the controller and hold the button on the back

@drzony perfect when i take the pc with the software for programmi cc2531 with arduino i will try to test ;-D no i have only the router firmware inside.. :-(
For now i'm trying this:
https://xaviml.github.io/controllerx

There is this:

Controlling just the color with E1810 and z2m because toggle and brightness is controlled with zigbee groups.

nameOfYourInstanceApp:
module: controllerx
class: E1810Controller
controller: sensor.controller_action
integration: z2m
light: light.light1
actions:
- arrow_left_hold
- arrow_left_release
- arrow_right_hold
- arrow_right_release
- arrow_right_click
- arrow_left_click

You can do that using HA automations, without using ControllerX.
The idea with binding a controller is that it works even if HA/zigbee2mqtt is down.

@drzony
Yes infact is beautiful if i can change the color without z2m but for now i can use only this.. i will try to sniff the packet!!! ;-D
I know but i think with automation is more complex
Thanks again
Stefano

@Koenkk Initially I had the same issue. The remote worked fine with on/off and brightness, but color (temperature) did not work using binding. However, after OTA updating both the LED1624G9 (TRADFRI LED with color xy) and the L1529 (TRADFRI FLOALT) the remotes could both change the colors/temperatures of the lights.

Unfortunately, I had to reset the LED1624G9 due to a power outage and now it doesn't work anymore. Already on latest firmware now, so also not able to trigger an update again...

Any ideas?

stale commented

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.

Is support for scenes in z2m being tracked in a different issue? If so, then I guess this issue can be duped to that. It would be nice to get the colour temperature buttons to work without depending on an IKEA bulb firmware upgrade being available.

I've got the same problem. Can i help? I have an IKEA Floalt Panel, some IKEA bulbs, an E1524 remote, an IKEA gateway and a sniffer.

@marcus5187 try sniffing the traffic when manually binding the remote to the bulb (long pressing the button on the remote when close to the bulb)

@drzony i've captured the process when both devices were paired to the IKEA gateway ikea_sniff-01.zip. Unfortunatelly i haven't found the network key.
I've captured the process when both device were paired to zigbee2mqtt, too ikea_sniff-02.zip.

@marcus5187 The announcement message is missing, so there is no network key. You need to repair the device after starting capture. Try starting the capture, then pressing the button on the back of the remote 4 times. Then without stopping the capture, get the remote close to the bulb and press the button until the bulb flashes.

@drzony okay i think i've got it. I switched the bulb on off 6 times, pressed the button 4 times on the remote and held the button pressed near to the bulb. I sniffed on channel 11 and got the following ikea_sniff-03.zip.
The network key is 01:03:05:07:09:0B:0D:0F:00:02:04:06:08:0A:0C:0D (its the zigbee2mqtt default key) i can change the color temperature.

The only weird thing I can see is the still encrypted "APS: Command". Are you using IKEA gateway as a coordinator or CCXXX dongle? I can only see "Rejoin" messages, so it seems that it's re-pairing with a coordinator.