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

Open
#1,098 9 comments 0 reactions 0 assignees View on GitHub

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

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

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.

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from zigpy/zha

All issues in zigpy/zha

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.