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

wrong install code length #16477

Closed
skrebber opened this issue Feb 2, 2023 · 8 comments
Closed

wrong install code length #16477

skrebber opened this issue Feb 2, 2023 · 8 comments
Labels
problem Something isn't working stale Stale issues

Comments

@skrebber
Copy link

skrebber commented Feb 2, 2023

What happened?

trying to pair a Bosch TwinGuard smoke detector, as a Zigbee 3.0 device it needs an install code. The QR code of from device is:
RB01SG0D836591B3CC0010000000000000000000000D6F0018869DDBDLK82AF21EF5510E04E0459F250813F9562

z2m says, wrong install code length.

Interesting:
I first used 1.29.2 bbbaaf4 with the same experience. Then updated to 15.0.39 ea0a999 with the same negative result. But @safakaltun tested my install code in his envoirment (80c464c) with success. see: #14355 (comment)

What did you expect to happen?

successful paring of the Zigbee 3.0 device.

How to reproduce it (minimal and precise)

press -Settings-Tools-Add install code paste code from above an click ok.

Zigbee2MQTT version

1.30.0-dev commit: ea0a999 15.0.39

Adapter firmware version

7.1.1.0 build 273

Adapter

Home Assistant SkyConnect

Debug log

Debug 2023-02-02 10:34:57Received MQTT message on 'zigbee2mqtt/bridge/request/install_code/add' with data '{"transaction":"7m2tf-1","value":"RB01SG0D836591B3CC0010000000000000000000000D6F0018869DDBDLK82AF21EF5510E04E0459F250813F9562"}'
Error 2023-02-02 10:34:57Request 'zigbee2mqtt/bridge/request/install_code/add' failed with error: 'Wrong install code length'
Debug 2023-02-02 10:34:58Error: Wrong install code length at EZSPAdapter.addInstallCode (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/adapter/ezspAdapter.ts:260:19) 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:229:27) at Bridge.onMQTTMessage (/app/lib/extension/bridge.ts:122: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:121:27) at WebSocket.emit (node:events:513:28)
Info 2023-02-02 10:34:58MQTT publish: topic 'zigbee2mqtt/bridge/response/install_code/add', payload '{"data":{},"error":"Wrong install code length","status":"error","transaction":"7m2tf-1"}'
@skrebber skrebber added the problem Something isn't working label Feb 2, 2023
@dan3o3
Copy link

dan3o3 commented Feb 13, 2023

Experiencing the exact same problem with a Bosch Twinguard. Also a fillup with 4 zeros before "DLK" let Z2M accept the code but it will not work as the device will not pair. I successfully paired a Motion Controller (Bosch) and a Plug 2 successfully, so it seems to be something special with these Twinguard codes. I am using a tubeszb.efr32_mgm210_poe_2022 as coordinator.

@github-actions
Copy link
Contributor

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 github-actions bot added the stale Stale issues label Mar 16, 2023
@l154
Copy link

l154 commented Mar 16, 2023

Hi I have exactly the same error when I'm trying connect to Bosh Smart Home Twinguard.
2023-03-16 09:55:10Received MQTT message on 'zigbee2mqtt/bridge/request/install_code/add' with data '{"transaction":"kge09-1","value":"RB01SG0D836591B3CC0010000000000000000000000D6F0017E1B786DLK0CEC411FCB2F415FB95ED8E4C9C4F316"}' Error 2023-03-16 09:55:10Request 'zigbee2mqtt/bridge/request/install_code/add' failed with error: 'Wrong install code length' Debug 2023-03-16 09:55:10Error: Wrong install code length at EZSPAdapter.addInstallCode (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/adapter/ezspAdapter.ts:260:19) 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:229:27) at Bridge.onMQTTMessage (/app/lib/extension/bridge.ts:122: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:121:27) at WebSocket.emit (node:events:513:28) Info 2023-03-16 09:55:10MQTT publish: topic 'zigbee2mqtt/bridge/response/install_code/add', payload '{"data":{},"error":"Wrong install code length","status":"error","transaction":"kge09-1"}'

@github-actions github-actions bot removed the stale Stale issues label Mar 17, 2023
@Swisyn
Copy link

Swisyn commented Mar 24, 2023

I also have the same issue, even though the pairing code length on QR is 91 - I still get wrong code length alert.

What could be the main reason of this issue?

RB01SG0D836591B3CC0010000000000000000000000D6F0018860CDCDLKE8F6BCB11962F4377573AEB18480CF7E

@OnkelMikke
Copy link

OnkelMikke commented Apr 1, 2023

hi cross cheked with me devices.
first smart plug II
QR: RB01SG0D83101826480030000000000000000000003C84FFFEEDBE4CDLK5D52BEA89C2E0758FD2FEBE1FE3932C2289F
IEEE: 00:3C:84:FF:FE:ED:BE:4C
Install-Code: 5D52-BEA8-9C2E-0758-FD2F-EBE1-FE39-32C2-289F (printed at label, match with qr and works)

Looks like, IEEE is bevor DLK and after DLK Install Code.

checked Twinguard QR, looks the same.
RB01SG0D836591B3CC0010000000000000000000000D6F000F4F53B8DLK2E96368640299BAB76865A0893E1F735
IEEE: 00:0D:6F:00:0F:4F:53:88 (printed at back label)
Thatsway i think my install code should be
2E96-3686-4029-9BAB-7686-5A08-93E1-F735

Not checked yet. I test it and comment later, again.

Not working. Too short. Sorry

@github-actions
Copy link
Contributor

github-actions bot commented May 2, 2023

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 github-actions bot added the stale Stale issues label May 2, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 9, 2023
@NicolaiSoeborg
Copy link

In release 1.32.1 the length issue has been fixed, but I still have some issues with the next ("interview") step during pairing, just a FYI.

@4s1
Copy link

4s1 commented Dec 3, 2023

Did you get it to work @NicolaiSoeborg?

I'd guess by comments on #14355 this could be an coordinator problem?
Looks like it works with CC2652R coordinators. But I'm not able to pair on my HA yellow (ezsp).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working stale Stale issues
Projects
None yet
Development

No branches or pull requests

7 participants