Skip to content

OTA firmware upgrade fails and crashes Z2M on Sonoff devices #25784

Description

@vinne81

What happened?

I want to upgrade a Sonoff ZBMINIR2 firmware trough Z2M. Current firmware is 1.0.2. Available firmware is 1.0.4. I click "Update device firmware" in Z2M front-end, it starts. After a short while, Z2M crashes.

Others having this issue as well: https://community.home-assistant.io/t/error-messages-trying-to-ota-update-devices-using-z2m-on-a-ha-yellow/788913

What did you expect to happen?

That the upgrade process would complete and that I would have firmware 1.0.4 on my device.

How to reproduce it (minimal and precise)

Open Z2M front-end
Navigate to OTA
Click Update device firmware on ZBMINIR2.

Zigbee2MQTT version

2.0.0 commit: 060ae99

Adapter firmware version

7.4.4 [GA]

Adapter

SONOFF ZigBee 3.0 USB type E

Setup

Z2M manually installed on Rasp + Mosquito + HA core

Debug log

Jan 13 09:37:08 rasp pnpm[497207]: [2025-01-13 09:37:08] debug: z2m: Received Zigbee message from 'ZBMINIR2 16spots', type 'commandImageBlockRequest', cluster 'genOta', data '{"fieldControl":0,"fileOffset":32550,"fileVersion":4100,"imageType":8,"manufacturerCode":4742,"maximumDataSize":63}' from endpoint 1 with groupID 0
Jan 13 09:37:09 rasp pnpm[497207]: [2025-01-13 09:37:09] debug: zh:ember:uart:ash: <--- [FRAME type=ERROR]
Jan 13 09:37:09 rasp pnpm[497207]: [2025-01-13 09:37:09] error: zh:ember:uart:ash: Received ERROR from adapter, with code=ERROR_EXCEEDED_MAXIMUM_ACK_TIMEOUT_COUNT.
Jan 13 09:37:09 rasp pnpm[497207]: [2025-01-13 09:37:09] error: zh:ember:uart:ash: ASH disconnected | Adapter status: ASH_NCP_FATAL_ERROR
Jan 13 09:37:09 rasp pnpm[497207]: [2025-01-13 09:37:09] error: zh:ember:uart:ash: Error while parsing received frame, status=ASH_NCP_FATAL_ERROR.
Jan 13 09:37:09 rasp pnpm[497207]: [2025-01-13 09:37:09] error: zh:ember: Adapter fatal error: HOST_FATAL_ERROR
Jan 13 09:37:09 rasp pnpm[497207]: [2025-01-13 09:37:09] debug: zh:controller: Adapter disconnected

Metadata

Metadata

Assignees

No one assigned

    Labels

    problemSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions