Nous A1Z (TS011F / _TZ3000_2putqrmw, app version 0x50) report storm: same report re-sent every ~200 ms until power-cycled

Aperta
#939 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à
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Start by tracing how ZHA and zigpy handle duplicate ZCL reports and default responses; the issue names no source files or tests. Check whether responding to filtered duplicates is safe for these devices, then investigate a quirk level option to disable reporting and poll instead. Done means a tested mitigation stops the report storm without disrupting normal plug behavior.

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

Descrizione

device specific firmware bug waiting for reply

Summary

24 of 36 Nous A1Z plugs (Tuya TS011F, manufacturer _TZ3000_2putqrmw, Basic cluster ApplicationVersion 0x50, ZHA shows sw_version 0x00000050) entered a state where each plug re-sends one unchanged attribute report about five times per second, indefinitely. The ZCL sequence number stays the same, the APS counter increments, so zigpy logs every copy as Filtering duplicate packet. The coordinator received 2302 packets in 60 s, 2156 of them duplicates. Zigbee channel 11 measured 82 % busy in the ZHA energy scan with no WiFi on the overlapping channels. A separate Hue bridge network on the same channel lost most of its devices (plugs 1 and 2 sit within a metre of both coordinators), and ZHA itself hit repeated Watchdog failure and reloaded ~10 times in 24 h.

Power-cycling a plug (unplug 10 s) ends it for that plug immediately. Nothing else did.

Environment

  • Home Assistant 2026.10.1 (HAOS, Home Assistant Yellow), ZHA 2.3.1, zigpy 2.3.0, bellows 1.1.0, zha-quirks 2.3.0, quirk zhaquirks.tuya.ts011f_plug:Plug
  • Coordinator: Yellow MGM210P, EmberZNet 7.5.1.0 build 0 (20260224005834), channel 11
  • 78 ZHA devices, 41 routers, of which 36 are this plug model
  • Device signature: endpoint 1, device_type 0x010a, in: 0000 0003 0004 0005 0006 0702 0b04 e000 e001, out: 000a 0019; manufacturer_code 4417

What the storm looks like (60 s of zigpy.application DEBUG)

Per plug, received packets per minute at the coordinator (healthy plugs: 0-10):

263 plug 1   (cluster 0x0702 CurrentSummationDelivered)
248 plug 2   (cluster 0x0b04)
222 plug 3   (cluster 0x0000, attrs 0x0001 / 0xffe2 / 0xffe4)
220 plug 4   (cluster 0x0702)
199 plug 5   (cluster 0x0b04)
198 plug 6   (cluster 0x0b04)
... 18 more between 20 and 170/min; 12 plugs normal (0-10/min)

Example, one plug, every packet identical payload, same ZCL tsn (0x3c), new APS counter, ~200 ms apart:

16:53:46.824 [0x9476:1:0x0702] Received ZCL frame: '08 3c 0a 00 00 25 05 04 00 00 00 00'
16:53:47.005 ...
16:53:47.209 ...
16:53:47.604 ...
(263 packets in 60 s, 231 distinct APS counters, 1 distinct payload)

Basic-cluster variant from another plug (reporting ApplicationVersion + two Tuya-private attrs):

[0x065B:1:0x0000] Received ZCL frame: '08 16 0a 01 00 20 50 e2 ff 20 38 e4 ff 20 00'

Frame control 0x08 = direction server-to-client, disable-default-response NOT set, i.e. the plug asks for a default response on every copy.

EZSP counters over 390 s while the storm ran (coordinator side):

MAC_RX_BROADCAST           25.5 /s
APS_DATA_RX_UNICAST        34.4 /s
MAC_TX_UNICAST_RETRY        3.8 /s   (vs 4.8 /s success)
NWK_FRAME_COUNTER_FAILURE   8.8 /s
NWK_DECRYPTION_FAILURE      8.4 /s
ROUTE_DISCOVERY_INITIATED   0.5 /s
PHY_CCA_FAIL_COUNT          1.5 /s

Timeline / trigger

  • Plugs had been in place for months with no issue.
  • From 2026-10-04 the Hue network (same channel) started showing a few daily dropouts, rising slowly; on 2026-10-09 ~20:30 a nearby AP landed on WiFi channel 1 (Zigbee 11-14 measured 82-97 % busy) and the Hue network collapsed within the hour.
  • 2026-10-10 19:20 first ZHA Watchdog failure, then ~10 reloads over the next 24 h.
  • 2026-10-12 the AP had moved off channel 1 (optimizer), Zigbee 12-14 quiet again, but channel 11 stayed at 82 % and all symptoms persisted: the storm is self-sustaining.
  • Plugs enter the loop one at a time, not all at once. While the storm ran we watched four previously quiet plugs start up across successive 60 s captures: plug 7 went 12 -> 18 -> 28 /min, plug 8 0 -> 3 -> 20 -> 30, plug 9 27 -> 211 between two captures, plug 10 19 -> 115. Twelve plugs, mostly those with the best link to the coordinator, never joined.
  • Power-cycling plugs one by one: each cycled plug drops from 150-260/min to 0-20/min at once; the network total fell from 2300/min to 1170/min after 16 plugs and to 673/min after 35 (one plug not yet cycled, 301/min on its own). While that last plug was still looping, two already-cycled plugs started climbing again (18 -> 45 and 18 -> 41 /min), so a single stuck plug is enough to re-seed the cascade. After all 36 were cycled: 243/min total, no plug above 31/min, Hue network fully connected again. Hue recovered as soon as the two plugs next to the coordinator were cycled.

This matches Koenkk/zigbee2mqtt#32114 (Tuya TS000x routers, identical payloads 0.5-3.5/s, "continues indefinitely until factory reset", cascades when the network is unstable) and Koenkk/zigbee2mqtt#16845 (TS011F plugs spamming attributeReport, closed stale).

Hypothesis

The plug firmware retries a report until it receives something it considers an ack (APS ack or ZCL default response). Once the channel is busy enough for that reply to be lost a few times, the plug never leaves the retry loop, which keeps the channel busy for the others. Whether the coordinator answering duplicates with a default response would break the loop is untested.

Questions / asks

  1. Has anyone seen this on _TZ3000_2putqrmw app version 0x50 under ZHA?
  2. Would zigpy answering the (filtered) duplicate reports with a ZCL Default Response be a safe mitigation, or is it known that these plugs ignore it?
  3. A quirk-level option to disable attribute reporting on these plugs (poll instead) would cap the blast radius.

Happy to provide the full 60 s debug capture (packet timing per plug) or run a test build.

Lingua principale
Python
Stelle
96
Fork
84
Merge medio
2g 4h
PR unite (30g)
30

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.