Unsupported install code #19982
Replies: 15 comments 28 replies
-
Hey @TautrimasM, did you figure this out? I am running into a similar issue - scanning my different Zigbee devices' QR codes also gives varied lengths that aren't 95 or 91 (e.g. It looks like the code that throws this is: https://github.com/Koenkk/zigbee-herdsman/blob/master/src/controller/controller.ts#L214-L231 which suggests it is parsing out the IEEE address and key. Based on the lengths, I believe that is the @Koenkk does that makes sense in this context? |
Beta Was this translation helpful? Give feedback.
-
Hi, Did you get this to work? I got My Icon2 MC connected fine with just pushing the right button (Zigbee pairing). Did you create a external definition for the MC already? |
Beta Was this translation helpful? Give feedback.
-
On the Icon2 controller the right (OK) button works as a Zigbee pairing button. |
Beta Was this translation helpful? Give feedback.
-
Yes, I did.
MC endpoints correspond to thermostats. If you want to read specific
thermostat then you should send request to specific endpoint.
Also, you can read the complete state, then parameters of each thermostat
will have suffix of the endpoint that the thermostat is located, i.e.
battery_1, occupied_setpoint_2.
P. S. Device number you mention is model identifier, each individual MC has
the same, it has nothing to do with thermostats.
…On Wed, Jan 24, 2024, 13:14 Maxxis20 ***@***.***> wrote:
Did you connect the RT's to the MC? And used the Icon2 App for setup and
assigning RT to room?
I tried your .js file and ran into the same problem as previously, the
room sensors report with the same MC device number (0x0210), and has a
endpoint and group number that identifies the thermostat.
How would one separate the thermostats for the MQTT message? Because now
if you have several thermostats the previous values are overwritten.
—
Reply to this email directly, view it on GitHub
<#19982 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3U2ZZUWMGLT5GJXCPITV5DYQDUK5AVCNFSM6AAAAABAEEOMC2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DEMZRGQYTA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
It seems that your setup is not picking up the external converter file that
i have provided.
Did you put it into ./data folder?
Also, provide logs if there are any error messages, it will be easier to
diagnose.
…On Sun, Jan 28, 2024, 13:04 Maxxis20 ***@***.***> wrote:
So i added the converter to the configuration.yaml:
" external_converters:
- 0x0210.js"
and created a corresponding file to "/zigbee2mqtt/0x0210.js" which is you
code exactly.
and then im stuck on getting the data out in a good form.
The debug gives the endpoint and group but the mqtt publish (info) gives
just the values out.
So how do you sort the thermostat values to individual values, because the
mqtt topic is only the MC IEEE Address..
Z2M gives this output:
Debug: 2024-01-28 13:01:00Received Zigbee message from
'0xf4b3b1fffedd851a', type 'attributeReport', cluster 'msRelativeHumidity',
data '{"measuredValue":8300}' from endpoint 3 with groupID 0
Info 2024-01-28 13:01:00MQTT publish: topic
'zigbee2mqtt/0xf4b3b1fffedd851a', payload
'{"battery":77,"humidity":83,"linkquality":224,"temperature":-327.68}'
—
Reply to this email directly, view it on GitHub
<#19982 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3U2ZZXRJPTLPB4B4DHU2GLYQYWD7AVCNFSM6AAAAABAEEOMC2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DENZQGY2DO>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I noticed that usually this happens if you try to read model id of any of
the thermostat endpoints. If this happen, then read model id of the
endpoint 232 (this represents mc itself) and it will fix itself.
…On Mon, Jan 29, 2024, 23:34 Maxxis20 ***@***.***> wrote:
And when the MC is added it configures correctly but after 10min it drops
back to "Support status Not supported" for some reason..
But now the state info works.
And sometimes when i configure the MC after a factory reset it identifies
as a thermostat which is very weird..
Screenshot.2024-01-29.at.22.44.24.png (view on web)
<https://github.com/Koenkk/zigbee2mqtt/assets/111085242/189db87b-5b5f-41b4-bd55-edefbe80b877>
—
Reply to this email directly, view it on GitHub
<#19982 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3U2ZZUYI2WRRUZABH2ERSTYRAIV3AVCNFSM6AAAAABAEEOMC2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DEOJRGM4DO>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Great notion, thanks.
…On Wed, Jan 31, 2024, 15:01 Maxxis20 ***@***.***> wrote:
Thanks, i made a modification here to dont read the genBasic-modelId:
"// await endpoint.read('genBasic', ['modelId', 'powerSource']);
await endpoint.read('genBasic', ['powerSource']);"
And now the MC has stayed Supported since.
—
Reply to this email directly, view it on GitHub
<#19982 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3U2ZZXZJPBTCJMU7IDIK6TYRI6C7AVCNFSM6AAAAABAEEOMC2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DGMJZHEYDK>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I tried to type in (manually, not QR) an install code from a Schneider/Wiser smoke alarm, today. The codes themselves, without URL coatings, are 8+1 16-bit groups, the +1 being a checksum (that for all purposes of a user is part of the "install code"). This made 36 chars of hex, white space removed. Silicon Labs Application Note 1089 is helpful, here. My work-around? Publish this. Subscribe. Push the button for pairing, this time. :) |
Beta Was this translation helpful? Give feedback.
-
I am investigating new device support for the Philips Hue Secure Floodlight Camera EU. The base has a sticker with a six hex digit number and a QR Code of the following shape: The Hue Secure wired camera Ownership card has a six hex digit Setup code; a 12 hex digit Device ID; and a QR Code with the shape My hope is that I can configure the Bluetooth LE and WiFi using the Hue App but still be able to find a mechanism for joining it to my existing Zigbee network. Is there any further information on using install codes with Zigbee2MQTT? I have looked but not found much information. |
Beta Was this translation helpful? Give feedback.
-
I think that the CRCs on all three of your install codes may be incorrect. Assuming that the non-CRC parts are correct I think that:
The install code in the original post from @TautrimasM, Thought I would mention it in case your install codes are rejected. Were all three devices from the same manufacturer? |
Beta Was this translation helpful? Give feedback.
-
Based on a sample of five strings decoded from QR Codes on Hue devices (floodlight, three different models of bulb, dimmer switch) they can be matched using this regular expression: The decoded strings are composed of:
The meanings of the 'D:' and 'A:' values are unknown. The regular expression is strict so that exceptions will be identified to allow the regular expression to be further refined. It rejects some obvious validation errors such as invalid characters and invalid lengths. Hopefully, other formats used for install codes will be sufficiently distinctive that a more complex parser will be unnecessary! The Danfoss Icon 2 Main Controller example given above has a 'G$M:' header. The (as yet undeciphered) Hue Secure camera has 127 characters with a 'MT:' header. If other formats have an easily identified header then they can have their own individual regular expressions or parsers. It would also allow for more precise error messages when an install code is rejected. I also have a Hue wall switch module which does not have a QR Code. The instructions in How to set up a Hue wall switch module Connect with a Hue Bridge do not mention a QR Code. Is anyone collating the different styles of decoded QR Codes for install codes? |
Beta Was this translation helpful? Give feedback.
-
An install code add can be triggered using MQTT with the topic One way of achieving this is using the MQTT integration. Navigate to Settings -> Devices & Services -> MQTT -> Configure. Under Publish a packet enter the topic I used a (fake) Aqura install code of
Same with a (fake) 95 character install code of
So if I can find a mechanism to obtain an install code for my Hue Secure camera I will have something to try ... |
Beta Was this translation helpful? Give feedback.
-
Has anyone successfully joined a device using an Install Code string? I removed a Hue white ambiance E27 1600lm with Bluetooth (actually B22 not E27) and tried to join it using Aqara and 95 character Install Code strings created using the IEEE address and install code for the bulb. Two attempts with each. All four of them received Selected Log attached of just lines containing |
Beta Was this translation helpful? Give feedback.
-
Just added another toy to my collection, the new ubisys Switching Actuator S1-R (Series 2) which I hope to use as a smart switch for my immersion heater. Might be a while before it is installed as that will require a suitably qualified electrician. This has another style of unsupported install code. The text equivalent of the QR Code is: Z:0102030405060708$I:0102030405060708090A0B0C0D0E0F1090FD%G$M:S1-R%M:10F2. Note this is not the actual code from my device but the EUI-64: 0102030405060708 and I/C: 0102030405060708090A0B0C0D0E0F1090FD have the right form including the I/C checksum: 90FD. The ubisys S1-R-2 is in the Supported Devices list. This is the second ubisys device to support Zigbee Direct. I asked them if they had any tools that supported Zigbee Direct. Their reply contained: regarding tools, I suggest using our free of charge ubisys Smart Home App which is a ZVD – albeit only for iOS for the time being. However, I don't have any iOS devices ... The factory reset procedure is: 1. The device has to be powered up for at least 10 seconds. Repeat steps 2.-3. in the aforementioned 10-second rhythm another 3 times, and with the last sequence keep the device powered up. I can see that Zigbee Direct commissioning could be really useful! Still interested to know if anyone successfully joined any device using an Install Code string? |
Beta Was this translation helpful? Give feedback.
-
Zigbee2MQTT version: 2.1.3-1 Successfully joined the same Hue white ambiance E27 1600lm with Bluetooth (actually B22 not E27) using the (fake) 95 character install code that was unsuccessful before! Not sure what has changed to make it work. However, I have successfully joined a device using an Install Code string. |
Beta Was this translation helpful? Give feedback.
-
Hi!
I am trying to add a device via install code because it does not have any pairing button. I have scanned the QR code and got the following line:
G$M:IC2%Z:540F57FFFE599FAA$I:D79CB21C6D197CE7A3339A683A90DFF2442A%M:1246
I suppose that the bold part should be the install code, so I tried adding using it. I have also tried adding using the whole line. Both times I got this error:
"Request 'zigbee2mqtt/bridge/request/install_code/add' failed with error: 'Unsupported install code, got 72 chars, expected 95 or 91'"
I am fairly new to ZigBee, and as far as I was googling, the install code should be 32 characters. So I was wondering if anyone could enlighten me on what length it should be and how to connect my device to zigbee2mqtt. Maybe it should be converted somehow? Or maybe it is my zigbee adapter the problem?
Additional info:
Device: Danfoss Icon 2 Main Controller (supposed to support zigbee 3.0)
Zigbee Adapter: Zigbee CC2531 USB Dongle
Beta Was this translation helpful? Give feedback.
All reactions