Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing: binding #782

Open
Koenkk opened this Issue Dec 30, 2018 · 91 comments

Comments

Projects
None yet
@Koenkk
Copy link
Owner

Koenkk commented Dec 30, 2018

This issue is used to gather feedback on the binding feature.

Notes

  • Documentation is available here
  • Dev branch is required (edge for Hassio users)
  • IKEA TRADFRI remote control (E1524) cannot be bound to other devices, this is a limitation of the device. A workaround for this is to sniff the group the E1524 is sending commands to (documentation), and add the device you want to bind to this group (documentation)

TODO

  • Binding to a group doesn't seem to be working

Koenkk added a commit that referenced this issue Dec 30, 2018

Implement binding feature. #765 #782 (#783)
* Start on bind implementation. #765

* Finish binding implementation.
@niekvlessert

This comment has been minimized.

Copy link

niekvlessert commented Jan 1, 2019

I'm pretty new to this world, but I can help testing. Would this be a valid testing environment? Insert the CC2531 USB stick in my iMac, forward the USB port to Virtualbox, install zigbee2mqtt in a Linux VM and test. So I can keep my stable & slow RPI 1B the same.

Another question; how would I pair the Ikea remote so that I can try using it and zigbee2mqtt at the same time? Now I factory default the Ikea lamp, then it'll connect to zigbee2mqtt automatically, but when I then pair the remote, the connection with zigbee2mqtt is gone.

@Koenkk

This comment has been minimized.

Copy link
Owner Author

Koenkk commented Jan 2, 2019

@niekvlessert the tradfri button can be paired to zigbee2mqtt by resseting it and keeping it close to the coordinator.

@niekvlessert

This comment has been minimized.

Copy link

niekvlessert commented Jan 3, 2019

I've got my VM setup running, running zigbee2mqtt dev version on a VM with forwarded USB port on my iMac. Since the bulb pairs fine with this it looks ok. I couldn't pair the Ikea remote, it gave: 'PM Device with modelID 'TRADFRI remote control' is not supported.'

So I found: #102 (comment)

I added the settings to devices.js, but I couldn't find the handleReady in lib/zigbee.js, I guess this info is dated? Any tips?

@Koenkk

This comment has been minimized.

Copy link
Owner Author

Koenkk commented Jan 4, 2019

@niekvlessert thats not needed, once paired you will be able to bind it

@martinrosenauer

This comment has been minimized.

Copy link

martinrosenauer commented Jan 4, 2019

@Koenkk, should we be able to pair the (5 button) Trådfri Remote now ? (I'm also getting the 'PM Device with modelID 'TRADFRI remote control' is not supported.' after resetting it as also @niekvlessert get).

@Koenkk

This comment has been minimized.

Copy link
Owner Author

Koenkk commented Jan 4, 2019

Yes, but the unsupported message doesnt mean you cannot use binding

@martinrosenauer

This comment has been minimized.

Copy link

martinrosenauer commented Jan 4, 2019

@Koenkk, ok, so is it the same that happens when I "pair" the remote with a bulb? (e.g. holding the reset button inside it pressed for 15-20 secs next to the bulb)

@Koenkk

This comment has been minimized.

Copy link
Owner Author

Koenkk commented Jan 4, 2019

@niekvlessert

This comment has been minimized.

Copy link

niekvlessert commented Jan 4, 2019

It works!

  • Factory default the remote
  • Pair with zigbee2mqtt, ignore the 'Not supported'
  • Factory default the bulb
  • Let it pair with zigbee2mqtt
  • Pair the remote with the bulb
  • Now my mosquitto_pub -t 'zigbee2mqtt/0x000b57fffecb610d/set' -m '{"color_temp":200}' still works but the remote also works. :)

Interesting; I can't change the color temperature with the remote anymore, off/on and intensity work fine.

@ookyn

This comment has been minimized.

Copy link

ookyn commented Jan 4, 2019

Hi,
Same results as @niekvlessert here :
I can manage all features with mqtt and the remote, except for color (rgb bulb) with the remote .

