SONOFF SNZB-02DR2 OTA fails before transfer: Poll Control Bind_req timeout / MAC_NO_ACK in ZHA (zigpy_znp)

Open
#1,029 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
46/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
backend, mobile

Research direction

The traceback identifies the OTA path through zigpy/ota/manager.py, zigpy/device.py, and zigpy/zcl/init.py, ending at poll_control.bind() and a ZDO Bind_req timeout. Start by reading those call sites and the related report zigpy/zha#1024; determine whether binding is required before OTA and what existing tests cover fast-poll setup failures. Done means the behavior for a timed-out binding is defined and verified without falsely reporting a successful firmware update.

Written by the indexing model from the issue text.

Description

needs more information waiting for reply
Problem

Updating a SONOFF SNZB-02DR2 battery-powered temperature/humidity sensor from Home Assistant ZHA repeatedly fails. The failure occurs during Poll Control fast-poll initialization, before firmware image transfer starts.

The device is still marked available by ZHA during the attempt, but the OTA setup Bind_req does not receive a response. The log also shows MAC_NO_ACK when trying to send a Poll Control check-in response.

Environment
  • Device: SONOFF SNZB-02DR2 (bedroom temperature/humidity sensor)
  • Integration: ZHA
  • Coordinator stack: zigpy_znp / Texas Instruments ZNP (as shown in logs; exact coordinator model not available)
  • Home Assistant / zigpy version: not extracted from this debug log
  • Debug log date: 2026-11-16, local time UTC+01:00
  • Targeted device: short network address 0xE7A8 (full IEEE deliberately omitted)
  • Firmware version before/after: not available in this log (update did not complete)
Steps to reproduce
  1. In Home Assistant, open ZHA's available firmware update for the SNZB-02DR2.
  2. Start installation (repeated attempts; usual wake-up/retry troubleshooting did not resolve it).
  3. Watch zigpy debug logs.
Actual result
  • At 20:09:36, ZHA says the SNZB-02DR2 is available.
  • At 20:09:38, zigpy.device begins fast polling for 30 seconds.
  • During device.fast_poll_mode(), the Poll Control cluster binding invokes a ZDO Bind_req to 0xE7A8.
  • At 20:11:07, the third request attempt times out, and zigpy logs [0xe7a8] OTA failed!.
  • An earlier attempt started at 19:58:25, likewise entering fast-poll setup; the log also records a check-in response delivery error MAC_NO_ACK at 20:00:53.

Relevant sanitized excerpts from the debug log:

2026-11-16 20:09:36.925+01:00 DEBUG [zha.zigbee.device] [0xE7A8](SNZB-02DR2): Update device availability - device available: True - new availability: True
2026-11-16 20:09:38.791+01:00 DEBUG [zigpy.device] Beginning fast polling for 30.00s
2026-11-16 20:09:38.792+01:00 DEBUG [zigpy_znp.zigbee.application] Sending packet ... dst=0xE7A8 ... cluster_id=<ZDOCmd.Bind_req: 33> ...
2026-11-16 20:11:07.031+01:00 DEBUG [zigpy.device] Failed to send request, attempt 3 of 3
TimeoutError
2026-11-16 20:11:07.033+01:00 DEBUG [zigpy.device] [0xe7a8] OTA failed!

Earlier in the same log:

2026-11-16 20:00:53.145+01:00 DEBUG [zigpy.device] [0xe7a8] Failed to send check-in response: DeliveryError('Failed to send request: <Status.MAC_NO_ACK: 233>')

The OTA traceback ends at:

zigpy/ota/manager.py:363  update_firmware -> device.fast_poll_mode()
zigpy/device.py:890        fast_poll_mode -> begin_fast_polling()
zigpy/device.py:868        begin_fast_polling -> poll_control.bind()
zigpy/zcl/__init__.py:1634  bind() -> device.zdo.bind()
zigpy/zdo/__init__.py:251  bind() -> Bind_req()
zigpy/device.py:1122       request -> TimeoutError
Expected behavior

The SNZB-02DR2 should either complete the required Poll Control setup and proceed to OTA transfer, or the software should handle a sleeping/unresponsive end device gracefully, rather than immediately aborting at the binding step.

Related issues
  • zigpy/zha#1024 discusses unhelpful firmware update error messages and explicitly mentions SNZB-02DR2 failures during fast-poll initialization. This report is about the underlying update failure, not the user-facing error text.
  • zigpy/zigpy-ota#260 (firmware v1.0.5) includes other user reports that the SNZB-02DR2 fails to update in ZHA.
Question

Is poll_control.bind() an essential prerequisite for OTA on this model? Could a timeout at this step be retried on a later check-in, or the fast-poll setup be made non-fatal where safe? Happy to provide further redacted diagnostic excerpts if needed; the full log includes identifiers for other Zigbee devices and is intentionally not posted publicly.

Dominant language
Python
Stars
96
Forks
84
Avg merge
2d 4h
Merged PRs (30d)
30

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from zigpy/zha

All issues in zigpy/zha

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.