zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Add Install Code Function Not Supported

Open mauschil opened this issue 2 years ago • 11 comments

What happened?

I am trying to connect a Bosch Plug Compact BSP-FZ2 with my Zigbee2MQTT installation running on my Raspberry Pi 4 as an add-on in Home Assistant. I am running the Edge version of the add-on.

When trying to connect using the Enter Install Code functionality it will fail with the following error.

Zigbee2MQTT:error 2022-10-16 15:22:42: Request 'zigbee2mqtt/bridge/request/install_code/add' failed with error: 'Add install code is not supported'

Zigbee2MQTT:debug 2022-10-16 15:22:42: Error: Add install code is not supported at DeconzAdapter.addInstallCode (/app/node_modules/zigbee-herdsman/src/adapter/deconz/adapter/deconzAdapter.ts:188:31) at Controller.addInstallCode (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:230:28) at Zigbee.addInstallCode (/app/lib/zigbee.ts:314:29) at Bridge.installCodeAdd (/app/lib/extension/bridge.ts:258:27) at Bridge.onMQTTMessage (/app/lib/extension/bridge.ts:123:63) at EventEmitter.emit (node:events:525:35) at EventBus.emitMQTTMessage (/app/lib/eventBus.ts:109:22) at MQTT.onMessage (/app/lib/mqtt.ts:140:27) at WebSocket.<anonymous> (/app/lib/extension/frontend.ts:94:27) at WebSocket.emit (node:events:513:28) Zigbee2MQTT:info 2022-10-16 15:22:42: MQTT publish: topic 'zigbee2mqtt/bridge/response/install_code/add', payload '{"data":{},"error":"Add install code is not supported","status":"error","transaction":"ulaaz-4"}'

What did you expect to happen?

The Enter Install Code to complete successfully and pair with the device.

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.28.0-dev

Adapter firmware version

26720700

Adapter

ConBee II

Debug log

No response

mauschil avatar Oct 16 '22 13:10 mauschil

It Looks like the install code functionality was added to the Deconz API in this commit

As for Zigbee2MQTT support (it is quite a recent feature), I think it has only been added so far for TI Z-Stack and Silicon Labs EZSP co-ordinators

ZHA is also having support for install code for real Zigbee 3 devices as service in HA:

Service
Zigbee Home Automation: Permit
Allow nodes to join the Zigbee network.

Install Code
Install code of the joining device (must be used with source_ieee)

MattWestb avatar Oct 17 '22 05:10 MattWestb

@danieledwardgeorgehitchcock Someone else reported getting it to work with a Sonoff Zigbee Dongle. Looks like Ill give that a try. https://github.com/Koenkk/zigbee2mqtt/issues/13069#issuecomment-1272267851

@MattWestb Unfortunately, it looks like ZHA isnt supporting the Bosch plug. When entering the Install Code and IEEE, it will throw a NotImplementedError.

mauschil avatar Oct 17 '22 18:10 mauschil

I think only EZSP have it implanted and perhaps de(F)CONZ but have not red the code.

MattWestb avatar Oct 17 '22 19:10 MattWestb

Just done some further digging on this..

Looks like the function was stubbed out when adding install code support for EZSP and Z-Stack

Here are the lines

Then its only waiting for our Master Barrista @kirovilya getting time implanting it in Z2M for for EZSP coordinators (its on his ToDo list). Hi is having some Aqara devices that need it so i think hi is not sleeping well until its in place.

You can adding support for Bosch plug in ZHA and it shall working OK (I think they is pity ZCL so shall not being so hard like most tuya devices).

Edit: Its looks like the deCONZ devs is not fixing the bugs / problems in Z2M so in the end its to changing radio or system.

MattWestb avatar Oct 18 '22 03:10 MattWestb

@MattWestb already implemented in dev/edge version z2m

kirovilya avatar Oct 18 '22 04:10 kirovilya

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Nov 18 '22 00:11 github-actions[bot]

@kirovilya Any news on installing a device with z2m and deconz stick? Every time I try to install I still get the fault code: 'Add install code is not supported'

gekberlin avatar Nov 21 '22 11:11 gekberlin

@gekberlin , @kirovilya is not maintaining the Deconz integration. Install codes are not supported by the Deconz stick AFAIK.

Koenkk avatar Nov 21 '22 18:11 Koenkk

It seems that there is some progress, see: https://github.com/dresden-elektronik/deconz-rest-plugin/pull/6565 (Add DDF for Bosch Thermostat II)

From my understanding, if they are adding a DDF, install codes must already work with the Conbee II, but I may be wrong.

I am also desperately waiting that zigbee2mqtt + Conbee II + install codes are working (for adding the Bosch Thermostat II)

mmattel avatar Nov 27 '22 08:11 mmattel

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Dec 28 '22 00:12 github-actions[bot]

To bump this, it seems there has been some movement on deconz supporting install codes. Pull request has not been merged yet, but looks good: https://github.com/dresden-elektronik/deconz-rest-plugin/pull/6791

Maybe this can be helpful for zigbee2mqtt as well.

opal06 avatar Mar 17 '23 20:03 opal06

cant wait to hear its working :) my bosch thermostats are waiting :) @opal06 shouldnt we create a new Issue as this one has been closed by bot?

sniecha avatar Mar 19 '23 18:03 sniecha

Pull request is now merged into v2.22.0-beta (https://github.com/dresden-elektronik/deconz-rest-plugin/releases/tag/v2.22.0-beta). Did you create a new issue yet to track the progress of supporting install codes with conbee stick @sniecha @opal06 ?

EDIT: opened new issue #17492

rouvenst avatar Apr 24 '23 17:04 rouvenst

FYI, if using ConBee or RaspBee (deconz Zigbee Coordinator adapter from dresden elektronik) then see related issue -> https://github.com/Koenkk/zigbee2mqtt/issues/17492

Hedda avatar May 12 '23 18:05 Hedda