Provide the install code via the deconz REST API. I use Postman for this but there are many options for API tools. Ensure that you provide the full length of the code (36 characters without hyphens or blanks).
In Phoscon, scan for a new sensor and put the battery in/remove the protective lid.
In the Deconz GUI and in this case also in Phoscon, the device appears.
ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ is the 36 characters install code (without hyphens). In the battery lid, itās called āInstall Codeā. XXXXXXXXXX is my 10 chars long API key. YYYYYYYYYYYYYYYY is the 16 characters long ZigBee EUI-64. Iāve read the QR code and found it to be a 95 chars long string where ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ are the last 36 chars and YYYYYYYYYYYYYYYY starts after the first 40 chars. This way, Iāve triple-checked that thereās no typo in my inputs. Could you please guide me in the right direction here? Thanks.
Hm, that shouldnāt beā¦ On which OS is your deconz running? Assuming you entered the device MAC without colons, the length of the install code is fine (16 Bytes code + 2 Bytes CRC = 18 while a Bytes has 2 chars).
I have a test script to calculate some test hashes and that runs fine with the expected output
The below is the content of a little test script. Just set your API key, IP and port, put it into an executable script file and run it (requires jq command to be installed).
#!/bin/sh
HOST="127.0.0.1:8080"
APIKEY="123456789"
# 6 byte IC test
# 83FED3407A93
# 83FED3407A932B70
# HASH CD4FA064773F46941EC986C09963D1A8
echo "--- 6-bytes -----------"
curl -s -XPUT -H "Content-type: application/json" -d '{"installcode": "83FED3407A932B70"}' "${HOST}/api/${APIKEY}/devices/999/installcode" \
| jq
echo "[VERIFY] HASH MUST BE CD4FA064773F46941EC986C09963D1A8"
# 8-bytes IC test
# 83FED3407A939738
# 83FED3407A939738C552
# HASH A833A77434F3BFBD7A7AB97942149287
echo "--- 8-bytes -----------"
curl -s -XPUT -H "Content-type: application/json" -d '{"installcode": "83FED3407A939738C552"}' "${HOST}/api/${APIKEY}/devices/999/installcode" \
| jq
echo "[VERIFY] HASH MUST BE A833A77434F3BFBD7A7AB97942149287"
# 12-bytes IC
# 83FED3407A939723A5C639FF
# 83FED3407A939723A5C639FF4C12
echo "--- 12-bytes ----------"
curl -s -XPUT -H "Content-type: application/json" -d '{"installcode": "83FED3407A939723A5C639FF4C12"}' "${HOST}/api/${APIKEY}/devices/999/installcode" \
| jq
echo "[VERIFY] HASH MUST BE 58C1828CF7F1C3FE29E7B1024AD84BFA"
# 16-bytes IC
# 83FED3407A939723A5C639B26916D505
# 83FED3407A939723A5C639B26916D505C3B5
echo "--- 16-bytes ----------"
curl -s -XPUT -H "Content-type: application/json" -d '{"installcode": "83FED3407A939723A5C639B26916D505C3B5"}' "${HOST}/api/${APIKEY}/devices/999/installcode" \
| jq
echo "[VERIFY] HASH MUST BE 66B6900981E1EE3CA4206B6B861C02BB"
After update to the latest docker image I have the same error when trying to add install code (901, failed to calc mmo hash). Before update it was working. Results of running test script:
$ ./test.sh
--- 6-bytes -----------
[
{
"error": {
"address": "/devices",
"description": "internal error, failed to calc mmo hash, occured",
"type": 901
}
}
]
[VERIFY] HASH MUST BE CD4FA064773F46941EC986C09963D1A8
--- 8-bytes -----------
[
{
"error": {
"address": "/devices",
"description": "internal error, failed to calc mmo hash, occured",
"type": 901
}
}
]
[VERIFY] HASH MUST BE A833A77434F3BFBD7A7AB97942149287
--- 12-bytes ----------
[
{
"error": {
"address": "/devices",
"description": "internal error, failed to calc mmo hash, occured",
"type": 901
}
}
]
[VERIFY] HASH MUST BE 58C1828CF7F1C3FE29E7B1024AD84BFA
--- 16-bytes ----------
[
{
"error": {
"address": "/devices",
"description": "internal error, failed to calc mmo hash, occured",
"type": 901
}
}
]
[VERIFY] HASH MUST BE 66B6900981E1EE3CA4206B6B861C02BB
Guys, that stuff is annoying. I hopped on the ConBee train as I liked the product being from Germany, development taking place on GitHub, bla. Iām running my set-up for approx. two years now and, for various reasons, it has been a pain in the bottom for most of the time. Iāve recently switched from ConBee II to ConBee III. Today, I found that most of my sensors are not recognized anymore. Meanwhile, my Bosch thermostats are attracting dust and canāt be connected to ConBee.
Iāve recently switched from ioBroker to Home Assistant and I felt a big relief. What a valuable piece of software. I will sell my ConBees and move to a competitorās ZigBee dongle, hoping to find another eureka moment.