RFC: Exposed Entity Addressing UX — Single WHERE Field vs. Separate A / PL Selectors (Zero Breaking Changes) #969
Replies: 4 comments 1 reply
|
Option C |
|
If easy to implement i will choose for C |
|
I'd go with option C |
|
Thanks everyone for the clear consensus on Option C — @wave68runner (for sparking this in #963), @mvalla, @andreasorbelli, and @f18m! 🙌 The implementation is now ready and 11/11 green in CI (100% coverage on modified lines) in PR #993 against
How to test right now
Option 1 — Home Assistant Terminal / SSH (copy-paste install & 1-step revert)Install PR #993 (backs up your current install to (
set -e
if [ ! -d /config/myhome_backup_pr993 ]; then
cp -a /config/custom_components/myhome /config/myhome_backup_pr993
fi
rm -rf /tmp/myhome_pr993 && mkdir -p /tmp/myhome_pr993
curl -fsSL "https://github.com/OpenWebNet-HA/MyHOME/archive/refs/heads/feat/discussion-969-expose-addressing-wizard.tar.gz" -o /tmp/myhome_pr993/pr993.tar.gz
tar -xzf /tmp/myhome_pr993/pr993.tar.gz -C /tmp/myhome_pr993
rm -rf /config/custom_components/myhome
cp -a /tmp/myhome_pr993/*/custom_components/myhome /config/custom_components/myhome
rm -rf /tmp/myhome_pr993
echo "PR #993 installed! Restart Home Assistant (ha core restart)."
)Then restart Home Assistant ( Revert to your previous version (at any time): (
set -e
if [ ! -d /config/myhome_backup_pr993 ]; then
echo "Backup /config/myhome_backup_pr993 not found." >&2
exit 1
fi
rm -rf /config/custom_components/myhome
mv /config/myhome_backup_pr993 /config/custom_components/myhome
echo "Reverted to previous MyHOME install! Restart Home Assistant (ha core restart)."
)Then restart Home Assistant ( Option 2 — HACSRedownload MyHOME in HACS → select branch What to checkOpen Settings → Devices & Services → MyHOME → Expose entity to SCS bus (and try Reconfigure on an existing exposed binding if you have one):
Feel free to reply here with your impressions, screenshots, or any rough edges you spot! 🚀 |
Uh oh!
There was an error while loading. Please reload this page.
💡 Background & Motivation
While testing
v2.0.0in #963, @wave68runner highlighted a very real onboarding rough edge when configuring Exposed Entities (Settings → Devices & Services → MyHOME → Expose entity to SCS bus):Object 400/401) and on physical configurator sockets,WHO = 1(Lighting / Switch) andWHO = 2(Automation / Cover) point-to-point addresses are configured as two separate numbers:A(Area / Ambiente) andPL(Point / Punto Luce).WHEREis not uniformly 2-digit or 4-digit padded — leading zeros depend on whether eitherAorPLhas two digits (and note that while MyHOME_Suite lists0as an unconfigured placeholder, valid point-to-pointPLvalues on the wire start at1):A(0–10)PL(1–15)WHERE1–91–9APL)A = 8, PL = 8→880808(4-digit01..09is valid only whenPL = 10..15)01–90PL)A = 0, PL = 8→080008(refused by gateways except MH202; auto-normalized to08)1–910–150APL)A = 8, PL = 12→0812812(3-digit strings are invalid)010–1500PL)A = 0, PL = 12→0012012/12101–9100PL)A = 10, PL = 8→10081081010–1510PL)A = 10, PL = 12→1012(Optional local-bus interface suffix:
#4#00..#4#15, e.g.88#4#01or0812#4#01;PL = 0is never a valid point-to-point address.)WHERE addresstext field without inline range/format examples, and entering0808,812, or80shows a generic form-level error instead of highlightingWHEREand explaining why.WHOsubsystems (1,2,4,13,18) — andWHO = 4(1–99/101–899probes),WHO = 18(51–5255/71#0meters), andWHO = 13(bus clock — noWHEREat all) do not useA/PL.🛡️ Hard Requirement: 100% Non-Breaking
Whichever UI option we choose:
subentry.data["where"]) and declarative/config/myhome.yaml(expose:→where:) will continue to store the exact same canonicalWHEREstring ("88","0812","50","51", etc.). Existing subentries, YAML configs, diagnostics, and automations will keep working untouched with zero manual migration.A/PLaddressing table to the Expose documentation, inline UI field descriptions, and targeted field-level validation hints (e.g. typing0808will explicitly suggest"88"forA = 8, PL = 8).🗳️ Which UI Experience Do You Prefer?
Because MyHOME_Suite / configurator users tend to think in separate
AandPLnumbers while Bus Monitor / OpenWebNet trace users often think directly in rawWHEREstrings (88,0812,88#4#01), we'd love your input on three non-breaking designs:WHEREtext box.A = 0–10,PL = 1–15, examples88,08,0812,0012,1008,88#4#01) and specific field-level error hints when someone enters0808,812, orPL = 0.myhome.yaml.A/PLstrings by hand.A&PLselectors (WHO→ tailored form)WHOsubsystem (1, 2, 4, 13, 18).WHO:WHO = 1/WHO = 2: SeparateA(0–10) andPL(1–15) selectors + optional Local-bus interface (00–15), automatically encoding canonicalWHEREon save (and pre-fillingA,PL, and interface when reconfiguring an existing binding), while hiding unuseddimension.WHO = 4/WHO = 13/WHO = 18: Show only the relevant probe/meterWHEREanddimensionfields, hidingWHO = 1/2-only fields (bidirectional,brightness_step_pct, custom actions).0808or812orPL = 0; matches MyHOME_Suite / physical configurators 1-to-1; declutters everyWHOform.WHEREstring.🅲 Option C — 2-step Wizard Hybrid (
A&PLselectors + optional rawWHEREoverride)WHO-tailored wizard as Option B (hiding irrelevant fields perWHO), withA(0–10) andPL(1–15) selectors front-and-center forWHO = 1 / 2, plus an optional rawWHEREfield for power users who prefer pasting88or0812#4#01straight from Bus Monitor traces.A/PLpickers by default, rawWHEREstill available, and cleaner per-WHOforms.WHO = 1 / 2step compared to Option B.💬 Tell Us What Works Best for You!
Drop a comment below with Option A, Option B, or Option C (and whether you usually look up addresses as
A/PLin MyHOME_Suite or as rawWHEREstrings in Bus Monitor traces)!Tagging @wave68runner (thanks for sparking this!) along with maintainers and active Expose / community testers who have been putting
v2.0through its paces:@anotherjulien · @gdluck · @xtimmy86x · @Interstellar0verdrive · @fedem95 · @andreasorbelli · @manfredgittmaier-afk · @Yvan13120 · @ianpace-cmyk · @xmavgithub · @DinoMesina · @lyubomirtraykov · @mvalla · @marcob79 · @f18m · @nicolacavallo84 · @imfreddie · @flow68000 · @eC0y0te
All reactions