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

Aperta
#1,029 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
46/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend, mobile

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
96
Fork
84
Merge medio
3g 1h
PR unite (30g)
13

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di zigpy/zha

Tutte le issue di zigpy/zha

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.