Zigbee2MQTT OTA updates failing

i’m having a problem updating the firmware using OTA updates in Zigbee2MQTT .
HA has prompted me that there are updates available for a bunch of my Hue devices (a mixture of bulbs and switches/buttons).

the bulbs have updated fine, but the switches/buttons are failing to update.

i have a Sonoff Dongle E which hadn’t been updated for a while so i installed the latest ember firware on it (and adjusted the z2mqtt config file as appropriate) which made no difference.

also tried removing/replacing the battery from 1 of the switches that won’t update but also made no difference

any ideas what the issue might be? everything else related to Zigbee2MQTT is working as normal.

Zigbee2MQTT v2.1.0-1

|[2025-02-06 15:00:36] info: |z2m: Updating 'Hue Dimmer Switch (Office)' to latest firmware|
|---|---|
|[2025-02-06 15:00:44] info: |zh:ember:ezsp: Received network/route error ROUTE_ERROR_SOURCE_ROUTE_FAILURE for 964.|
|[2025-02-06 15:00:45] info: |zh:ember:ezsp: Received network/route error ROUTE_ERROR_SOURCE_ROUTE_FAILURE for 964.|
|[2025-02-06 15:00:47] info: |zh:ember:ezsp: Received network/route error ROUTE_ERROR_SOURCE_ROUTE_FAILURE for 964.|
|[2025-02-06 15:00:49] info: |zh:ember:ezsp: Received network/route error ROUTE_ERROR_SOURCE_ROUTE_FAILURE for 964.|
|[2025-02-06 15:01:41] info: |z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Hue Dimmer Switch (Office)', payload '{action_duration:null,battery:100,linkquality:128,update:{installed_version:1107324829,latest_version:1124102917,state:available}}'|
|[2025-02-06 15:01:41] info: |z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/response/device/ota_update/update', payload '{data:{},error:Update of 'Hue Dimmer Switch (Office)' failed (Device didn't respond to OTA request),status:error}'|
|[2025-02-06 15:01:41] error: |z2m: Update of 'Hue Dimmer Switch (Office)' failed (Device didn't respond to OTA request)|
port: >-
  /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20230508194433-if00
adapter: ember

image

2 Likes

Sometimes you need to “wake” up the device as you hit the update. Especially with battery powered devices.

1 Like

i’ve not had to “wake them up” before, and other than pressing a button on the switch to make it do something i’m not aware how to wake up such a device.

1 Like

Most of my battery powered devices need a wake up, either tap the pairing button or make them do something (depends on the make/model). Essentially they only “talk” to the coordinator when used, the coordinator can’t wake them up …

these are light switches, so other than pressing the light on/off button there isn’t anything else that would wake them up

however i did what you suggested and pressed the “on” button at the same time as pressing the update button in HA and it had the same end result

[2025-02-06 15:58:21] error: z2m: Update of 'Hue Dimmer Switch (Office)' failed (Device didn't respond to OTA request)

Hmmm I don’t know what to suggest then - that’s always sorted my Zigbee devices.

Fixed it for me. I had the same for the Hue dimmer and Hue smart button. Should be added to the docs of the devices in my opinion: Philips 324131092621 control via MQTT | Zigbee2MQTT

Rather than adding it to the documentation of hundreds of battery-powered devices, they included it in the main topic for Over The Air (OTA) updates. Notably in the troubleshooting section.

Z2M - OTA Updates - Troubleshooting

  • Device didn't respond to OTA request or Update failed with reason: 'aborted by device': try restarting the device by disconnecting the power/battery for a few seconds, then try OTA again, make sure to activate the device by pressing a button on it right before sending the update request.
  • For battery powered devices make sure that the battery is 70%+ as OTA updating is very power consuming. Some devices check for a minimum battery level prior to updating and will refuse to update if too low.

what fixed it for you ?

i’ve seen over on github a few others reporting the same problem with HUE OTA updates with the same error.

note this issue is NOT related to having to “wake up” the device by pressing a button etc

A few days ago I also got the update in Z2M for my Hue Dimmer Switches. At first they also did not respond but then pressing a button woke them up and then the update started.

My issue is however that even after the update went thru and it said it is now updated, it still showed the old firmware from 2019. When I started “search for updates” it came back that it needs to install the same update. I tried multiple times and always the same result. I now ignored the updates.

Anyone hat that issue as well?

Are you sure it’s not a browser cache issue? Have you tried clearing your browser cache to rule it out?

I’m seeing the same, and it’s not browser cache related and it shows the same in the ha app as well as browser on different devices

V2 hue switches no issues
V1 hue switches are the having the issues

Yes, you are right. I have the exact same behavior… do you also have problems with the action sensor? Mine is only showing empty string since HA 2025 and activating legacy sensors in Zigbee2MQTT.

I found a solution for me:

First start the update in Z2M for the V1-Dimmer.
Then press any of the 4 buttons for a few seconds.

In my case the update started!

1 Like

That’s not the issue. The issue isn’t that the update won’t start, it’s that it won’t actually install even though z2m suggests it has

Exactly the same issue here. Happened to four of my V1 switches. Now it’s only happening to two of them after I kept on updating the others. I have updated both remaining switches individually five times now and given up as I don’t understand why they wont update despite Zigbee2MQTT indicating that the update process is successful.

there’s a thread about this on the zigbee2mqtt github

no fixes though

This work-around worked for me. Had to do it twice on one v1 dimmer though:

that didn’t work for me.
i followed those instructions. once completed the installed version is still the old one

[2025-02-11 10:26:23] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Hue Dimmer Switch (Office)', payload '{"action":"on_press_release","action_duration":null,"battery":71,"linkquality":255,"update":{"installed_version":1107324829,"latest_version":1124102917,"state":"available"}}'