@JumpmanJunior

This comment has been minimized.

Copy link

JumpmanJunior commented Jan 5, 2019

I'm using an IKEA remote and RGB bulb. But it does not work for me.

  • The bulb is paired with zigbee2mqtt.
  • The remote is also paired with zigbee2mqtt. I have received the "Not supported" error message
  • I bind the remote to the bulb: zigbee2mqtt/bridge/bind/REMOTE BULB
  • I get the following messages in the log:

2019-1-5 03:55:08 - warn: Cannot handle MQTT message on 'zigbee2mqtt/bridge/bind/REMOTE' with data 'BULB'
2019-1-5 03:55:11 - info: Successfully bound cluster '5' from 0x000d6ffffe1d7895' to '0x000d6ffffe1df5f5'
2019-1-5 03:55:13 - info: Successfully bound cluster '6' from 0x000d6ffffe1d7895' to '0x000d6ffffe1df5f5'
2019-1-5 03:55:15 - info: Successfully bound cluster '8' from 0x000d6ffffe1d7895' to '0x000d6ffffe1df5f5'
2019-1-5 03:55:15 - warn: Don't know how to setup reporting for '5', skipping..
2019-1-5 03:55:15 - info: Configured reporting for cluster '6' of device '0x000d6ffffe1df5f5'
2019-1-5 03:55:15 - info: Configured reporting for cluster '8' of device '0x000d6ffffe1df5f5'

  • So it seems that everything worked. I assume that the cluster 5 message relates to the not working colour changing feature reported by @niekvlessert and @ookyn.
  • But for me the remote is not working at all. I can still control the bulb via zigbee2mqtt.
  • Unbinding seems also to work:

2019-1-5 04:11:24 - warn: Cannot handle MQTT message on 'zigbee2mqtt/bridge/unbind/xUfo' with data 'xIkea'
2019-1-5 04:11:28 - info: Successfully unbound cluster '5' from 0x000d6ffffe1d7895' to '0x000d6ffffe1df5f5'
2019-1-5 04:11:30 - info: Successfully unbound cluster '6' from 0x000d6ffffe1d7895' to '0x000d6ffffe1df5f5'
2019-1-5 04:11:32 - info: Successfully unbound cluster '8' from 0x000d6ffffe1d7895' to '0x000d6ffffe1df5f5'

@niekvlessert

This comment has been minimized.

Copy link

niekvlessert commented Jan 5, 2019

@BudBundi

This comment has been minimized.

Copy link
Contributor

BudBundi commented Jan 7, 2019

I try to bind a "Xiaomi Aqara single key wireless wall switch (single click)" with a "GL-C-008 - Gledopto Zigbee LED controller RGB + CCT / RGBW / WWCW / Dimmer"
but only get the message
zigbee2mqtt:error 2019-1-7 16:41:06 Failed to bind cluster '5' from 0x00158d0002523a2f' to '0x00124b00199f0348' (Error: Timed out after 10000 ms)

Startup messages

