ZHA (ZNP): sleepy Sonoff ZBMINIL2 end devices rejoin every ~8 min, all at once, since 2026.11
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- python
- Domain
- backend, networking
Research direction
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.
Written by the indexing model from the issue text.
Description
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.AssocAddparameter 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.
- 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