zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Aqara Cube | modelID not recognized with Firmware 20180815

Open AnhDuc85 opened this issue 8 years ago • 37 comments

Just flashed firmware 20180815 to my CC2531 and the cube doesn't work anymore. The cube worked fine under 20180705 no matter which docker images has been used. How can it be?

db entry of the paired and previous working cube under firmware 20180705: https://pastebin.com/raw/xRPQYxTc

db entry of the paired and previous working cube under firmware 20180815: https://pastebin.com/raw/EUNYTe4t

AnhDuc85 avatar Sep 19 '18 20:09 AnhDuc85

You know it's necessary to re-pair a device after updating the firmware?

ben423423n32j14e avatar Sep 19 '18 20:09 ben423423n32j14e

sure, I repaired all my devices, that's why I'm so confused as my cube is not working anymore

AnhDuc85 avatar Sep 19 '18 20:09 AnhDuc85

seems like the modelID can not be recognized with new firmware. When I edit devices.js and replace modelID 'lumi.sensor_cube' with "0x656275635f726f736e65732e696d756c" the cube is working as before.

AnhDuc85 avatar Sep 21 '18 11:09 AnhDuc85

@AnhDuc85 In relation to this I just received my Aqara cube (ordered an Xiaomi but I'm guessing they are the same) but I cannot get the tap function to work. All other functions are being seen in terminal except this.

Any ideas?

Also how can you update the firmware of the cube without an original hub and Xiaomi app? It is possible?

aptonline avatar Sep 22 '18 09:09 aptonline

@aptonline tap is working out of the box, some samples: payload: '{"battery":"98.33","voltage":2995,"linkquality":105,"action":"tap","side":0}' payload: '{"battery":"98.33","voltage":2995,"linkquality":107,"action":"tap","side":5}'

As far as I know, there is no other way to update the cube firmware except via xiaomi hub and app.

AnhDuc85 avatar Sep 22 '18 18:09 AnhDuc85

No for me @AnhDuc85, I've double checked and not getting any tap payload exposed in terminal. All other functions are there. Running [email protected]

aptonline avatar Sep 23 '18 14:09 aptonline

do you get the "tap" via Mi Home app?

AnhDuc85 avatar Sep 23 '18 15:09 AnhDuc85

seems like the modelID can not be recognized with new firmware. When I edit devices.js and replace modelID 'lumi.sensor_cube' with "0x656275635f726f736e65732e696d756c" the cube is working as before.

Here the same. As a workaround it's fine, but I hope it will be fixed.

I have the Mi cube.

wilfredsmit avatar Sep 24 '18 16:09 wilfredsmit

@wilfredsmit @AnhDuc85 are you sure this is because of the firmware update and not because a zigbee2mqtt update?

(when you revert to the old firmware, does it work again?)

Koenkk avatar Sep 25 '18 11:09 Koenkk

It stopped working after I updated my firmware and re-paired the cube. Also, I tried with old zigbee2mqtt image but still same.

Within the next days, I will get another CC2531, will flash old firmware and double check. Don't want to use my current stick and re-pair the devices again :-)

AnhDuc85 avatar Sep 25 '18 13:09 AnhDuc85

The same for me. I updated my firmware and re-paired the cube. Btw I use the docker image.

wilfredsmit avatar Sep 25 '18 13:09 wilfredsmit

@Koenkk Firmware 20180507: https://pastebin.com/raw/iiQW0K5d Firmware 20180815: https://pastebin.com/raw/ZwdPtEeV Now it's 100%, there is an issue with the firmware

AnhDuc85 avatar Sep 25 '18 17:09 AnhDuc85

@AnhDuc85 could you trigger some actions when running both firwmare?

You 20180815 has some more events:

  zigbee2mqtt:debug 2018-9-25 19:25:06 Recieved zigbee message of type 'attReport' with data '{"cid":"genBasic","data":{"modelId":"lumi.sensor_cube.aqgl01"}}' of device '0x656275635f726f736e65732e696d756c' (0x00158d0002791e60)
  zigbee2mqtt:warn 2018-9-25 19:25:06 Device with modelID '0x656275635f726f736e65732e696d756c' is not supported.
  zigbee2mqtt:warn 2018-9-25 19:25:06 Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
  zigbee2mqtt:debug 2018-9-25 19:25:07 Recieved zigbee message of type 'devInterview' with data '"0x00158d0002791e60"'

Koenkk avatar Sep 26 '18 10:09 Koenkk

same with all events (tap, rotate, flip, ...). Only the presentValues changes: https://pastebin.com/raw/QefxNYT3

AnhDuc85 avatar Sep 26 '18 10:09 AnhDuc85

And how does it look like when running with the 20180507 firmware? (with the same cube)

Koenkk avatar Sep 26 '18 12:09 Koenkk

Seems like I mixed up something. Problem is not relating to Firmware. However, it's not possible to pair the cube with stable and latest-dev BUT it's possible to pair with 0.1.3. Once the cube is paired, switch back to latest-dev or stable and everything seems fine. @wilfredsmit can you try that?

AnhDuc85 avatar Sep 26 '18 19:09 AnhDuc85

I am experiencing the same error. Maybe there is a clue here: 0x656275635f726f736e65732e696d756c in ascii spells ebuc_rosnes.imul (lumi.sensor_cube reversed...)

JaapBraam avatar Sep 26 '18 20:09 JaapBraam

@AnhDuc85 I'm afraid I don't have the time to test this the coming days, as I'm not at home.

wilfredsmit avatar Sep 27 '18 11:09 wilfredsmit

So then it seems to be a problem of the new zigbee2mqtt version.

Koenkk avatar Sep 27 '18 11:09 Koenkk

I just paired 2 brand new cubes (with newer firmware, I guess). These are not recognised: "Device with modelID '0x656275635f726f736e65732e696d756c' is not supported.". Older cubes still work, so I'm not sure the problem is caused by zigbee2mqtt.

As @JaapBraam mentioned before, when decoding this modelID hex string, we get the normal model id but reversed...?

apeeters avatar Sep 27 '18 21:09 apeeters