private@homelab: ~/latest
Home Assistant · Zigbee2MQTT · local control
private@homelab:~$ cat guides/article.md
· ·
8–12 minutes
read

Zigbee2MQTT OTA Update Failed or Stuck? How to Fix It

Diagnose Zigbee2MQTT OTA failures and stalled progress: current abort/retry steps, battery checks, firmware sources and coordinator errors.

A failed Zigbee OTA update can stop at several points: the device may not answer, the firmware source may be unavailable, a transfer may stall, or the coordinator connection may fail. A percentage that stops moving does not identify the cause, and an error alone does not establish whether the device is damaged.

This guide follows Zigbee2MQTT 2.14.2 and its bundled zigbee-herdsman 10.10.0. It uses the official OTA instructions, released code and version-specific reports. No OTA update was performed for this article. The radio transfer is local; fetching the default firmware index and images normally needs internet access.

This is device OTA, not coordinator flashing. The coordinator firmware guide covers that separate procedure. Aqara/Xiaomi updates without the vendor app explains the model-dependent availability question.

What an OTA failure tells you

First identify the stage. Zigbee2MQTT asks the device for its current OTA identity, selects and retrieves an image, then serves the blocks the device requests. Completing the transfer and successfully applying the firmware are different steps. The device’s own OTA implementation controls verification, installation and reboot; an ordinary dashboard value cannot prove all of them completed.

Check the exact model and hardware variant, installed firmware, OTA support on its device page, and the proposed image’s manufacturer code, image type and version. Read available release notes before updating. A matching retail name or a file that imports successfully is insufficient justification for using custom firmware. The project warns that custom sources bypass some normal constraints and can brick a device.

If checking or downloading fails, inspect the index/image URL, DNS, connectivity and any proxy restrictions before changing Zigbee timing. The default source is the project’s firmware mirror. A trusted, compatible local image/index can be supplied for an offline deployment; it still requires correct identity and eligibility. Zigbee2MQTT cannot back up the firmware already installed on the device, and a device may reject a downgrade.

The OTA API rework in PR #30566 merged on 24 January 2026. Current handling includes scheduled updates, abort requests and frontend-supplied files. Compare troubleshooting advice with your installed release rather than expecting an old log or API example to match exactly.

Common failure messages and the next check

Observed symptom What the evidence establishes Next check
Device did not respond to the OTA request, or aborted it The request/transfer was not accepted or completed. Sleeping, power and model-specific update behavior are possibilities. #19916 reports this on a mains-powered Salus SR600 with 1.33.2 despite a power cycle. Confirm the operation ended, then follow the documented wake/retry procedure and model instructions.
Can't send DATA frame during transfer #25402 shows legacy EZSP UART timeouts, reset trouble and adapter disconnection on 1.42.0. That does not prove an RF-only fault or a defective end device. Read the preceding coordinator/serial errors; check driver, supported firmware, connection and power before a controlled pacing test.
Progress remains at one percentage after a crash/restart #12794 reports stale updating state on 1.25.2. Current startup code resets abandoned updating state. Distinguish fresh block/progress activity from cached state, and use the current abort/restart workflow below.
Many devices stop responding and Zigbee2MQTT stops #27419 logs Ember ASH/NCP fatal errors during OTA on 2.3.0. The coordinator path failed; the report does not establish one universal cause. Pause OTA attempts, preserve the full crash log and recover the coordinator connection before updating another device.

Recovery after a device refuses the request

For the documented “Device didn’t respond to OTA request” and “aborted by device” cases, the project suggests removing power or the battery for a few seconds, restoring it and activating the device immediately before retrying. Use the exact model’s safe power and wake instructions: a short button press can wake a device, while a long press may factory-reset it.

Use that sequence after the failed operation has ended. Do not pull power simply because an active transfer is slow, or interrupt the device’s firmware application/reboot. Check that the device works normally, obtain a fresh update check, then attempt one update while the network is quiet. Some models work better with an update scheduled for their next own OTA query rather than an immediate manual request.

Keep useful logs

OTA status messages need an effective log level of info or more detailed. In 2.14.2, info is the normal default; an explicit or environment override to warning/error can hide status messages. Record the model, coordinator driver/firmware, Zigbee2MQTT version and the complete error sequence.

Zigbee2MQTT configuration.yaml
advanced:
  log_level: info

Stuck progress, cancellation and restart

Watch the current device state topic and logs. Progress is normally published at intervals rather than for every block, and the remaining-time estimate changes with actual transfer conditions. A cached “updating” value, unchanged percentage or optimistic estimate is insufficient evidence of either a live transfer or a permanent stall.

For a running operation you intend to stop, use the frontend’s supported abort control or the current MQTT abort request. Subscribe to the OTA responses first and replace the broker, base topic, device name and transaction with your own values. Include your deployment’s authentication/TLS options:

Listen, then request an abort in another terminal
mosquitto_sub -h 192.168.10.20 \
  -t 'zigbee2mqtt/bridge/response/device/ota_update/#'

mosquitto_pub -h 192.168.10.20 \
  -t 'zigbee2mqtt/bridge/request/device/ota_update/update/abort' \
  -m '{"id":"my_remote","transaction":"ota-abort-unique-id"}'

Check the matching transaction and response, then confirm the operation ended in the logs. Abort stops the host’s operation; it is not a firmware rollback or proof of the device’s physical state. An error saying no OTA is in progress calls for checking stale UI/state and the running instance, not repeated aborts or a reset.

