dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.9k stars 498 forks source link

ConBee II as router for Hue #2788

Open fubar-coder opened 4 years ago

fubar-coder commented 4 years ago

I followed the instructions of #21, but I encountered the problem that setting the TC address to 0xffffffffffffffff results in the TC link key being reset to 0x5a6967426565416c6c69616e63653039.

ebaauw commented 4 years ago

See the many other issues that link to 21. It has been broken for a long time. You might try a firmware version that was current early 2017 from http://deconz.dresden-elektronik.de/deconz-firmware/?C=M;O=A. Or maybe a deCONZ version from that time, probably 2.04.35.

fubar-coder commented 4 years ago

That's the problem: There is no firmware that old for the ConBee II.

ebaauw commented 4 years ago

The ConBee II wasn’t yet introduced back then. Tbh I’m not sure if the issue is with the firmware or with deCONZ, but I doubt 2.04.35 will want to work with the ConBee II.

Never tried this myself, but you might try and ignore the TC Link key altogether, and configure the network key of the Hue bridge directly. Of course, you’d need to recover the network key by sniffing the Hue bridge while pairing a device. Afaik, there’s still no ZShark firmware for the ConBee II, so you’d need a different device for sniffing.

stale[bot] commented 4 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.

rkjnsn commented 4 years ago

I believe this is still an issue.

stale[bot] commented 4 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.

fubar-coder commented 4 years ago

Are there any news about this issue?

stale[bot] commented 4 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.

Mimiix commented 4 years ago

@fubar-coder I think there is a tab in the deconz-gui settings where you can select the mode.

Then you should be able to add it to hue, but i don't know if that would work. Other than that, i will ask @manup to reply on this.

I doubt if it gets any priority, as this is a niche.

stale[bot] commented 4 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.

fubar-coder commented 4 years ago

@Mimiix I found the settings, but the problem is that the key gets reset when I try to set the address.

Mimiix commented 4 years ago

I really have no clue on this one.

I'll ask Manup

SwoopX commented 4 years ago

Iirc, the magic only happens when you leave the network for configuration changes. So try to press leave and then try again. Don't forget to join afterwards.

tkl-git commented 4 years ago

I really have no clue on this one.

I'll ask Manup

Hi,

any news about this subject? I would really appreciate if the developers could finally solve this issue which has been annoying people about 2 years already. It really can't be that hard to fix if you are just able to allocate some time to the task?

I bought a ConBee 2 mainly because I wanted to debug my current Zigbee network(s) (and maybe later integrate it to my current system). I have a quite large installation of Zigbee devices including 2 Hue bridges and a Cozify hub. The Cozify home automation hub has it's own Zigbee network and it controls Hue devices through those 2 Hue bridges, not directly.

My system includes over 100 Zigbee devices and the problem is that sometimes some of the Hue devices go offline without any obvious reason. I would need to get the routing tables from the devices and see a network map. That way I could maybe identify and solve the problem (adding more repeating Zigbee devices randomly is not the solution I need).

Is it currently possible to join the network of the Hue bridge as an end device instead of a router?

ConBee 2 is still missing the Zshark support too which also came as a surprise to me.

Unfortunately it is not an option for me to use ConBee as a Zigbee cordinator. I really like the Conbee 2 hardware so I don't want to get yet another Zigbee USB gateway. Hopefully the developers could fix these ConBee 2 problems soon. Thank you.

carbonelle commented 3 years ago

hello I succeeed in joining a hue network with the conbee II by followed the instructions of #21, but I defined the TC address with the MAC address of the Hue bridge

carbonelle commented 3 years ago

Defining the TC address with the mac address of the hue bridge avoid the reseting of the TC link key with 0x5a6967426565416c6c69616e63653039. However if you remove the conbee II from the power (USB port) you lost the connection and you have to redo the configuration.

Mimiix commented 3 years ago

@tkl-git For some reason i missed this one.

I've asked him, but no avail. yet. I'll ask again :)

LineF commented 2 years ago

Same for me - it would be nice if deCONZ / Conbee-II could be used as a router in an existing Hue network. Any news about that?

Martin

BOFHELL commented 2 years ago

any updates ??

paetsky commented 1 year ago

I'd also appreciate updates on this bug topic! Conbee II would be a good tool to force some device mappings on Hue network with non-Philips (ie. Busch-Jaeger 6710U, 6711U and 6715U) devices on it.

kavejo commented 1 year ago

Has anybody managed to run Conbee II as a Zigbee Router (plugged into a power socket)? I have done that with a Sonoff ZBdongle-E, but can't find a way to do that with a fully up-to-date Conbee II.

Mimiix commented 1 year ago

@manup

BOFHELL commented 2 months ago

Push

talondnb commented 1 day ago

Bump?

ebaauw commented 21 hours ago

I just joined my ConBee III to the Zigbee network by my Hue bridge. I messed up, and the ConBee is still acting as coordinator, but that doesn't seem to cause any harm. Note that the Hue bridge isn't a Zigbee coordinator, but just another router (with NWK address 0x0001) that doubles as gateway.

Pairing the RaspBee or ConBee with the Hue bridge doesn't work - somehow writing the ZLL TC Link Key doesn't stick. You need to configure the network parameters manually. Typically, you need to Leave the network, change the parameters, Write them, Read them back for good measure, and Join. I like to do another Read after joining, to make sure the parameters stuck.

You need to set at least the PAN ID, Network Key and Channel Mask. I also set the TC Link Key, but that might not be needed, and the Ext PAN ID (to the Zigbee MAC address of the Hue bridge). deCONZ bitches about that in the log, but it doesn't seem to do any harm.

Oct 04 11:15:12 pi15 deCONZ[2955400]: 11:15:05:127 apsUseExtPanid is 0x00178801050A55DA but should be 0, start reconfiguration
Oct 04 11:15:12 pi15 deCONZ[2955400]: 11:15:05:127 Skip automatic channel change, TODO warn user

To get the Hue bridge network parameters, you need to sniff the Zigbee traffic of the Hue bridge, while pairing a device. Make sure to configure the (once secret) ZLL Link Key in Wireshark, so it can decrypt the message exchanging the network key.

Note that in general it is not recommended to use more than one gateway on your Zigbee network. Both gateways will try and configure devices, which might cause conflicts, particularly for sensor bindings. I currently only have a couple of Hue lights connected to this test network, to have the Hue bridge upgrade these to their latest firmware (for which the files haven't been located yet), and use deCONZ to see what has changed on the device. As the Hue bridge doesn't setup attribute reporting for Hue lights, I don't expect much conflict in this case. For good measure, I haven't enabled the OTAU server on deCONZ. Also, I paired the lights to the Hue bridge, before adding the ConBee III. I'm not sure what would happen when pairing additional devices when both gateways are active.

ebaauw commented 21 hours ago

Has anybody managed to run Conbee II as a Zigbee Router (plugged into a power socket)? I have done that with a Sonoff ZBdongle-E, but can't find a way to do that with a fully up-to-date Conbee II.

Never tried that myself. You would need to connect the ConBee II to deCONZ to configure it as router and join the network where you want it to be a router in. If that's a "normal" network, using the ZHA link key, there should be no issue pairing the ConBee to that network. If it's a ZLL network, you'll need to sniff the network parameters and enter these manually, see my remarks above. As far as I know, basic router functionality is handled completely by the firmware, and should continue to function, when deCONZ is down. Of course you would need to check that on another gateway. Then move the ConBee to a USB power adapter, and double-check it's still acting as router.

ebaauw commented 20 hours ago

I'm half tempted to create a DDF for the Hue bridge, so I can change the label on the node.

Screenshot 2024-10-04 at 11 49 37

The SW Build ID is 6.77.1.37261.