SONOFF SNZB-02DR2 OTA fails before transfer: Poll Control Bind_req timeout / MAC_NO_ACK in ZHA (zigpy_znp)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 46/100
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
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
- In Home Assistant, open ZHA's available firmware update for the SNZB-02DR2.
- Start installation (repeated attempts; usual wake-up/retry troubleshooting did not resolve it).
- Watch zigpy debug logs.
Actual result
- At 20:09:36, ZHA says the SNZB-02DR2 is available.
- At 20:09:38,
zigpy.devicebegins fast polling for 30 seconds. - During
device.fast_poll_mode(), thePoll Controlcluster binding invokes a ZDOBind_reqto0xE7A8. - 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_ACKat 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from zigpy/zha
-
Device override creates the generic entity instead of the vendor-specific one (Light instead of HueLight, ForceOnLight, MinTransitionLight)Possibly taken @zigpy-review-bot claimed this today. Openbot: code audit
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Each time a device becomes available again, ZHA adds another firmware update listener that is never releasedPossibly taken @zigpy-review-bot claimed this 1 day ago. Openbot: code audit
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
Devices that left the network are re-initialized on every availability check, reading attributes from a device that is gonePossibly taken @zigpy-review-bot claimed this 1 day ago. Openbot: code audit
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
device specific quirks
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
pimutils/vdirsyncer#1242 ·
-
priority:P2
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
QuantConnect/lean-cli#792 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
open-webui/open-webui#35360 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Suggest link: Destiny Verify (MIT zero-dependency pre-commit security, citation & link hygiene CLI)Open
Difficulty 1/5 Under an hour Newbie friendliness 68/100