Firmware updates time out¶
Symptom: a firmware update for a Zigbee device fails with TIMEOUT, but the same device updates fine when it's next to the coordinator. A router next to it doesn't help.
Why it happens¶
Every device that can be updated remembers one device as its OTA (update) server. It finds it by asking the whole network, and the first device to answer wins. That should be the coordinator.
Some devices wrongly claim to be an update server. The known case is the SONOFF ZBM5-3C-80/86 (3-gang switch module) on firmware 1.0.6. A device near one of them often hears the switch answer first, and from then on asks the switch for its updates. The switch has nothing to give it, so the update times out.
You can't fix it from the coordinator: the setting is read-only on the device, as the Zigbee specification requires.
Check your network¶
On the Devices tab, the OTA server column shows which device each one gets its updates from. Select Check update servers to read them all, or click a single cell to check that device. Anything in amber is a device getting its updates from somewhere other than the coordinator.

The notice above the table says how many devices claim to be an update server; Details names them. See Firmware update servers.
Fix it¶
Only the maker can fix the switch's firmware. For the ZBM5-3C it's reported in zigbee2mqtt#33185. Until then:
- Back up the switches that claim to be a server.
- Remove them from ZHA.
- Update the devices that were affected. They now find the coordinator.
- Pair the switches again, and use Restore everything to put back their groups, settings and bindings.
A device may pick a switch again later, for example after a Reconfigure. Check the column now and then.