OTA update of SONOFF MINI-ZBRBS fails with INVALID_IMAGE at ~97-99% (multiple devices, reproducible with reduced block size)
What happened?
What happened? I have four SONOFF MINI-ZBRBS roller shutter switches, all on firmware 4101 (build 1.0.5), being offered an update to 4352 (v1.1.0, source: SN-TLSR8656-SWV1C-01-v1.1.0.ota). Every OTA attempt fails with INVALID_IMAGE right at the end of the transfer: With default OTA settings (default_maximum_data_size: 50), two different devices (different IEEE addresses, different physical locations) failed at 96.96% within 2 seconds of each other. After reducing default_maximum_data_size to 15 and image_block_response_delay to 200, the transfer got further (98.86%) but still failed with the exact same INVALID_IMAGE error at the very end. Since two independent devices fail at the same point, and reducing block size only delayed (not fixed) the failure, this doesn't look like a link-quality/transmission issue β it looks like the device's final image validation rejects this specific .ota file.
Logs
Standard settings:
[2026-08-14 06:04:11] error: z2m: OTA update of 'SonOff Rollladenschalter West' failed (OTA update of 0x18690afffe381e89 failed with reason: INVALID_IMAGE) [2026-08-14 06:40:56] error: z2m: OTA update of 'SonOff Rollladenschalter SΓΌd-Ost' failed (OTA update of 0x04e3e5fffea30c24 failed with reason: INVALID_IMAGE)
Reduced block size (default_maximum_data_size: 15, image_block_response_delay: 200):
[2026-08-14 07:48:14] error: z2m: OTA update of 'SonOff Rollladenschalter West' failed (OTA update of 0x18690afffe381e89 failed with reason: INVALID_IMAGE)
Zigbee2MQTT version: 2.13.0-1
Adapter SONOFF Zigbee Dongle Plus
Device SONOFF MINI-ZBRBS, hardwareVersion: 0, dateCode: 20250711, currently on installed_version: 4101
What did you expect to happen?
Update to complete successfully to 4352.
How to reproduce it (minimal and precise)
Start update to 4352
Zigbee2MQTT version
2.13.0-1
Adapter firmware version
7.4.5 GA
Adapter
SonOff dongle plus MG24 (ember)
Setup
App in HA (HA OS) on raspi 4b 2GB
Device database.db entry
No response
Debug log
No response
Notes
I have the exat same error on all my 15 devices when I try to OTA via Z2M on HA.
I have the exat same error on all my 15 devices when I try to OTA via Z2M on HA.
All devices are SonOff-MINI-ZBRBS?
I also have SonOff Smart Water Valve and S60ZBTPF. They received ota updates in june 2026 without any problems. So I think it's an issue with MINI-ZBRBS or the ota-images.
Yes, all of them are MINI-ZBRBS
I have 10 MINI-ZBRBS devices showing the same upgrade message. I haven't attempted the upgrade yet because the changelog doesn't look right to me:
Why would we need Imperial Galons support on to open/close shutters?
The image is probably incorrect for our devices. The image name doesn't match the device, and the change log also reports fixes for things that aren't part of the device.
@cubez2mdeveloper could you check this?
Hi @gitzila, thanks for reporting this and for providing the detailed logs.
We have identified the cause of this issue. The OTA image had the same imageType as the MINI-ZBRBS device, which caused the firmware to be incorrectly detected and offered as an available OTA update for MINI-ZBRBS.
The OTA firmware has now been withdrawn to prevent further incorrect update attempts. The INVALID_IMAGE error you observed at the end of the update was caused by this firmware mismatch.
Sorry for the inconvenience, and thank you again for helping us identify the issue.
Want to take a look at this one originally posted 4 weeks ago as well? https://github.com/Koenkk/zigbee2mqtt/issues/32727
Pretty sure it's the exact same problem, the wrong image posted for the Third Reality Gen 3 plug.