zigbee2mqtt:info 2019-1-7 16:32:07 Logging to directory: '/app/data/log/2019-01-07.15-32-07'
zigbee2mqtt:info 2019-1-7 16:32:11 Starting zigbee2mqtt version 1.0.1 (commit #932a66a)
zigbee2mqtt:info 2019-1-7 16:32:11 Starting zigbee-shepherd
zigbee2mqtt:info 2019-1-7 16:32:15 zigbee-shepherd started
zigbee2mqtt:info 2019-1-7 16:32:15 Coordinator firmware version: '20181024'
zigbee2mqtt:info 2019-1-7 16:32:15 Currently 7 devices are joined:
zigbee2mqtt:info 2019-1-7 16:32:15 Bewegungsmelder_Unten (0x00158d0002b95d67): RTCGQ11LM - Xiaomi Aqara human body movement and illuminance sensor (EndDevice)
zigbee2mqtt:info 2019-1-7 16:32:15 Bewegungsmelder_Oben (0x00158d0002b6d069): RTCGQ11LM - Xiaomi Aqara human body movement and illuminance sensor (EndDevice)
zigbee2mqtt:info 2019-1-7 16:32:15 Raumsensor_Stube (0x00158d0002c8cfe2): WSDCGQ11LM - Xiaomi Aqara temperature, humidity and pressure sensor (EndDevice)
zigbee2mqtt:info 2019-1-7 16:32:15 Raumsensor_Ankleide (0x00158d0002c8d2c3): WSDCGQ11LM - Xiaomi Aqara temperature, humidity and pressure sensor (EndDevice)
zigbee2mqtt:info 2019-1-7 16:32:15 Raumsensor_Badezimmer (0x00158d0002c8d155): WSDCGQ11LM - Xiaomi Aqara temperature, humidity and pressure sensor (EndDevice)
zigbee2mqtt:info 2019-1-7 16:32:15 Licht_Badezimmer (0x00124b00199f0348): GL-C-008 - Gledopto Zigbee LED controller RGB + CCT / RGBW / WWCW / Dimmer (Router)
zigbee2mqtt:info 2019-1-7 16:32:15 Schalter_Badezimmer (0x00158d0002523a2f): WXKG03LM - Xiaomi Aqara single key wireless wall switch (EndDevice)
zigbee2mqtt:info 2019-1-7 16:32:15 Zigbee: disabling joining new devices.
zigbee2mqtt:info 2019-1-7 16:32:15 Connecting to MQTT server at mqtt://mosquitto
zigbee2mqtt:info 2019-1-7 16:32:16 zigbee-shepherd ready
zigbee2mqtt:info 2019-1-7 16:32:16 Connected to MQTT server
zigbee2mqtt:info 2019-1-7 16:32:16 MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'

Is it not possible to bind the Xiaomi Switch? Or is there another problem?
Platform is Docker on a Raspberry Pi 3b+
Image is koenkk/zigbee2mqtt:arm32v6-dev@sha256:aa87c8e89569ecd6646658b2802e8c28170e062882fd70b56501f235cb07ba9b

@Koenkk

This comment has been minimized.

Copy link
Owner Author

Koenkk commented Jan 7, 2019

@BudBundi Xiaomi defines don't follow the ZCL specification, therefore they are (probably) not able to control other devices.

Something you can also try is to wake the device up while the configuring takes place (just press the button a few times when you start zigbee2mqtt)

@trekker25

This comment has been minimized.

Copy link

trekker25 commented Jan 9, 2019

would be awesome if it could be used for groups!
Not sure if this is even possible?

As a backup would be great to have a remote that can turn on / off a couple of groups i'm going to realize next month.

@Koenkk

This comment has been minimized.

Copy link
Owner Author

Koenkk commented Jan 9, 2019

@trekker25 I didn't have any success with the TRADFRI dimmer, however results may vary per device.

@JumpmanJunior

This comment has been minimized.

Copy link

JumpmanJunior commented Jan 11, 2019

I have now tried to bind the Philips dimmer switch with an Ikea RGB bulb. I did the same as described in my post with the Tradfri remote and I also have received the same result. According to the log it works except for cluster 5 but the remote is not working. The remote still sends its events to zigbee2mqtt but is not controlling the bulb.

2019-1-11 03:44:31 - warn: Cannot handle MQTT message on 'zigbee2mqtt/bridge/bind/xDimmer' with data 'xIkea'
2019-1-11 03:44:32 - info: Successfully bound cluster '5' from 0x0017880104e680f9' to '0x000d6ffffe1df5f5'
2019-1-11 03:44:32 - info: Successfully bound cluster '6' from 0x0017880104e680f9' to '0x000d6ffffe1df5f5'
2019-1-11 03:44:33 - info: Successfully bound cluster '8' from 0x0017880104e680f9' to '0x000d6ffffe1df5f5'
2019-1-11 03:44:33 - warn: Don't know how to setup reporting for '5', skipping..
2019-1-11 03:44:33 - info: Configured reporting for cluster '6' of device '0x000d6ffffe1df5f5'
2019-1-11 03:44:33 - info: Configured reporting for cluster '8' of device '0x000d6ffffe1df5f5'
2019-1-11 03:44:49 - info: MQTT publish: topic 'zigbee2mqtt/xDimmer', payload '{"battery":100,"linkquality":23,"action":"off","last_seen":"2019-01-11T02:44:49.119Z"}'

@Koenkk

This comment has been minimized.

Copy link
Owner Author

Koenkk commented Jan 11, 2019

@JumpmanJunior can you do some zigbee sniffing and post the results of the on/off commands send by the remote? https://github.com/Koenkk/zigbee2mqtt/blob/dev/docs/how_tos/how_to_sniff_zigbee_traffic.md

@JumpmanJunior

This comment has been minimized.

Copy link

JumpmanJunior commented Jan 14, 2019

Yes, the attached dump contains the binding procedure, pressing some buttons on the remote (which has no effect on the bulb) and the unbinding procedure.

@Koenkk

This comment has been minimized.

Copy link
Owner Author

Koenkk commented Jan 15, 2019

@JumpmanJunior do you know how this remote is normally used, can it be paired directly to a bulb?

@JumpmanJunior

This comment has been minimized.

Copy link

JumpmanJunior commented Jan 15, 2019

Yes, the remote can be paired directly to a bulb. That is even the default if you buy it in a set with a bulb.

In order to exclude a problem with the bulb I have now tried to bind the Philips dimmer switch to a Philips bulb (instead of the Ikea bulb I used before). But the results are the same, it is not working.

@Koenkk

This comment has been minimized.

Copy link
Owner Author

Koenkk commented Jan 16, 2019

@JumpmanJunior in the log I see that the remote reports that the binding is OK, however ZCL Onoff is still send to 0x0000. Perhaps it can only be bound to one device, by default zigbee2mqtt will bind it to the coordinator.

@JumpmanJunior

This comment has been minimized.

Copy link

JumpmanJunior commented Jan 17, 2019

OK, this worked. Now the remote is controlling the bulb. But I was not receiving the button presses in zigbee2mqtt anymore. I was still able to control the bulb directly via zigbee2mqtt. But I was not receiving status updates from the bulb when executing a change with the remote. After executing the unbind command (with reverted code) it immediately stopped controlling the bulb and the button presses where showing up in zigbee2mqtt again.

I also tried the same with the Tradfri remote which was integrated via the coordinator_group but I had no success with this one. But there is also no "Successfully configured" message for this remote.

@Koenkk

This comment has been minimized.

Copy link
Owner Author

Koenkk commented Jan 18, 2019

@JumpmanJunior it seems that this remote can only be bound to one devices, so either to coordinator or he bulb. About the TRADFRI remote, it doesn't allow to be bound (also experienced this). What you can do is add the bulbs to the same group as the one of the TRADFRI remote.

@f-bader

This comment has been minimized.

Copy link

f-bader commented Jan 25, 2019

Hi, binding worked as long as I woke up the TRADFRI wireless dimmer (ICTC-G-1) before sending the MQTT message
But I receive an error about reporting for one cluster

2019-1-25 19:28:12 - info: Successfully bound cluster '6' from 0x000b57fffe9292a7' to '0x0017880110348471'
2019-1-25 19:28:12 - info: Successfully bound cluster '8' from 0x000b57fffe9292a7' to '0x0017880110348471'
2019-1-25 19:28:12 - info: Configured reporting for cluster '8' of device '0x0017880110348471'
2019-1-25 19:28:42 - error: Failed to setup reporting for cluster '6' of device '0x0017880110348471'

@f-bader

This comment has been minimized.

Copy link

f-bader commented Jan 25, 2019

One thing thats a bit annoying is that when I use the dimmer the state change of the target is not published. Only the state change of the dimmer.
This makes the integration in home assistant a bit tricky

@Koenkk

This comment has been minimized.

Copy link
Owner Author

Koenkk commented Jan 26, 2019

@f-bader that's because the reporting setup fails (see your log). cluster 6 is the on/off cluster, Does changing brightness trigger a state update?

@BafHS

This comment has been minimized.

Copy link

BafHS commented Mar 6, 2019

@Koenkk thx that okay, but when i push a buttom on the E1524 the bulb nothing receive.

  zigbee2mqtt:info 2019-3-6 07:39:25 Successfully bound cluster '5' from 0xd0cf5efffec0bb59' to '0xd0cf5efffe12348a'
  zigbee2mqtt:warn 2019-3-6 07:39:27 Cannot handle MQTT message on 'zigbee2mqtt/bridge/bind/0xd0cf5efffec0bb59' with data '0xd0cf5efffe12348a'
  zigbee2mqtt:info 2019-3-6 07:39:27 Successfully bound cluster '6' from 0xd0cf5efffec0bb59' to '0xd0cf5efffe12348a'
  zigbee2mqtt:info 2019-3-6 07:39:29 Successfully bound cluster '8' from 0xd0cf5efffec0bb59' to '0xd0cf5efffe12348a'
  zigbee2mqtt:warn 2019-3-6 07:39:29 Don't know how to setup reporting for '5', skipping..
  zigbee2mqtt:info 2019-3-6 07:39:31 Successfully bound cluster '5' from 0xd0cf5efffec0bb59' to '0xd0cf5efffe12348a'
  zigbee2mqtt:info 2019-3-6 07:39:33 Successfully bound cluster '6' from 0xd0cf5efffec0bb59' to '0xd0cf5efffe12348a'
  zigbee2mqtt:info 2019-3-6 07:39:35 Successfully bound cluster '8' from 0xd0cf5efffec0bb59' to '0xd0cf5efffe12348a'
  zigbee2mqtt:warn 2019-3-6 07:39:35 Don't know how to setup reporting for '5', skipping..
  zigbee2mqtt:info 2019-3-6 07:39:35 Configured reporting for cluster '6' of device '0xd0cf5efffe12348a'
  zigbee2mqtt:info 2019-3-6 07:39:35 Configured reporting for cluster '8' of device '0xd0cf5efffe12348a'
  zigbee2mqtt:info 2019-3-6 07:39:35 Configured reporting for cluster '6' of device '0xd0cf5efffe12348a'
  zigbee2mqtt:info 2019-3-6 07:39:36 Configured reporting for cluster '8' of device '0xd0cf5efffe12348a'

Only Cluster '5'
But my first try, i pair only the E1524. I dont now why?

  zigbee2mqtt:info 2019-3-6 07:34:23 MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"device_connected","message":"0xd0cf5efffe12348a"}'
  zigbee2mqtt:warn 2019-3-6 07:34:23 Device with modelID 'undefined' is not supported.
  zigbee2mqtt:warn 2019-3-6 07:34:23 Please see: https://koenkk.github.io/zigbee2mqtt/how_tos/how_to_support_new_devices.html
