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

Update OTA files for Xiaomi QBKG30LM, QBKG31LM, QBKG32LM, ZNLDP13LM, TDL01LM and RTCZCGQ11LM #425

Conversation

Otnow
Copy link
Contributor

@Otnow Otnow commented Jan 8, 2024

QBKG30LM:

"releaseDate": 1685328471000,
"part": "zigbee",
"downloadUrl": "https://cdn.aqara.com/cdn/opencloud-product/mainland/product-firmware/prd/lumi.switch.n1acn1/20230414104812_OTA_lumi.switch.n1acn1_0.0.0_211554_20230414_79A077.ota",
"upgradeTakesTime": 0,
"sourceFirmwareVersion": "0.0.0_xx54",
"updateLog": "Optimize the user experience\n",
"updateTime": 1685328471000,
"isNecessary": 0,
"fileSize": 325136,
"createTime": 1681799777000,
"firmwareMD5": "68a6c71e79f9f38194096713b779a077",
"state": 3,
"isForce": false,
"firmwareVersion": "0.0.0_1554",
"imageType": "exe",
"firmwareCRC32": "38F16727"

QBKG31LM:

"releaseDate": 1685328354000,
"part": "zigbee",
"downloadUrl": "https://cdn.aqara.com/cdn/opencloud-product/mainland/product-firmware/prd/lumi.switch.n2acn1/20230414104625_OTA_lumi.switch.n2acn1_0.0.0_211554_20230414_3CB07D.ota",
"upgradeTakesTime": 0,
"sourceFirmwareVersion": "0.0.0_xx54",
"updateLog": "Optimize the user experience",
"updateTime": 1685328354000,
"isNecessary": 0,
"fileSize": 327424,
"createTime": 1681799865000,
"firmwareMD5": "f46ab574b17fad335cbb05c9243cb07d",
"state": 3,
"isForce": false,
"firmwareVersion": "0.0.0_1554",
"imageType": "exe",
"firmwareCRC32": "D8F8C455"

QBKG32LM:

"releaseDate": 1685328276000,
"part": "zigbee",
"downloadUrl": "https://cdn.aqara.com/cdn/opencloud-product/mainland/product-firmware/prd/lumi.switch.n3acn1/20230414104924_OTA_lumi.switch.n3acn1_0.0.0_211554_20230414_0C7505.ota",
"upgradeTakesTime": 0,
"sourceFirmwareVersion": "0.0.0_xx54",
"updateLog": "Optimize the user experience\n",
"updateTime": 1685328276000,
"isNecessary": 0,
"fileSize": 328448,
"createTime": 1681799907000,
"firmwareMD5": "768789c14abf5967d54c3d0d780c7505",
"state": 3,
"isForce": false,
"firmwareVersion": "0.0.0_1554",
"imageType": "exe",
"firmwareCRC32": "FED51D16"

ZNLDP13LM:

"releaseDate": 1704267591000,
"part": "zigbee",
"downloadUrl": "https://cdn.aqara.com/cdn/opencloud-product/mainland/product-firmware/prd/lumi.light.acn014/20231222183430_lumi.light.acn014_0.0.0_0040_20231220_1E2291.ota",
"upgradeTakesTime": 0,
"updateLog": "1.Fix known bugs",
"updateTime": 1704267591000,
"isNecessary": 0,
"fileSize": 482528,
"createTime": 1703678968000,
"firmwareMD5": "3d5f5d1eb1312d8518c9e9c2591e2291",
"state": 3,
"isForce": false,
"firmwareVersion": "0.0.0_0040",
"imageType": "exe",
"firmwareCRC32": "DB1A5006"

TDL01LM:

"releaseDate": 1704249501000,
"part": "zigbee",
"downloadUrl": "https://cdn.aqara.com/cdn/opencloud-product/mainland/product-firmware/prd/lumi.light.acn128/20231222182930_lumi.light.acn128_0.0.0_0022_20231219_46D8F0.ota",
"upgradeTakesTime": 0,
"updateLog": "1. Fix known issues.",
"updateTime": 1704249501000,
"isNecessary": 0,
"fileSize": 313700,
"createTime": 1703649447000,
"firmwareMD5": "ccd53ad851a3166b7d90b251b146d8f0",
"state": 3,
"isForce": false,
"firmwareVersion": "0.0.0_0022",
"imageType": "exe",
"firmwareCRC32": "2A56DD85"

RTCZCGQ11LM:

"releaseDate": 1704247371000,
"part": "zigbee",
"downloadUrl": "https://cdn.aqara.com/cdn/opencloud-product/mainland/product-firmware/prd/lumi.motion.ac01/20230925143537_OTA_lumi.motion.ac01_0.0.0_0058_20230925_90FDB9.ota",
"upgradeTakesTime": 0,
"updateLog": "Change background learning time from 6 seconds to 30 seconds.",
"updateTime": 1704247371000,
"isNecessary": 0,
"fileSize": 319114,
"createTime": 1695623884000,
"firmwareMD5": "2435a7738fd40d4af65442e18390fdb9",
"state": 3,
"isForce": false,
"firmwareVersion": "0.0.0_0058",
"imageType": "exe",
"firmwareCRC32": "77618294"

@Koenkk Koenkk merged commit 7bb750c into Koenkk:master Jan 8, 2024
1 check passed
@Koenkk
Copy link
Owner

Koenkk commented Jan 8, 2024

Thanks!

@Otnow Otnow deleted the Aqara-QBKG30LM,QBKG31LM,QBKG32LM,ZNLDP13LM,TDL01LM,RTCZCGQ11LM branch January 8, 2024 20:03
@devolad
Copy link

devolad commented Jan 9, 2024

for the RTCZCGQ11LM :
"updateLog": "Change background learning time from 6 seconds to 30 seconds."
do you know the consequences of this ?

@Otnow
Copy link
Contributor Author

Otnow commented Jan 9, 2024

for the RTCZCGQ11LM :
"updateLog": "Change background learning time from 6 seconds to 30 seconds."
do you know the consequences of this ?

I think this can only be understood experimentally, because it’s not clear what Aqara means by this and how it will affect the operation of the device 🤷

@vivobg
Copy link

vivobg commented Jan 22, 2024

I have 3 presence sensors RTCZCGQ11LM and after updating one of them with the new firmware, I find it very unstable and it will stop detecting my presence after some time. Unplugging it from the USB power and re-plugging it fixes it for a little while and presence detection starts working again, before it breaks later on again.

Affected sensor details:
Living room

Presence Living
Description
Last seen
just now
Availability
Online
Device type
EndDevice
Zigbee Model
lumi.motion.ac01
Zigbee Manufacturer
aqara
Description
Aqara presence detector FP1
Support status
Supported

IEEE Address
0xXXXXXXXXXXX
Network address
0xXXXX
Firmware build date
20210121
Manufacturer
Xiaomi
Model
RTCZCGQ11LM
Power
Interview completed
True

Other sensors, not yet updated:

Kitchen

Friendly name
Presence Kitchen
Description
Last seen
5 minutes ago
Availability
Online
Device type
EndDevice
Zigbee Model
lumi.motion.ac01
Zigbee Manufacturer
LUMI
Description
Aqara presence detector FP1
Support status
Supported

IEEE Address
0xXXXXXXXX
Network address
0xXXXXX
Firmware version
54
Manufacturer
Xiaomi
Model
RTCZCGQ11LM
Power
Battery 
Interview completed
True

Bedroom

Friendly name
Presence Bedroom
Description
Last seen
3 minutes ago
Availability
Online
Device type
EndDevice
Zigbee Model
lumi.motion.ac01
Zigbee Manufacturer
aqara
Description
Aqara presence detector FP1
Support status
Supported

