zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

[ZBM5-3C-80/86 / SONOFF] Firmware 1.0.6 advertises an OTA server cluster on ep3 and captures OTA discovery, blocking updates for other devices

Open rmschots opened this issue 2 months ago β€’ 7 comments

What happened?

SONOFF ZBM5-3C-80/86 switches running firmware 1.0.6 advertise genOta (0x0019) as an input (server) cluster on endpoint 3. Units on 1.0.4 do not. The device is an OTA client β€” it correctly carries genOta as an output cluster on ep1 β€” so on 1.0.6 it presents both sides.

Same model, two units on my network:

living_room_switch_1  firmware 1.0.6  date_code 20251017  Router
  ep1  input:  genBasic, genIdentify, genGroups, genScenes, genOnOff, haDiagnostic, manuSpecificAmazonWWAH, customClusterEwelink
       output: genOnOff, genOta
  ep3  input:  genBasic, genIdentify, genGroups, genScenes, genOnOff, genOta, manuSpecificAmazonWWAH     <-- OTA SERVER
       output: genOnOff

living_room_switch_3  firmware 1.0.4  date_code 20250410  Router
  ep1  input:  genBasic, genIdentify, genGroups, genScenes, genOnOff, haDiagnostic, manuSpecificAmazonWWAH, customClusterEwelink
       output: genOta
  ep3  input:  genBasic, genIdentify, genGroups, genScenes, genOnOff, manuSpecificAmazonWWAH
       output:

The consequence is that OTA updates stop working across the network. Checks on 1.0.4 switches fail after the full 60 s window:

