Child devices: allowlist candidates that need diagnostics
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 20/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- python
- Domain
- embedded-iot, testing-qa
Research direction
The work starts from device diagnostics, not code: post a dump from one candidate (SIN-4-2-20_PRO, C-ZB-SM205-2G, ubisys S2, lumi.ctrl_ln1.aq1 or lumi.switch.b2nacn02) and read the matching quirk file it names, such as zhaquirks/nodon/switch.py. Import the dump into tests/data/devices/ and check that each split endpoint is a real output and that the whole-device settings stay on the main device. Done means the imported device passes the existing device tests and is added to the allowlist.
Written by the indexing model from the issue text.
Description
Context
zigpy/zha#947 (merged) splits allowlisted multi-channel devices into child devices, one "Channel N" per output endpoint, and zigpy/zha#1070 and zigpy/zha#1073 (both merged) add more devices. A device is only allowlisted after its diagnostics show the split is right: every split endpoint is a real output, and the settings that belong to the whole device stay on the main device.
The devices below look like good candidates from their quirks and Zigbee2MQTT's converters, but there are no diagnostics for them in tests/data/devices/ yet.
Candidates
- NodOn
SIN-4-2-20/SIN-4-2-20_PRO(v2 quirk nodon/switch.py): relays on endpoints 1 and 2 (Zigbee2MQTTl1/l2). The relay (a light in ZHA) and itsswitch_typesetting are on both endpoints, so both would move to each channel. Diagnostics of aSIN-4-2-20were posted in https://github.com/zigpy/zha/issues/1074#issuecomment-7157238400 and confirm this split; zigpy/zha#1101 (open) allowlists theSIN-4-2-20and imports them. None of aSIN-4-2-20_PROyet. - Candeo
C-ZB-SM205-2G(v2 quirk candeo/wall_modules.py): relays on endpoints 1 and 2. Zigbee2MQTT exposes one meter for both (multiEndpointSkip), which would stay on the main device if it is only on one endpoint. Diagnostics were posted in https://github.com/zigpy/zha/issues/1074#issuecomment-7223089702 and confirm this split: one light, with its start-up setting, per channel, while the meter, the external switch type setting (both only on endpoint 11), identify and the firmware update stay on the main device. zigpy/zha#1104 (open) allowlists it and imports them. - ubisys
S2 (5502)/S2-R (5602)(v2 quirk ubisys/switch_s2.py): relays on endpoints 1 and 2, meter on endpoint 5. The quirk's per-relay "detached" settings are all on endpoint 1, so they would stay on the main device unless the quirk assigns them (tracked in zigpy/zha-device-handlers#5800). zigpy/zha-device-handlers#5846 (open) defines the two channels in the quirk itself, each with its relay, its input and that input's settings. Child devices a quirk defines replace the allowlist split, so once it is merged the S2 needs no allowlist entry. S2 diagnostics would still confirm the layout, which that PR checked only on a device built from the S1 snapshot. - Aqara
lumi.switch.n2aeu1(H1 EU double rocker with neutral, v1 quirk xiaomi/aqara/switch_h1_double.py): relays on endpoints 1 and 2 (Zigbee2MQTTleft/right), the sibling of the already allowlistedlumi.switch.l2aeu1. Diagnostics were posted in https://github.com/zigpy/zha/issues/1074#issuecomment-7165857036 and confirm this split: one switch per channel, while the meter and the device temperature, which are only on endpoint 1, stay on the main device. zigpy/zha#1101 (open) allowlists it and imports them. - Aqara
lumi.ctrl_ln2.aq1(QBKG12LM, v1 quirk xiaomi/aqara/ctrl_ln.py): relays on endpoints 1 and 2 (Zigbee2MQTTleft/right), buttons on endpoints 5 to 7. Only the 2-gang model: the quirk is shared with the 1-ganglumi.ctrl_ln1.aq1, which would need its own check. Diagnostics of alumi.ctrl_ln2.aq1were posted in https://github.com/zigpy/zha/issues/1074#issuecomment-7171859386 and confirm this split: one switch per channel, while the meter and the device temperature, which are only on endpoint 1, and the button events of endpoints 5 to 7 stay on the main device. zigpy/zha#1101 (open) allowlists thelumi.ctrl_ln2.aq1and imports them. None of alumi.ctrl_ln1.aq1yet. - Aqara
lumi.switch.b2nacn02(D1 double rocker with neutral, QBKG24LM): the same endpoints aslumi.ctrl_ln2.aq1, relays on endpoints 1 and 2. No quirk for it ships yet; zigpy/zha-device-handlers#5738 adds one, based on thectrl_lnquirk. Diagnostics (with a custom quirk of the same layout) were posted in https://github.com/zigpy/zha/issues/1074#issuecomment-7171811927 and confirm this split: one switch per channel, while the meter and the device temperature stay on the main device. zigpy/zha#1101 (open) allowlists it; the dump is imported once the quirk of zigpy/zha-device-handlers#5738 is merged, since it was taken with a custom quirk.
What's needed
Device diagnostics of any of these (device page in Home Assistant, ⋮, "Download diagnostics"), posted here. With a dump, the device can be imported into tests/data/devices/, checked, and added to the allowlist.
- 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