ZHA (ZNP): sleepy Sonoff ZBMINIL2 end devices rejoin every ~8 min, all at once, since 2026.11

Aperta
#1,098 9 commenti 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
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Start by reading the version changes noted in the report: ZHA 2.3.1 to 2.4.3 and zigpy 2.3.0 to 2.4.1, especially the Green Power additions. The report says zhaquirks/sonoff/zbminil2.py is unchanged and names no failing test or confirmed cause. Use the supplied debug log and request full logs or diagnostics to trace the repeated rejoins; done means identifying a reproducible cause and a regression test.

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

Descrizione

firmware bug
The problem

Since the update from 2026.10.1 to 2026.11.2 (20 Nov, 11:35), three Sonoff ZBMINIL2 (no-neutral, sleepy end devices, direct children of the coordinator) leave and rejoin the network every ~7.5–8 minutes, day and night. They rejoin within the same minute, not each on its own timer. One of them (a different production batch) fully reboots on each rejoin and switches its relay off (start-up behaviour Off), so the light turns off ~8 minutes after being switched on.

Before the update the same devices were stable: the light stayed on for 2–3 hours at a time (18–19 Nov). Starting with the update, it never stayed on longer than ~9 minutes (20–26 Nov). The recorder history shows the change at the exact time of the update.

What I have ruled out
Change Rejoins every ~8 min?
Dongle directly on the Pi (as before 20 Nov) yes
USB 2.0 extension cable / USB 3.0 port yes / yes
Coordinator firmware 20210708 → 20250321 (network restored with zigpy_znp.tools.network_restore) yes
LQI 50–90 → 110–156 (aluminium wall plate removed) yes
Child table cleaned of 3–4 garbled ghost entries (IEEE/NWK swapped, matching #284), fresh backup restored yes
HA OS 18.5 → 18.3 (22–25 Nov) yes
Debug log

With zigpy_znp.zigbee.application and zigpy_znp.api at debug for 10 minutes, the host sent nothing to the devices: only SYS.Ping every 30 s. No MAC_TRANSACTION_EXPIRED, UTIL.AssocRemove or UTIL.AssocAdd. The devices rejoin on their own:

16:22:52.465 ZDO.TCDevInd.Callback(SrcNwk=0x359D, SrcIEEE=c0:9b:9e:ff:fe:66:77:70, ParentNwk=0x0000)
16:22:54.231 ZDO.EndDeviceAnnceInd.Callback(Src=0x359D, ..., Capabilities=AllocateShortAddrDuringAssocNeeded)
16:22:58.515 ZDO.TCDevInd.Callback(SrcNwk=0x76D5, SrcIEEE=e4:06:bf:ff:fe:ac:7c:2a, ParentNwk=0x0000)
16:23:32.919 ZDO.TCDevInd.Callback(SrcNwk=0x4A22, SrcIEEE=e4:06:bf:ff:fe:ac:7a:a7, ParentNwk=0x0000)
... nothing but SYS.Ping for ~7 minutes ...
16:30:23.220 ZDO.TCDevInd.Callback(SrcNwk=0x76D5, ...)
16:30:53.683 ZDO.TCDevInd.Callback(SrcNwk=0x359D, ...)
16:31:11.599 ZDO.TCDevInd.Callback(SrcNwk=0x4A22, ...)

The ZHA-specific code for this device did not change between the versions (zhaquirks/sonoff/zbminil2.py is identical in zha-quirks 2.3.0 and 2.4.1), and zigpy-znp is 1.1.1 in both. The changes between the versions are zha 2.3.1 → 2.4.3 and zigpy 2.3.0 → 2.4.1, which add Green Power (zigpy "Green Power manager, device, and proxy runtime", ZHA "ZGP device support"). That could change the coordinator setup at startup, but I can't confirm it without a sniffer.

Environment
Component Version
Home Assistant 2026.11.3 (problem since 2026.11.2; 2026.10.1 was fine)
HA OS 18.5, Raspberry Pi 4
zha / zha-quirks 2.4.3 / 2.4.1
zigpy / zigpy-znp 2.4.1 / 1.1.1
Coordinator Sonoff Zigbee 3.0 USB Dongle Plus (ZBDongle-P, CC2652P), Z-Stack 20250321 (problem also on 20210708)
Network channel 25, no routers: 3 × ZBMINIL2 (firmware 0x100e) as direct children
Side effects

An OTA update of the ZBMINIL2 to 0x1102 can't complete: it times out at the first rejoin and doesn't resume.

I tried to confirm by downgrading Core to 2026.10.1, but that isn't possible: http fails with "Storage file http has version 3 which is newer than the max supported version 2", so nothing loads (ZHA included), and the supervisor rolled back to 2026.11.3.

Related
  • zigpy/zigpy-znp#296: sleepy child dropped from the association table after MAC_TRANSACTION_EXPIRED
  • zigpy/zigpy-znp#284 (ghost entries from UTIL.AssocAdd parameter order) and #287 (child aging on 20230507+ builds): merged, not released

I can provide full debug logs, ZHA diagnostics or test a dev build if that helps.

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.