In 2.14.2, startup removes old progress/remaining values and changes a cached updating state to idle. A controlled service restart can therefore clear abandoned host state, but it also interrupts work still running. Preserve logs first and avoid restarting through an active firmware-application stage. After recovery, refresh the frontend, check actual MQTT state and device operation, and perform a new availability check before retrying.

A scheduled update is different: its schedule is stored in the database and can survive a restart or failed attempt. To stop later automatic retries, send {"id":"my_remote"} to zigbee2mqtt/bridge/request/device/ota_update/unschedule and verify the response. Disabling automatic availability checks is not the same as removing a schedule.

The 2022 stuck-state report predates this implementation. Removing/rejoining a device or deleting its records is not the default fix for host bookkeeping. If fresh state remains wrong, retain the version and logs and investigate before a model-specific re-pair. The interview troubleshooting guide covers that separate recovery.

The three transfer settings

The same settings are available globally or in an individual update request. These are the documented defaults, not a recommendation to change all three at once:

Zigbee2MQTT configuration.yaml
ota:
  image_block_request_timeout: 150000
  image_block_response_delay: 250
  default_maximum_data_size: 50

image_block_request_timeout is the wait, in milliseconds, for the device’s next block request. Increasing it may help a demonstrably slow requester; it does not fix a missing initial query, image download or disconnected adapter. image_block_response_delay is the minimum spacing between block responses; its documented minimum is 50 ms. More delay trades speed for reduced traffic, without establishing the cause of a crash.

default_maximum_data_size limits block data in bytes, with documented bounds of 10–100 and default 50. Some devices reject sizes above 50 or 64, and the implementation applies manufacturer-specific exceptions. A requested size is not a guarantee that every block uses it. Start with defaults; change one supported setting and compare logs on the same device under similar conditions.

#10352 reports an IKEA E1810 hang on 1.22.1-dev with a 30-second timeout, despite battery removal and re-pairing. That older initial exchange error is not evidence that increasing today’s next-block timeout fixes it.

Battery-powered devices

Check power before starting

The project recommends a reported battery level of at least 70% because OTA is power-intensive. Some devices impose their own minimum. This is a documented precaution, not a universal device cutoff or a guarantee that a cached percentage represents a healthy cell.

Follow the device’s battery instructions and check any low-battery warning, reporting age and normal operation. If the battery condition is uncertain, resolve that before updating. Avoid using an unreliable 100% reading as the only evidence, and do not replace or remove the cell during a live update merely to test a theory.

When the coordinator connection fails

If logs show adapter disconnection, ASH fatal errors or process restarts, stop repeated OTA attempts and preserve the preceding serial/protocol messages. Check the actual port owner, driver and supported coordinator firmware, USB/network transport and power. A display showing other devices unavailable is a symptom to investigate, not proof that one end device caused every failure.

The #25402 participants reported success after particular older firmware changes and the issue closed following a related discussion; those reports are not instructions to downgrade every current Ember installation. #27419 was closed after inactivity. Neither closure establishes that the reported condition remains unfixed in every later release, nor that no remedy exists.

Restore normal coordinator communication and verify ordinary device reports/commands before another controlled attempt. Increasing response delay may reduce OTA load, but it cannot substitute for repairing a serial connection or incompatible firmware. If a current failure is reproducible, include the complete versions and log sequence in a private/redacted support report.

Safer update habits

Update one device at a time during low network demand. Back up the Zigbee2MQTT instance before changing its software/configuration and retain any known compatible firmware files you are entitled to use. This does not back up the installed end-device firmware. Do not assume every model supports rollback or same-version reflashing.

Allow for the device’s reboot and power-on behavior, especially lights and relays. Current Zigbee2MQTT re-interviews and reconfigures after a successful OTA, which can reset custom reporting to its defaults. Check the installed version, required features, reporting, bindings and important automations afterward; a finished progress bar is not the whole verification.

FAQ

Why did the device not answer the OTA request?

It may be asleep, unreachable or following a model-specific update procedure. Confirm OTA support and image availability, then use the documented post-failure wake/retry sequence. Mains power alone does not guarantee an answer.

Can I retry a failed update?

After confirming the previous operation ended and checking power, compatibility and the relevant error, a controlled retry is reasonable. Repeated retries during an adapter crash or active device firmware application are a different situation.

Why is progress stuck?

Check fresh block activity, current state and process history. A slow transfer, ended operation and cached UI flag require different responses. Current abort/startup cleanup can help with host state; a schedule may need separate removal.

Does a failed update mean the device is bricked?

No conclusion follows from the error alone. Check normal device operation and its supported recovery procedure. Wrong/custom firmware and interruptions can have serious consequences, so this guide cannot promise that every failure is recoverable.

Should I update all devices together?

The project recommends one at a time during low demand. That reduces competing traffic and makes any failure easier to trace.

Sources and limits

The procedure, power guidance and timing defaults come from the official OTA guide. Cancellation, startup cleanup, schedules and post-update interview behavior were checked in the released OTA extension. Historical issue reports describe the stated installations, rather than measured failure rates or guaranteed fixes.

No device transfer, power cycle or firmware recovery was tested here. A local firmware source can avoid an internet download, while the default mirror, custom web URLs and other services in your deployment have their own network dependencies.

local-firstHome Assistantno-cloud