@Koenkk

This comment has been minimized.

Copy link
Owner Author

Koenkk commented Mar 6, 2019

I just realised you are using the E1524, this is a special case, please see the OP for how to bind this device (just updated this with the instructions)

@antti365

This comment has been minimized.

Copy link
Contributor

antti365 commented Mar 7, 2019

@Koenkk I could not binding the IKEA bulb and the IKEA switch, is it even possible?

@Koenkk

This comment has been minimized.

Copy link
Owner Author

Koenkk commented Mar 7, 2019

@antti365 which switch do you mean (please provide a model number).

@antti365

This comment has been minimized.

Copy link
Contributor

antti365 commented Mar 7, 2019

@Koenkk Ikea_Switch : E1743

@Koenkk

This comment has been minimized.

Copy link
Owner Author

Koenkk commented Mar 7, 2019

@antti365 add to configuration.yaml

groups:
  '99':
    friendly_name: dummy

Publish to zigbee2mqtt/bridge/unbind/[E1743_FRIENDLY_NAME] payload dummy.

Now try binding again, does it work now?

@antti365

This comment has been minimized.

Copy link
Contributor

antti365 commented Mar 7, 2019

@Koenkk No, it does not work.
3/7/2019, 8:06:31 PM - debug: Received MQTT message on 'zigbee2mqtt/bridge/unbind/Ikea_Switch' with data 'dummy' 3/7/2019, 8:06:31 PM - debug: unbinding cluster '6' from 0x000d6ffffeb1d3c5' to '99' 3/7/2019, 8:06:31 PM - warn: Cannot handle MQTT message on 'zigbee2mqtt/bridge/unbind/Ikea_Switch' with data 'dummy' 3/7/2019, 8:06:47 PM - debug: Received zigbee message of type 'cmdOn' with data '{"cid":"genOnOff","data":{}}' of device 'TRADFRI on/off switch' (0x000d6ffffeb1d3c5) 3/7/2019, 8:06:47 PM - info: MQTT publish: topic 'zigbee2mqtt/Ikea_Switch', payload '{"click":"on","linkquality":26}' 3/7/2019, 8:06:47 PM - info: Successfully unbound cluster '6' from 0x000d6ffffeb1d3c5' to '99' 3/7/2019, 8:06:47 PM - info: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"device_unbind","message":{"from":"0x000d6ffffeb1d3c5","to":99,"cluster":6}}' 3/7/2019, 8:06:47 PM - debug: unbinding cluster '8' from 0x000d6ffffeb1d3c5' to '99' 3/7/2019, 8:06:50 PM - info: Successfully unbound cluster '8' from 0x000d6ffffeb1d3c5' to '99' 3/7/2019, 8:06:50 PM - info: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"device_unbind","message":{"from":"0x000d6ffffeb1d3c5","to":99,"cluster":8}}' 3/7/2019, 8:08:29 PM - debug: Received MQTT message on 'zigbee2mqtt/bridge/bind/Ikea_Switch' with data 'Ikea_Bulb' 3/7/2019, 8:08:29 PM - debug: binding cluster '6' from 0x000d6ffffeb1d3c5' to '0x000b57fffe8d1c04' 3/7/2019, 8:08:29 PM - warn: Cannot handle MQTT message on 'zigbee2mqtt/bridge/bind/Ikea_Switch' with data 'Ikea_Bulb' 3/7/2019, 8:08:38 PM - debug: Saving state to file /opt/zigbee2mqtt/data/state.json 3/7/2019, 8:08:50 PM - info: Successfully bound cluster '6' from 0x000d6ffffeb1d3c5' to '0x000b57fffe8d1c04' 3/7/2019, 8:08:50 PM - info: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"device_bind","message":{"from":"0x000d6ffffeb1d3c5","to":"0x000b57fffe8d1c04","cluster":6}}' 3/7/2019, 8:08:50 PM - debug: binding cluster '8' from 0x000d6ffffeb1d3c5' to '0x000b57fffe8d1c04' 3/7/2019, 8:08:52 PM - info: Successfully bound cluster '8' from 0x000d6ffffeb1d3c5' to '0x000b57fffe8d1c04' 3/7/2019, 8:08:52 PM - info: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"device_bind","message":{"from":"0x000d6ffffeb1d3c5","to":"0x000b57fffe8d1c04","cluster":8}}' 3/7/2019, 8:09:01 PM - debug: Received zigbee message of type 'attReport' with data '{"cid":"genPowerCfg","data":{"batteryPercentageRemaining":60}}' of device 'TRADFRI on/off switch' (0x000d6ffffeb1d3c5) 3/7/2019, 8:09:01 PM - info: MQTT publish: topic 'zigbee2mqtt/Ikea_Switch', payload '{"battery":60,"linkquality":18}' 3/7/2019, 8:09:01 PM - debug: Received zigbee message of type 'devChange' with data '{"cid":"genPowerCfg","data":{"batteryPercentageRemaining":60}}' of device 'TRADFRI on/off switch' (0x000d6ffffeb1d3c5) 3/7/2019, 8:09:02 PM - debug: Received zigbee message of type 'attReport' with data '{"cid":"genPowerCfg","data":{"batteryPercentageRemaining":74}}' of device 'TRADFRI on/off switch' (0x000d6ffffeb1d3c5) 3/7/2019, 8:09:02 PM - info: MQTT publish: topic 'zigbee2mqtt/Ikea_Switch', payload '{"battery":74,"linkquality":21}' 3/7/2019, 8:09:02 PM - debug: Received zigbee message of type 'devChange' with data '{"cid":"genPowerCfg","data":{"batteryPercentageRemaining":74}}' of device 'TRADFRI on/off switch' (0x000d6ffffeb1d3c5) 3/7/2019, 8:13:38 PM - debug: Saving state to file /opt/zigbee2mqtt/data/state.json

After the unbind dummy, the switch stopped writing anything to the log and does not control the light bulb.

@Koenkk

This comment has been minimized.

Copy link
Owner Author

Koenkk commented Mar 7, 2019

Could you sniff the zigbee traffic to see whats happening?

@antti365

This comment has been minimized.

Copy link
Contributor

antti365 commented Mar 7, 2019

I would love to, but my sniffer is still on the way ... then I have to postpone it until I get it.

@station7

This comment has been minimized.

Copy link

station7 commented Mar 9, 2019

Dear all,

I am sorry for my question, but I read so much about the IKEA TRADFRI E1524 remote that I am totally confused now. I paired successfully my E1524 remote and 5 TRADFRI GU10 bulbs to zigbee2mqtt/CC2531 thanks to the recent updates (firmware 20190223 and zigbee2mqtt V1.2.1) without sniffing. Now I am trying to bind my E1524 remote to the bulbs, which seems successful according to the logs but does not work; I cannot turn the bulbs off. Is it possible to switch the bulbs with zigbee2mqtt AND the remote via binding? Or is the note in the first post that 'binding of E1524 to other devices is not possible' still valid? Do those "other devices" include IKEA TRADFRI bulbs?

I am trying to track down my error and need to know, whether it is basically possible to use E1524 and zigbee2mqtt at the same time and what is necessary therefore (binding/grouping) after the latest updates.

Thanks for clarifying and helping me out.

Koenkk added a commit to Koenkk/zigbee2mqtt.io that referenced this issue Mar 9, 2019

@Koenkk

This comment has been minimized.

Copy link
Owner Author

Koenkk commented Mar 9, 2019

@station7

This comment has been minimized.

Copy link

station7 commented Mar 10, 2019

@Koenkk: Thank you so much for your clarification and updated documentation - I will start sniffing...

edit: Works great. Thanks!

@JumpmanJunior

This comment has been minimized.

Copy link

JumpmanJunior commented Mar 11, 2019

As already mentioned in #1182 (comment) with the newest version a bound Philips dimmer switch is not able to control the brightness of a hue bulb any more. According to the log all three clusters are bound successfully like in previous versions. On/Off is also still working.

@Koenkk

This comment has been minimized.

Copy link
Owner Author

Koenkk commented Mar 11, 2019

@JumpmanJunior I guess this is due to how the device is setup now, @ugrug could you help with this?

@ugrug

This comment has been minimized.

Copy link
Contributor

ugrug commented Mar 11, 2019

@JumpmanJunior Please describe the config what was working before. I process button presses in HA, your config should be different.

@JumpmanJunior

This comment has been minimized.

Copy link

JumpmanJunior commented Mar 11, 2019