IEEE Address
0xXXXXXXXX
Network address
0xXXXXX
Firmware build date
20210121
Firmware version
54
Manufacturer
[Xiaomi](https://www.zigbee2mqtt.io/supported-devices/#v=Xiaomi)
Model
[RTCZCGQ11LM](https://www.zigbee2mqtt.io/devices/RTCZCGQ11LM.html#xiaomi-rtczcgq11lm)
Power
Interview completed
True

The bedroom sensor shows the same firmware build date as the already upgraded Living sensor, yet I see the option to update the Bedroom sensor.

Has anyone else experienced issues, following the firmware upgrade of their presence sensor?

@polsup2
Copy link

polsup2 commented Jan 27, 2024

I find it very unstable and it will stop detecting my presence after some time

I confirm. I've 5 FP1's for about a year. Everithing was stable. Updated 3 of 5 sensors to v.58. Got unstable presence detection, "blinking" leave events and bad senisitivity. After power shutdown today, all sensors with version 58 didn't rejoined the network. "54" are working well.

Strongly unrecommend to update sensors.

@bobzer
Copy link

bobzer commented Jan 27, 2024

Thank you for sharing, hope you'll be able to fix it, maybe you can force a downgrade ?
I know that you can manually provide a OTA .
hope this kin help you : https://www.zigbee2mqtt.io/guide/usage/ota_updates.html#local-ota-index-and-firmware-files

@Otnow
Copy link
Contributor Author

Otnow commented Jan 28, 2024

Try to repair FP1 after updating the firmware and if this does not help, then I can suggest trying to roll back the firmware version to 0.0.0.0054 using modified firmware (only the version number in the header has been changed to 99), but at your own risk, because device may become bricked:

20220524105221_OTA_lumi.motion.ac01_0.0.0_0054_20220509_EB279B_modded_to_v99.ota.zip

@vivobg
Copy link

vivobg commented Feb 15, 2024

@Otnow I tried downgrading the firmware back to 54 using the above modded file, but I get the following in the logs:

Update of 'Presence Living' failed (OTA: Update failed with reason: 'invalid image')

My index.json has the following, with the firmware file available locally next to configuration.yaml:

[
    {
        "url": "20220524105221_OTA_lumi.motion.ac01_0.0.0_0054_20220509_EB279B_modded_to_v99.ota",
        "force": true
    }
]

I also tried forcing the original 54 firmware, using force: true, but I get the following error:

Update of 'Presence Living' failed (OTA: Timeout, device did not request any image blocks)

Re-pairing the sensor unfortunately also doesn't work. I am not sure what else I can try, other than waiting for an updated firmware that hopefully fixes this issue.

@Otnow
Copy link
Contributor Author

Otnow commented Feb 17, 2024

@vivobg, I think the result will be the same, but you can also try this modified firmware (only the version number in the header has been changed to 59):

20220524105221_OTA_lumi.motion.ac01_0.0.0_0054_20220509_EB279B_modded_to_v59.ota.zip

@dangnguyen0906
Copy link

Still got the same issues report. seem can't downgrade

@Otnow
Copy link
Contributor Author

Otnow commented Feb 18, 2024

It's a pity, then all that remains is to wait for the release of a new firmware version.

In general, it is strange that it was not possible to downgrade the firmware version, because this method worked on several other Aqara devices.

I hope that this is an isolated case and Aqara has not started prohibiting downgrading in new versions of the firmware of its devices, otherwise it will be completely sad.

@Otnow
Copy link
Contributor Author

Otnow commented Feb 18, 2024

Created a PR to return the previous version of firmware 0.0.0_0054 and prevent further distribution of 0.0.0_0058.

@dtalens
Copy link

dtalens commented Feb 18, 2024

Hi, I have not been able to downgrade to version 54. I have tried unplug devices and also re-pairing them but in all cases I end up with the following message:
Update of 'Presència menjador' failed (OTA: Timeout, device did not request any image blocks)

@TheJulianJES
Copy link
Contributor

If you have another Zigbee coordinator/"dongle", you could try to do the downgrade with ZHA.
"device did not request any image blocks" sound very weird. I'd expect the device to at receive the "upgrade" first, and possibly only fail when validating the full image.

If you want to do the downgrade with ZHA, there are some extra config options you need to set for now.
(ping me on Discord @TheJulianJES if you want/can do that.)

@ScottG489
Copy link

I believe I'm having the same issue many have reported here. After updating the firmware the devices will get stuck in an "away" state after a few days. I need to unplug/replug the device to get it back to normal until it happens again a few days later.

As one upside, it did seem like the detection it had was more solid in my bedroom for when I was sleeping.

From the above conversation it seems like downgrading is not possible?

@dangnguyen0906
Copy link

I believe I'm having the same issue many have reported here. After updating the firmware the devices will get stuck in an "away" state after a few days. I need to unplug/replug the device to get it back to normal until it happens again a few days later.

As one upside, it did seem like the detection it had was more solid in my bedroom for when I was sleeping.

From the above conversation it seems like downgrading is not possible?

Otnow has made new PR to revert the previous fw OTA. let wait for new release

@dedors
Copy link

dedors commented Feb 23, 2024

Created a PR to return the previous version of firmware 0.0.0_0054 and prevent further distribution of 0.0.0_0058.

With the dev version, no OTA was shown.
So I took the contents from the PR above, added it to local index.json and added "force": true.
After initiating OTA I also got
Update of 'Pres 1 FP1' failed (OTA: Timeout, device did not request any image blocks)

@sorryusernameisalreadytaken
Copy link

Created a PR to return the previous version of firmware 0.0.0_0054 and prevent further distribution of 0.0.0_0058.

Like @dedors I want to test this v58 firmware on my own but we cant.
I try it with local file like decribed here:
#425 (comment)
and also with editing the ZigbeeOTA.js like decribed here as workaround for this.
I hardcoded your json into the ZigbeeOTA.js

This is what the log shows me:

Debug 2024-04-09 21:03:30Received MQTT message on 'zigbee2mqtt/bridge/request/device/ota_update/update' with data '{"id":"Occu_Kit","transaction":"vocla-5"}'
Info 2024-04-09 21:03:30Updating 'Occu_Kit' to latest firmware
Debug 2024-04-09 21:03:30Received Zigbee message from 'Occu_Kit', type 'readResponse', cluster 'genBasic', data '{"dateCode":"20210121","swBuildId":""}' from endpoint 1 with groupID 0
Debug 2024-04-09 21:03:30Received Zigbee message from 'Occu_Kit', type 'commandQueryNextImageRequest', cluster 'genOta', data '{"fieldControl":1,"fileVersion":54,"imageType":8347,"manufacturerCode":4447}' from endpoint 1 with groupID 0
Debug 2024-04-09 21:03:31Update of 'Occu_Kit' failed (TypeError: Cannot read properties of undefined (reading 'data'))
Info 2024-04-09 21:03:31MQTT publish: topic 'zigbee2mqtt/Occu_Kit', payload '{"action":null,"approach_distance":"near","device_temperature":23,"last_seen":"2023-11-12T12:55:25+01:00","linkquality":32,"monitoring_mode":"undirected","motion_sensitivity":"high","power_outage_count":62,"presence":false,"presence_event":"leave","update":{"installed_version":54,"latest_version":58,"state":"available"},"update_available":null}'
Info 2024-04-09 21:03:31MQTT publish: topic 'zigbee2mqtt/bridge/response/device/ota_update/update', payload '{"data":{"id":"Occu_Kit"},"error":"Update of 'Occu_Kit' failed (Cannot read properties of undefined (reading 'data'))","status":"error","transaction":"vocla-5"}'
Error 2024-04-09 21:03:31Update of 'Occu_Kit' failed (Cannot read properties of undefined (reading 'data'))

Is there any easy way to install v58 If a user really want to do this?

@Otnow
Copy link
Contributor Author

Otnow commented Apr 17, 2024

Created a PR to return the previous version of firmware 0.0.0_0054 and prevent further distribution of 0.0.0_0058.

Like @dedors I want to test this v58 firmware on my own but we cant. I try it with local file like decribed here: #425 (comment) and also with editing the ZigbeeOTA.js like decribed here as workaround for this. I hardcoded your json into the ZigbeeOTA.js

This is what the log shows me:

Debug 2024-04-09 21:03:30Received MQTT message on 'zigbee2mqtt/bridge/request/device/ota_update/update' with data '{"id":"Occu_Kit","transaction":"vocla-5"}'
Info 2024-04-09 21:03:30Updating 'Occu_Kit' to latest firmware
Debug 2024-04-09 21:03:30Received Zigbee message from 'Occu_Kit', type 'readResponse', cluster 'genBasic', data '{"dateCode":"20210121","swBuildId":""}' from endpoint 1 with groupID 0
Debug 2024-04-09 21:03:30Received Zigbee message from 'Occu_Kit', type 'commandQueryNextImageRequest', cluster 'genOta', data '{"fieldControl":1,"fileVersion":54,"imageType":8347,"manufacturerCode":4447}' from endpoint 1 with groupID 0
Debug 2024-04-09 21:03:31Update of 'Occu_Kit' failed (TypeError: Cannot read properties of undefined (reading 'data'))
Info 2024-04-09 21:03:31MQTT publish: topic 'zigbee2mqtt/Occu_Kit', payload '{"action":null,"approach_distance":"near","device_temperature":23,"last_seen":"2023-11-12T12:55:25+01:00","linkquality":32,"monitoring_mode":"undirected","motion_sensitivity":"high","power_outage_count":62,"presence":false,"presence_event":"leave","update":{"installed_version":54,"latest_version":58,"state":"available"},"update_available":null}'
Info 2024-04-09 21:03:31MQTT publish: topic 'zigbee2mqtt/bridge/response/device/ota_update/update', payload '{"data":{"id":"Occu_Kit"},"error":"Update of 'Occu_Kit' failed (Cannot read properties of undefined (reading 'data'))","status":"error","transaction":"vocla-5"}'
Error 2024-04-09 21:03:31Update of 'Occu_Kit' failed (Cannot read properties of undefined (reading 'data'))

Is there any easy way to install v58 If a user really want to do this?

Some strange error in the log.

What version of z2m is this?

@vision2003
Copy link

Anyone actually managed to downgrade? FP1 was working fine and became pretty much unusable since the update to 58 on my end. It will clear the presence even when I'm in the room and it's really annoying.

@ScottG489
Copy link

I haven't tried since it doesn't sound possible from the above conversations, so I've sadly just resorted to connecting them to smart plugs that cycle every so often :/

@dangnguyen0906
Copy link

yeah, it's impossible right now, so annoy with v58. Need to buy another sonoff to cover the presence_event status change frequently of Fp1. If any one have the way to downgrade, that's really a savior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet