kardia-as / zigpy-zboss

GNU General Public License v3.0
36 stars 4 forks source link

zigpy-zboss and ZHA support for joining/pairing via install code and qr code with ZBOSS NCP Host based Zigbee Coordinator adapter? #45

Open Hedda opened 3 months ago

Hedda commented 3 months ago

Originally posted by @JohnConnett in https://github.com/kardia-as/zigpy-zboss/discussions/43

From a recent change to zigpy_zboss/zigbee/application.py it appears that adding a device using an install code is not implemented. Is that a limitation of the ZBOSS NCP Host firmware?

I do not myself have any Zigbee devices that require an install code for joining/pairing but I will ask since asked in above discussion:

Does zigpy-zboss and ZHA support for joining/pairing via install code and qr code with ZBOSS NCP Host based Zigbee Coordinator adapter?

Note! For reference about the question about install code see related issue for deconz based adapters here -> https://github.com/zigpy/zigpy-deconz/issues/214

Some users of Home Assistant’s ZHA integration with ConBee and RaspBee Zigbee Coordinator adapters from dresden elektronik have posted that they could not join/pair their Bosch Smart Home Zigbee devices that required an install code, and then some other users replied to that post saying that install code (and qr code?) support is not implemented in this zigpy-deconz radio library for zigpy which the ZHA integration depends on. Is that true?

https://github.com/zigpy/zigpy-deconz/blob/80041b9dbf334e0224b95081fcd49bb2da3e8c5d/zigpy_deconz/zigbee/application.py#L108

Just reporting this issue reported in the Home Assistant community forum:

https://community.home-assistant.io/t/bosch-thermostat-2/492845/10

https://community.home-assistant.io/t/bosch-thermostat-2/492845/11

The first device in question was the Bosch Thermostat II 230 V (BTH-RA / BTH-RM230Z), however, I understand that some people using deCONZ or Zigbee2MQTT have reported the same issue with a few other Bosch-branded Zigbee devices, like Bosch Smoke Alarm II (BSD-2), Bosch Door/window contact II (RBSH-SWD-ZB), and Bosch BWA-1 water sensor, all of which require adding the install code to pair/join.

https://github.com/dresden-elektronik/deconz-rest-plugin/issues/6476

https://github.com/dresden-elektronik/deconz-rest-plugin/issues/6421

https://github.com/dresden-elektronik/deconz-rest-plugin/issues/5190

I do not have a ConBee or RaspBee setup as Zigbee Coordinator myself any longer so can not replicate to confirm or deny but think this should be tracked if a feature is missing since supported by Silicon Labs and Texas Instruments based Zigbee Coordinator adapters via their respective radio library for zigpy.

PS: Both Silicon Labs (bellows) and Texas Instruments (zigpy-znp) radio libraries for zigpy do support install code (and qr code) or?

https://github.com/zigpy/bellows/blob/8549f277027245f5e63ce1341b7e6c5c75381899/bellows/zigbee/application.py#L845-L866

https://github.com/zigpy/zigpy-znp/blob/c4db8d1151b5a999ead73480faea4ea01b7cb7d7/zigpy_znp/zigbee/application.py#L338-L377