@ugrug In the case of binding no additional software (like HA) is involved. I am just using the binding feature this ticket is about. The remote should directly control the bulb. Before the problems of #1182 occurred this was working fine and now the brightness control is not working anymore.

@soloam

This comment has been minimized.

Copy link

soloam commented Mar 17, 2019

Hello I have a ikea tradri e1524 and I was able to capture the group, but I can't capture the commands! I can see the on/off command in the sniffer, but I can't see it in the mqtt! I captured the group in the command, converted it to Decimal, and added the group to the config with a friendly name.

Now who can I capture the "clicks" in the buttons? I don't have any zigbee bulbs, can't I use this remote with other lamps? My ideia was to capture the clicks in the buttons, and map them in the software (Home Assistant or NodeRed) to the actions.

Thank you

@soloam

This comment has been minimized.

Copy link

soloam commented Mar 17, 2019

Ok I was able to control the On/Off in a outlet! Idea... can't we create like a dummy device only to capture the group commands?

Or for example a CC2531 that captures this commands and send them to the coordinator...??

Thank you

@soloam

This comment has been minimized.

Copy link

soloam commented Mar 17, 2019

Ok, I tested adding a CC2531 router to the group and I was able to add it to the group, but no command is returned... can this be solved? That would do it! I can add all my CC2531 routers to the group and monitor the states in the MQTT!