Failed to check if OTA update available for '<name>' (Device didn't respond to OTA request)

At debug level the coordinator's imageNotify is delivered and APS-acknowledged by the target, unrelated traffic from other devices flows normally throughout, and not one frame comes back from the target:

14:49:52 zh:controller:endpoint: CommandResponse 0xb48931fffe3ab028/1 genOta.imageNotify({"payloadType":0,"queryJitter":100} …)
14:49:52 zh:ember:ezsp: ezspMessageSentHandler: status=OK type=DIRECT indexOrDestination=20322 … clusterId=25
         … 60 s of attribute reports from other devices arriving normally …
14:50:52 z2m: Failed to check if OTA update available for 'bedroom_switch_bed_right' (Device didn't respond to OTA request)

The switch is not deaf and the coordinator is not deaf β€” the switch is answering somebody else.

The failure rate tracks the number of 1.0.6 units on the network, exactly:

1.0.6 units present Window 1.0.4 checks / updates answered
0 until 2026-08-31 19:07 (first switch reboots into 1.0.6) 3 / 3
1 β†’ 2026-09-01 22:23 2 / 4
2 β†’ 2026-09-03 21:15 2 / 6
3 since 0 / ~20, including a switch that joined fresh on 09-11

Proposed mechanism β€” consistent with everything above, but I have not confirmed it with a sniffer, so treat it as a hypothesis: per the OTA cluster spec a client discovers its upgrade server with a Match Descriptor Request for 0x0019 and uses the first response received. The 1.0.6 switches answer that broadcast, so a neighbouring switch can select one of them instead of the coordinator. In EmberZNet's ota-client.c (the ZBM5 is an EFR32MG22) a unicast imageNotify makes the client query its stored server rather than the sender, and that stored server is held in RAM only β€” which matches the observed stickiness, since a device that has chosen badly keeps failing until it reboots.

It is self-inflicted and it compounds. 1.0.6 units are OTA clients too: a switch already on 1.0.6 failed its own update check on 2026-09-03 in exactly this way. Every device updated becomes another blocker for the ones still waiting, so a fleet updating normally progressively disables its own update path. I am now at nine 1.0.6 units and three 1.0.4 units that cannot update at all.

What did you expect to happen?

An OTA check to reach the coordinator, regardless of which other devices are on the network.

How to reproduce it (minimal and precise)

  1. Pair several ZBM5 switches on firmware 1.0.4.
  2. Update one to 1.0.6. It now lists genOta as an input cluster on ep3 in bridge/devices; on 1.0.4 it does not.
  3. Check for updates on any remaining 1.0.4 switch. It fails after 60 s with Device didn't respond to OTA request, at a rate that rises with the number of 1.0.6 units present.
  4. Power-cycle a failing 1.0.4 switch and re-check within the minute β€” it may now succeed, because the stored server choice is lost on reboot.

Zigbee2MQTT version

2.14.1

Adapter firmware version

EmberZNet 8.0.2 [GA], build 397, EZSP v14

Adapter

SMLIGHT SLZB-06MU (EFR32MG21), adapter: ember, channel 25

Setup

Home Assistant add-on, on Home Assistant OS 18.3 (Supervisor 2026.09.2, Core 2026.9.3), running as a VM on Proxmox. machine: qemux86-64, arch: amd64.

Notes

Ruled out:

  • Not a Z2M regression. The first failure was on 2.13.0; a full update succeeded on 2.14.0; still failing on 2.14.1.
  • Not the adapter or its placement. The coordinator was relocated on 2026-09-13; the failures are ten days older. Already on the ember driver.
  • Not one faulty device. A switch that joined fresh on 2026-09-11 failed identically.

Workarounds that do NOT work:

Attempt Result
Bind genOta from the switch's ep1 to the coordinator, to hand the client a server without discovery Bind accepted and written (failed: []); next check still didn't respond. The Silicon Labs OTA client consults the server it discovered, never the binding table.
12 checks back-to-back, to exceed the client's QUERY_ERROR_THRESHOLD (default 10) and force rediscovery 12/12 failed, on top of ~12 earlier failures the same day.

Workarounds that do work:

  • Reboot the target and check within the minute β€” it rediscovers and may pick the coordinator. Worked first try on one switch, failed twice on another.
  • Take every 1.0.6 unit off the air (breaker) or off the network (bridge/request/device/remove). With the coordinator the only OTA server left, 5/5 targets updated within four minutes on 2026-09-13. A ZBM5 treats a leave as a factory reset and needs a 5 s button hold to rejoin, so this scales badly β€” it would now cost me nine re-pairs to update three switches.

What might help from the Z2M side. The actual fix is Sonoff's β€” either don't advertise the OTA server cluster on client firmware, or answer queryNextImageRequest with NO_IMAGE_AVAILABLE (0x98) so the client falls through to a real server. I am raising it with ITEAD separately. But two things here would have saved a lot of debugging:

  1. A known-issue note. On this network Device didn't respond to OTA request for a ZBM5 is always this, and the remedy is to reboot the target or take the 1.0.6 units off the air.
  2. A warning, if it is cheap. Z2M already learns at interview time that a non-coordinator device exposes genOta as an input cluster. Any such device will capture OTA discovery from its neighbours, so surfacing it in the frontend or the log would make this diagnosable in minutes rather than weeks.

Not tested on the dev branch β€” the behaviour is device-side and spans 2.13.0 through 2.14.1, so I do not expect it to be version-dependent, but say the word if you want that confirmed.

Full debug logs are available; I kept the excerpt short. Happy to run diagnostics or capture with a sniffer if that would help.

@Moses-qyt @andrei-lazarov β€” apologies for the direct ping, but you both worked through the no-neutral ZBM5 behaviour in #32664 and #32679, so this may be of interest.

rmschots avatar Sep 22 '26 14:09 rmschots

Hello @cubez2mdeveloper can you check this issue please?

andrei-lazarov avatar Sep 23 '26 00:09 andrei-lazarov

Thanks for reporting this and for the detailed information.

We have forwarded the issue to the firmware team. They expect to start working on an iteration around the end of October.

Thank you for your feedback and for helping us identify this issue.

CubeZ2mDeveloper avatar Sep 23 '26 05:09 CubeZ2mDeveloper

@rmschots thank you I have been experiencing the same issue which has slowly driven me insane over the last 8 months, I had given up assuming it was a quirk with my personal network.

Your summary exactly matches what I have experienced, and explains why I was initially having success upgrading switches (including powering off and on at the breaker) before the remaining ones just fully refused.

I have 13 switches on my network, 9 updated to 1.0.6 (the last 2-3 requiring power off/on) the remaining 4 are on 1.0.4 and refused updates despite multiple attempts. This is not impacting updates to other Zigbee devices including those made by Sonoff.

Info if useful: Z2MQTT Version: 2.14.2 Coordinator: SLZB-MR1U (Radio CC2652P7) Setup: HomeAssistant & Zigbee2MQTT Docker

TheTiggy avatar Oct 26 '26 17:10 TheTiggy

Independent corroboration, with a scaling data point

Different site, different coordinator stacks, same symptom β€” and I think I have evidence for the β€œfirst responder wins” mechanism that may help, since it shows the failure rate tracking the number of 1.0.6 units.

Setup: 14Γ— ZBM5 (type 80/86, 2-gang and 3-gang) on fw 1.0.6 (fileVersion 4102), 7Γ— ZBMINIR2 on 1.0.8 (4104), plus IKEA and Aqara devices. Zigbee2MQTT 2.14.3, zigbee-herdsman 11.2.0, converters 26.125.0.

The symptom is coordinator-independent. Observed identically on:

  • SLZB-MR5U, EmberZNet 9.1.1 [GA], EZSP 19, adapter: ember
  • SLZB-MR4U, CC2674P10, ZStack3x0 rev 20260310, adapter: zstack

It also survived a complete network rebuild (new PAN ID, new network key, every device factory-reset and re-paired onto the new coordinator). That rules out coordinator firmware, stack, and stale network state.

Victim class, not mentioned above: the ZBMINIR2 relays report update: {"installed_version": -1, "latest_version": -1} β€” Z2M never manages to read their current file version at all. Debug trace of a check:

zh:controller:endpoint: CommandResponse 0xfc4d6a…/1
  genOta.imageNotify({"payloadType":0,"queryJitter":100}, …)

No queryNextImageRequest ever comes back. Link quality is not the variable: a relay at LQI 87 fails while a ZBM5 at LQI 43 answered.

The scaling observation. During the rebuild I paired devices in batches, which produced an unintended clean experiment:

Time (EET) | ZBM5 1.0.6 units joined | Result of ota_update/check -- | -- | -- 23:26 | ~6 | Kitchen entrance switch (ZBM5-3C) answers: update_available: false, source zbm5-120-zr_v1.0.6.ota 00:10 | 14 | the same device no longer responds 00:59 | 14 | P1 entrance switch (ZBM5) does not respond 01:00 | 14 | E1 entrance switch (ZBM5) does not respond

So past a certain count, the 1.0.6 units block each other as well, not only other models. The device that answered correctly at six units stopped answering at fourteen, with no other change. That is consistent with the proposed Match Descriptor race: more responders on air, lower odds the coordinator wins.

Did not help: power-cycling a victim relay and re-checking (~2 min later β€” I did not retry inside the 60 s window suggested above); re-interviewing the device.

Practical consequence worth flagging: with every ZBM5 on 1.0.6, there is no in-network path to update anything, including the switches themselves. Breaking the deadlock needs the first units updated on a separate network with no 1.0.6 device present; after a few are off 1.0.6, in-place updates should start working again. Hopefully.

Happy to run specific tests on this network if useful β€” 14 units on 1.0.6 makes it a convenient reproduction environment.

GabrielStanciu avatar Nov 06 '26 23:11 GabrielStanciu

I can also confirm the bug on my end as well. ~16 ZBM5 switches (80/86, 1-2-3-gang) switches, updated 4 of the 3 gang switches from 1.0.4 to 1.0.6 in a single Z2M batch update, cannot update the rest of them (regardless of the gang) with the same errors and log entries as stated above.

Proxmox PVE, HAOS VM, Sonoff Dongle Plus MG24 (USB passthrough).

I removed the four 3-gang switches from the Zigbee network, and this allowed me to update the rest of the devices. After this, I reconnected the 3-gang devices to the network, so now everything is up-to-date but we'll have to do the disconnection (or power off) again for the next update as well.

If I can help in further debugging, please let me know.

Gimli05 avatar Nov 14 '26 18:11 Gimli05

I can also confirm this issue.

Sonoff ZBM5 80/86 EU (1/2/3 gang) 10 units. 9 of them are now updated to 1.0.6. First 3 went fine, then it required multiple attempts and restarts in order to update the next few. 6 units accepted parallel updates last night, last one is failing every attempt even if powercycled (LQI > 190), repaired, etc. It sits on 1.0.4.

Same error message reported in Z2M as OP mentioned: z2m: Failed to check if OTA update available for 'DEVICE' (Device didn't respond to OTA request) ...and... Device didn't respond to OTA request

Have not seen this impact other zigbee-devices on the network...yet (~60 devices in total per now, growing), but the system here is quite young, so the impact is currently low.

Looks like there are multiple willing to debug and provide valuable data in order to find a solution and hopefully a solution can be found soon, but if need be, I can provide some data aswell. Just let me know.

HAOS on ASUS NUC 14 Essential - Core 2026.11.2 Coordinator SLZB-06p10U - zstack 3.0 r20261123 / Z2M 2.14.3

WeatherHill avatar Nov 24 '26 09:11 WeatherHill

I can confirm the hypothesis in the first post directly, on ZHA rather than Zigbee2MQTT, so it's the switch firmware and not the coordinator software.

Setup: Home Assistant ZHA, SONOFF Dongle-M coordinator (EmberZNet 7.4.5), 4Γ— ZBM5-3C-80/86 on 1.0.6 (0x00001006), plus ZBM5-1C/2C, ZBMINIL2, MINI-ZBDIM and ZBMINIR2.

The device really does pick a 3-gang as its OTA server. Every OTA client stores the server it found in attribute 0x0000 (upgradeServerId) of its OTA cluster (0x0019, genOta):

  • A ZBMINIL2 that failed to update had upgradeServerId = 44:9f:da:ff:fe:a4:a7:6d, which is one of my ZBM5-3C switches, not the coordinator. Two more devices pointed at other 3Cs.
  • The ZHA debug log shows the Image Notify being delivered (APS ack, success) and the device staying online, but no Query Next Image ever reaches the coordinator: the device sends it to the 3C, which never answers with an image. ZHA times out after 30 s.
  • Writing the coordinator's IEEE to upgradeServerId is refused with READ_ONLY (0x88), as the spec says, so it can't be fixed from the coordinator.
  • After I removed that 3C, a Reconfigure made the same ZBMINIL2 pick another 3C, although the coordinator is in the same room. So it's whoever answers the discovery broadcast first, which near a 3C is usually the 3C.

Only the 3-gang does it. Scans from the community capabilities database (https://zigbee.solgaard.uk): the ZBM5-3C-80/86 on 1.0.6 lists 0x0019 as an input (server) cluster on endpoint 3, with only cluster_revision. The ZBM5-1C (1.0.6) and 2C (1.0.4 and 1.0.6) have no 0x0019 input cluster anywhere. SONOFF ships one image for all ZBM5 variants (zbm5-120-zr_v1.0.6.ota, file version 4102), so it's probably a shared endpoint table where only the 3-gang has the endpoint 3 that carries the stray entry.

Workaround that works here: remove the 3-gang switches from the network, update the other devices, then pair the 3Cs again. Removal resets them, so they need their bindings, groups and settings (detached relay and so on) put back afterwards.

Checking your own network: in Zigbee2MQTT you can read genOta β†’ upgradeServerId from the device's Dev console. Anything other than the coordinator's IEEE means that device's updates will time out. On ZHA I added this to ZHA Bindings Manager (a custom integration and card for ZHA, in HACS): its Devices tab has an OTA server column showing which device each one gets its updates from (amber when it isn't the coordinator), and it flags any device that claims to be an OTA server. It also backs up a device's settings, bindings and groups and restores them after the device is removed and paired again, which takes the pain out of the workaround. It doesn't fix anything, of course: only a firmware update from SONOFF can do that.

@CubeZ2mDeveloper is there any news from the firmware team? I'm happy to test a build. The fix should be just removing 0x0019 from endpoint 3's input clusters.

hsolgaard avatar Nov 26 '26 23:11 hsolgaard