Thank You

@ugrug

This comment has been minimized.

Copy link
Contributor

ugrug commented Mar 17, 2019

I'll get an another cc2531 soon, and than I'll capture the messages with the old and new version of zigbee2mqtt.

@dh-harald

This comment has been minimized.

Copy link

dh-harald commented Mar 17, 2019

I've described here: #1253
So I can successfully bind the wireless switch to the wall switch...
If I sniff the traffic, I can see, that the WXKG03LM sends the report to the wall switch (destination: wall switch id), then it broadcasts the traffic as well (destination: 0x0000). So theoretically, the binding itself is working. (relevant data: Received zigbee message of type 'attReport' with data '{"cid":"genMultistateInput","data":{"presentValue":1}}' of device 'lumi.remote.b186acn01')
As far as I can see, that's why not toggless the wall switch, because the wall switch (QBKG11LM) probably not understand the "single click" attribute... (even if it's getting it).
Unfortunately it's not sending the onoff command...
My question could be, can you configure somehow during the binding, which command should send to the target device, or should it full automatic?

@Koenkk

This comment has been minimized.

Copy link
Owner Author

Koenkk commented Mar 18, 2019

@dh-harald afaik, this is not possible in zigbee.

@wizzor

This comment has been minimized.

Copy link

wizzor commented Mar 26, 2019

Hi,
I tested this with an Ikea bulb and the 1.2.1 build. Works well!

Only request, please post a more concrete example of the device IDs needed for the binding message, eg. as follows:

The device friendly name can be found in home assistant under integrations, and may look like this:
0x0000000000000000. In Zigbee2Mqtt logs you can find it in lines that look like this:
PM MQTT publish: topic 'zigbee2mqtt/0x0000000000000000'

@Bastiencc

This comment has been minimized.

Copy link

Bastiencc commented Mar 27, 2019

Before to try, is-it possible to bind à philips hue dimmer switch to a Xiaomi led bulb ?

@eddeandres

This comment has been minimized.

Copy link

eddeandres commented Apr 3, 2019

I've had success with TRADFRI dimmer and a Hive Active Light. Thanks!

@BafHS

This comment has been minimized.

Copy link

BafHS commented Apr 3, 2019

Today, i receive my programming cable, and now all working fine.
Thanks

@wizzor

This comment has been minimized.

Copy link

wizzor commented Apr 6, 2019

Hi, I had the binding working before, but it stopped working after a reboot. I get Failed to bind to cluster errors with a timeout message.

@eddeandres

This comment has been minimized.

Copy link

eddeandres commented Apr 6, 2019

Just an update. Been using TRADFI dimmers bound to Hive Active Lights. It works flawlessly - really smooth dimming. The only issue is that when the hive active light is switched on or off by the dimmer the light state is not updated in home assistant.

@JumpmanJunior

This comment has been minimized.

Copy link

JumpmanJunior commented Apr 10, 2019

As already mentioned in #1182 (comment) with the newest version a bound Philips dimmer switch is not able to control the brightness of a hue bulb any more. According to the log all three clusters are bound successfully like in previous versions. On/Off is also still working.

I have now also an Innr bulb and I tried to use this one instead of the Hue bulb. But the result is exactly the same: I am able to turn the bulb on and off but dimming is not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.