Compare commits

...
Author SHA1 Message Date
Matysh cdfe02e64d docs(review): record independent green #800 r3 2026-10-05 20:21:55 +03:00
Matysh 07c885435a test(zigbee): settle capability replies before age fixture (#800)
Issue: #800
User-Visible: no
2026-10-05 20:18:08 +03:00
Matysh 67af859e8c fix(zigbee): allow explicit retry after transient reload failure (#800)
Issue: #800
User-Visible: yes
2026-10-05 20:12:25 +03:00
Matysh 4a7abf531b fix(zigbee): restore observers after integration reload (#800)
Issue: #800
User-Visible: yes
2026-10-05 20:08:37 +03:00
Matysh 379de706d2 feat(zigbee): keep route scans in background HA jobs (#800)
Issue: #800
User-Visible: yes
2026-10-05 19:57:28 +03:00
Matysh 1faed2af7d Release v1.80.0-beta.2 candidate
Проверка (CI) / Геометрия: TS/Python parity исполнена (push) Canceled after 0s
Проверка (CI) / Предполёт: документация, провенанс, процесс (push) Canceled after 0s
Проверка (CI) / Классификация изменённых файлов (push) Canceled after 0s
Проверка (CI) / Переиспользование: это дерево уже проверено (push) Canceled after 0s
Проверка (CI) / HACS: валидация репозитория (push) Canceled after 0s
Проверка (CI) / Hassfest: манифест интеграции (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (1/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (2/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (3/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (4/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (5/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (6/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Фронтенд: типы, юниты, мутанты, синхрон бандла (push) Canceled after 0s
Проверка (CI) / Бандл головы dev для стенда (push) Canceled after 0s
Проверка (CI) / Смоки в браузере (шард 1 из 3) (push) Canceled after 0s
Проверка (CI) / Смоки в браузере (шард 2 из 3) (push) Canceled after 0s
Проверка (CI) / Смоки в браузере (шард 3 из 3) (push) Canceled after 0s
Проверка (CI) / Смоки: все шарды зелёные (push) Canceled after 0s
Проверка (CI) / Golden-кадры против принятых эталонов (push) Canceled after 0s
Проверка (CI) / Перф-смок: бюджет времени кадра (push) Canceled after 0s
Проверка (CI) / Бэкенд: pytest в Home Assistant (push) Canceled after 0s
Проверка (CI) / Доказательство выполненных проверок (push) Canceled after 0s
Express beta approved by owner: targeted Zigbee units, typecheck/build and topology smoke; full exact-SHA Validate remains required.

Release: v1.80.0-beta.2
Issue: #799
User-Visible: yes
2026-10-05 16:38:45 +03:00
claude[bot] 343449e694 docs: accept derived artifacts on dev for v1.80.0-beta.2
Производные артефакты беты — одним коммитом на dev (PROCESS.md §8, §11.4, #697).
Прогон: https://github.com/Matysh/houseplan-card/actions/runs/37317971759
Скриншоты документации: отпечаток исходников; изменённые кадры: нет.

Issue: #697
User-Visible: no
2026-10-05 13:37:18 +00:00
Matysh 9722153e01 docs(review): record independent local review for #799
Issue: #799
User-Visible: no
2026-10-05 16:34:50 +03:00
Matysh 0f77b921f6 fix(zigbee): allow slow route scans without extending transport stalls
Issue: #799
User-Visible: yes
2026-10-05 16:33:06 +03:00
Matysh e69b3f2009 Release v1.80.0-beta.1 candidate: record owner-approved ship review
The owner explicitly authorized manual ship review with an independent agent
after the external model failed before reading code. #767 is green, H/M/L 0.
Product, versions and generated bundle remain identical to 7341ecf9.
Full exact-SHA Validate is required again before publication.

Release: v1.80.0-beta.1
Issue: #767
User-Visible: no
2026-10-05 16:02:08 +03:00
Matysh 7341ecf9c5 Release v1.80.0-beta.1 candidate
Prepare the next beta from integrated dev: provider-confirmed Zigbee routes,
LED zoom optimization and on-core colour, plus test/process fixes.
Synchronize seven version fields, both changelogs, release notes, status,
generated bundles and measured ratchets. No new feature source in this commit.

Local checks: bundle:release PASS; 117 selected unit tests PASS;
smoke_zigbee_topology_hover (547 checks), smoke_led_strip_tube and
smoke_led_zoom_quality PASS; check-docs --screenshots=strict PASS;
release-contract v1.80.0-beta.1 PASS. Full exact-SHA CI required before tag.
Derived docs: run 37310388990, unchanged PNGs; fingerprint-only commit fd406acea.
Batch ship review for #767 remains required before publication.

Release: v1.80.0-beta.1
Issue: #767
Issue: #789
Issue: #790
Issue: #791
Issue: #793
Issue: #794
Issue: #795
Issue: #798
User-Visible: yes
2026-10-05 15:37:57 +03:00
claude[bot] fd406acea2 docs: accept derived artifacts on dev for v1.80.0-beta.1
Производные артефакты беты — одним коммитом на dev (PROCESS.md §8, §11.4, #697).
Прогон: https://github.com/Matysh/houseplan-card/actions/runs/37310388990
Скриншоты документации: отпечаток исходников; изменённые кадры: нет.

Issue: #697
User-Visible: no
2026-10-05 12:35:58 +00:00
claude[bot] 33022ff946 docs(reviews): индекс после сдвига каталога (#798)
Issue: #798
User-Visible: no
2026-10-05 15:15:20 +03:00
Matysh 55ac10be3c chore(golden): accept provider-route hint and publish self-review (#798)
Reviewed the complete attested WSL capture on published 22828495b.
Only general-color-popover-desktop-en changes: the Zigbee hint describes
provider-confirmed routes rather than observed neighbors. Preserve the other
199 PNGs; 107 byte-identical witnesses, floor 10. No threshold/matrix changes.
Author self-review and dev merge are explicitly authorized by the owner.

Issue: #798
User-Visible: no
Release: v1.79.0
Baseline-Reviewed-Local: sha256:c0d5ed83d3bf2591a21fff465403ce4ab71c10df781a78736cf690a578a5df52
2026-10-05 15:15:19 +03:00
Matysh 22828495bb chore(zigbee): account for measured provider-route editor graph growth
Keep the 500-byte noise guard and 2000-byte band; measured 242382 B gzip
leaves 1018 B under the revised lazy-editor ceiling plus band.
Absolute initial View budget stays unchanged.

Issue: #798
User-Visible: no
2026-10-05 15:04:19 +03:00
Matysh 370c082f31 feat(zigbee): show provider-confirmed parents and coordinator routes
Replace inferred BFS topology with confirmed end-device parents and active
router routes from ZHA and Zigbee2MQTT. Fail closed on ambiguous evidence,
preserve stale snapshots, and request routing tables without hover traffic.
Use solid LQI-coloured arrows, plan-scaled unknown-LQI outlines, and named
unplaced targets. Add provider/runtime/visual regression coverage.

Owner authorized author self-review and merge to dev while the review model
is unavailable; no release or issue closure is included.

Issue: #798
User-Visible: yes
2026-10-05 14:57:23 +03:00
Matysh 0d64547643 docs(reviews): publish independent reviews for #794 and #795
Record the owner's manual-integration exception and regenerate the review
index for the combined dev candidate. Neither report claims a pipeline verdict.

Issue: #794
Issue: #795
User-Visible: no
2026-10-05 11:30:17 +03:00
Matysh 2ac221d28b Merge reviewed infra fixes #794 and #795 for owner-authorized integration
Preserve both independently reviewed code commits without rewriting history.
The owner explicitly approved manual integration after the review model failed.
The combined candidate must pass exact-SHA Validate before the dev push.

Issue: #794
Issue: #795
User-Visible: no
2026-10-05 11:28:49 +03:00
Matysh d19bac3966 test: prove static LED disconnect owns disposal
Issue: #794
User-Visible: no
2026-10-05 11:09:15 +03:00
Matysh aef02229c6 fix(ci): give nightly mutation shards headroom and report cancellation accurately
Split the full registry into ten shards without increasing the one-hour
limit. Preserve summary and step outcome separately so cancellation after
194/194 remains red without claiming the summary was missing.

Issue: #795
User-Visible: no
2026-10-05 11:04:29 +03:00
Matysh 865312e0b0 docs(reviews): record owner-authorized self-review for #793
Issue: #793
User-Visible: no
2026-10-05 09:39:44 +03:00
Matysh 841bad4e79 fix(process): drain label input before reporting guard membership (#793)
Avoid grep -q closing the pipe before printf completes under pipefail.
Exercise the actual guard with a large label snapshot and retain refusal cases.

Issue: #793
User-Visible: no
2026-10-05 09:29:54 +03:00
Matysh 9ebc430983 test(process): align publication summary assertions (#767)
Проверка (CI) / Предполёт: документация, провенанс, процесс (push) Canceled after 0s
Проверка (CI) / Классификация изменённых файлов (push) Canceled after 0s
Проверка (CI) / Переиспользование: это дерево уже проверено (push) Canceled after 0s
Проверка (CI) / HACS: валидация репозитория (push) Canceled after 0s
Проверка (CI) / Hassfest: манифест интеграции (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (1/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (2/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (3/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (4/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (5/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (6/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Фронтенд: типы, юниты, мутанты, синхрон бандла (push) Canceled after 0s
Проверка (CI) / Бандл головы dev для стенда (push) Canceled after 0s
Проверка (CI) / Смоки в браузере (шард 1 из 3) (push) Canceled after 0s
Проверка (CI) / Смоки в браузере (шард 2 из 3) (push) Canceled after 0s
Проверка (CI) / Смоки в браузере (шард 3 из 3) (push) Canceled after 0s
Проверка (CI) / Смоки: все шарды зелёные (push) Canceled after 0s
Проверка (CI) / Golden-кадры против принятых эталонов (push) Canceled after 0s
Проверка (CI) / Перф-смок: бюджет времени кадра (push) Canceled after 0s
Проверка (CI) / Геометрия: TS/Python parity исполнена (push) Canceled after 0s
Проверка (CI) / Бэкенд: pytest в Home Assistant (push) Canceled after 0s
Проверка (CI) / Доказательство выполненных проверок (push) Canceled after 0s
Keep success and push-refusal assertions in sync with the explicit beta heading.

Issue: #767
User-Visible: no
2026-10-05 08:39:31 +03:00
Matysh 0a098c1e51 docs(process): align reusable ship-review header (#767)
Issue: #767
User-Visible: no
2026-10-05 08:34:38 +03:00
Matysh cf1c90fb5b chore(process): align ship review guidance and guard inventory counts (#767)
Clarify nightly review and beta coverage without changing gates or schedules.
Cover the real night/beta publication summaries and reject stale category
counts, totals and membership in the browser-guard documentation.

Issue: #767
User-Visible: no
2026-10-05 08:33:38 +03:00
claude[bot] 7fb20c658b docs(reviews): индекс после сдвига каталога (#791)
Проверка (CI) / Предполёт: документация, провенанс, процесс (push) Canceled after 0s
Проверка (CI) / Классификация изменённых файлов (push) Canceled after 0s
Проверка (CI) / Переиспользование: это дерево уже проверено (push) Canceled after 0s
Проверка (CI) / HACS: валидация репозитория (push) Canceled after 0s
Проверка (CI) / Hassfest: манифест интеграции (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (1/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (2/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (3/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (4/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (5/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (6/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Фронтенд: типы, юниты, мутанты, синхрон бандла (push) Canceled after 0s
Проверка (CI) / Бандл головы dev для стенда (push) Canceled after 0s
Проверка (CI) / Смоки в браузере (шард 1 из 3) (push) Canceled after 0s
Проверка (CI) / Смоки в браузере (шард 2 из 3) (push) Canceled after 0s
Проверка (CI) / Смоки в браузере (шард 3 из 3) (push) Canceled after 0s
Проверка (CI) / Смоки: все шарды зелёные (push) Canceled after 0s
Проверка (CI) / Golden-кадры против принятых эталонов (push) Canceled after 0s
Проверка (CI) / Перф-смок: бюджет времени кадра (push) Canceled after 0s
Проверка (CI) / Геометрия: TS/Python parity исполнена (push) Canceled after 0s
Проверка (CI) / Бэкенд: pytest в Home Assistant (push) Canceled after 0s
Проверка (CI) / Доказательство выполненных проверок (push) Canceled after 0s
Issue: #791
User-Visible: no
2026-10-04 17:13:49 +03:00
Matysh 05c8e164c2 docs(review): self-review LED mutation witness by owner exception (#791) 2026-10-04 17:13:49 +03:00
Matysh 9deb1dcfd6 test: keep LED owner mutant type-correct for runtime proof (#791)
Issue: #791
User-Visible: no
2026-10-04 17:10:40 +03:00
Matysh a5e06b0527 test: restore the missing LED runtime owner witness (#791)
Exercise a non-null marker absent from the render-device roster alongside a
valid lit neighbour. The previous null-marker smoke returned before the
mutated guard, so it never tested this defensive consumer boundary.
Move this witness to the direct Node runtime suite and update its inventory.

Issue: #791
User-Visible: no
2026-10-04 17:09:23 +03:00
Matysh 14f5b90c24 docs(review): record Windows harness portability limitation (#789)
Проверка (CI) / Предполёт: документация, провенанс, процесс (push) Canceled after 0s
Проверка (CI) / Классификация изменённых файлов (push) Canceled after 0s
Проверка (CI) / Переиспользование: это дерево уже проверено (push) Canceled after 0s
Проверка (CI) / HACS: валидация репозитория (push) Canceled after 0s
Проверка (CI) / Hassfest: манифест интеграции (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (1/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (2/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (3/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (4/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (5/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (6/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Фронтенд: типы, юниты, мутанты, синхрон бандла (push) Canceled after 0s
Проверка (CI) / Бандл головы dev для стенда (push) Canceled after 0s
Проверка (CI) / Смоки в браузере (шард 1 из 3) (push) Canceled after 0s
Проверка (CI) / Смоки в браузере (шард 2 из 3) (push) Canceled after 0s
Проверка (CI) / Смоки в браузере (шард 3 из 3) (push) Canceled after 0s
Проверка (CI) / Смоки: все шарды зелёные (push) Canceled after 0s
Проверка (CI) / Golden-кадры против принятых эталонов (push) Canceled after 0s
Проверка (CI) / Перф-смок: бюджет времени кадра (push) Canceled after 0s
Проверка (CI) / Геометрия: TS/Python parity исполнена (push) Canceled after 0s
Проверка (CI) / Бэкенд: pytest в Home Assistant (push) Canceled after 0s
Проверка (CI) / Доказательство выполненных проверок (push) Canceled after 0s
Issue: #789
User-Visible: no
2026-10-04 16:21:52 +03:00
Matysh 4de49e0db2 docs(review): accept LED zoom-only performance improvement (#789)
Issue: #789
User-Visible: no
2026-10-04 16:14:57 +03:00
Matysh 80cba30895 perf(light): reduce LED gradient paint only during scale changes
Retain the 48-band DOM and exact idle raster, paint 24 midpoint bands during actual zoom, and restore after 160 ms. Keep input, HA and lifecycle guards observable; measure the full camera/restore/restart cycle without relaxing historical budgets.

Issue: #789
User-Visible: yes
2026-10-04 15:54:34 +03:00
Matysh 96f89717bd docs(review): approve zoom-only LED quality specification for #789 2026-10-04 15:39:26 +03:00
Matysh d8949cfffc test(light): preserve empty render contract and guard late static imports
Follow the render-local barrier wrapper without weakening empty-space or
confirmation assertions. Register the cold-import connection guard mutation.

Issue: #789
User-Visible: no
2026-10-04 07:17:00 +03:00
Matysh 7777b8a0a8 perf(light): batch source entry and reuse render-local barriers
Coalesce source-entry updates without changing the 500 ms transition or
field geometry. Resolve shared barrier revisions once within a synchronous
render and always recheck content on the next pass. Release main/static
LED owners on no-strip exits and static owner/config teardown.

Protect scheduling, real browser fades, cold imports and the bundled
render-pass wiring. Performance acceptance remains a separate exact-SHA
full Linux run; this commit alone does not assert that AC3 has passed.

Issue: #789
User-Visible: yes
2026-10-04 07:13:27 +03:00
Matysh 45aeadb38e docs(review): approved independent specification review for #789
Issue: #789
User-Visible: no
2026-10-04 06:52:27 +03:00
Matysh b07ef67dcb docs(review): independent approved code review for #790
Проверка (CI) / Предполёт: документация, провенанс, процесс (push) Canceled after 0s
Проверка (CI) / Классификация изменённых файлов (push) Canceled after 0s
Проверка (CI) / Переиспользование: это дерево уже проверено (push) Canceled after 0s
Проверка (CI) / HACS: валидация репозитория (push) Canceled after 0s
Проверка (CI) / Hassfest: манифест интеграции (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (1/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (2/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (3/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (4/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (5/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (6/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Фронтенд: типы, юниты, мутанты, синхрон бандла (push) Canceled after 0s
Проверка (CI) / Бандл головы dev для стенда (push) Canceled after 0s
Проверка (CI) / Смоки в браузере (шард 1 из 3) (push) Canceled after 0s
Проверка (CI) / Смоки в браузере (шард 2 из 3) (push) Canceled after 0s
Проверка (CI) / Смоки в браузере (шард 3 из 3) (push) Canceled after 0s
Проверка (CI) / Смоки: все шарды зелёные (push) Canceled after 0s
Проверка (CI) / Golden-кадры против принятых эталонов (push) Canceled after 0s
Проверка (CI) / Перф-смок: бюджет времени кадра (push) Canceled after 0s
Проверка (CI) / Геометрия: TS/Python parity исполнена (push) Canceled after 0s
Проверка (CI) / Бэкенд: pytest в Home Assistant (push) Canceled after 0s
Проверка (CI) / Доказательство выполненных проверок (push) Canceled after 0s
Issue: #790
User-Visible: no
2026-10-04 06:48:42 +03:00
Matysh d58a5d0dad chore(golden): accept active LED core colour (#790)
Accept only the six reviewed active-LED frames from the complete canonical
WSL capture. All other baseline PNG bytes are preserved. Both off-LED
captures are byte-identical to their reviewed baselines.

Root and an independent reviewer inspected the candidates and diffs.
Separate DOM-white controls localize the intended core colour change;
residual old-baseline differences remain at Glow rims (48/74/212 pixels
above delta 10, all below the unchanged .0005 ratio threshold). Rectangle
control also records 10 baseline-to-white residual pixels and five
white-to-colour raster/repaint pixels outside the core near the door.
No claim is made that the old-baseline RGBA diff is exclusively the core,
or that the residual's historical cause has been established. No golden
threshold, product geometry, field alpha or field algorithm is changed.

Issue: #790
User-Visible: no
Release: v1.79.0
Baseline-Reviewed-Local: sha256:aaf9ebcb3613071dc8048506f68a889dab6bdea8e62ba5ce677b12d611e9eae7
2026-10-04 00:13:47 +03:00
Matysh 181b61ae8e fix(led): colour the active core from its resolved light
Keep off and unavailable presentation unchanged. Extend the rendered colour
and surface matrix and retain the independent white-source geometry oracle.

Issue: #790
User-Visible: yes
2026-10-03 23:54:21 +03:00
Matysh 24e48935c3 Release v1.79.0 candidate: reconcile mirrored main workflow history
Полные бенчмарки производительности / Бенчмарки рендера и геометрии (blend) (push) Canceled after 0s
Полные бенчмарки производительности / Бенчмарки рендера и геометрии (interaction) (push) Canceled after 0s
Полные бенчмарки производительности / Бенчмарки рендера и геометрии (isometric) (push) Canceled after 0s
Полные бенчмарки производительности / Бенчмарки рендера и геометрии (isometric-backdrop) (push) Canceled after 0s
Полные бенчмарки производительности / Бенчмарки рендера и геометрии (isometric-stage3) (push) Canceled after 0s
Полные бенчмарки производительности / Бенчмарки рендера и геометрии (large-house) (push) Canceled after 0s
Полные бенчмарки производительности / Бенчмарки рендера и геометрии (led-strips) (push) Canceled after 0s
Полные бенчмарки производительности / Бенчмарки рендера и геометрии (overlay) (push) Canceled after 0s
Полные бенчмарки производительности / Бенчмарки рендера и геометрии (space-glow) (push) Canceled after 0s
Проверка (CI) / Предполёт: документация, провенанс, процесс (push) Canceled after 0s
Полные бенчмарки производительности / Бенчмарки рендера и геометрии (plan-snap) (push) Canceled after 0s
Полные бенчмарки производительности / Бенчмарки рендера и геометрии (space-default) (push) Canceled after 0s
Проверка (CI) / Классификация изменённых файлов (push) Canceled after 0s
Проверка (CI) / Переиспользование: это дерево уже проверено (push) Canceled after 0s
Проверка (CI) / HACS: валидация репозитория (push) Canceled after 0s
Проверка (CI) / Hassfest: манифест интеграции (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (1/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (2/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (3/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (4/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (5/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (6/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Фронтенд: типы, юниты, мутанты, синхрон бандла (push) Canceled after 0s
Проверка (CI) / Бандл головы dev для стенда (push) Canceled after 0s
Проверка (CI) / Смоки в браузере (шард 1 из 3) (push) Canceled after 0s
Проверка (CI) / Смоки в браузере (шард 2 из 3) (push) Canceled after 0s
Проверка (CI) / Смоки в браузере (шард 3 из 3) (push) Canceled after 0s
Проверка (CI) / Смоки: все шарды зелёные (push) Canceled after 0s
Проверка (CI) / Golden-кадры против принятых эталонов (push) Canceled after 0s
Проверка (CI) / Перф-смок: бюджет времени кадра (push) Canceled after 0s
Проверка (CI) / Геометрия: TS/Python parity исполнена (push) Canceled after 0s
Проверка (CI) / Бэкенд: pytest в Home Assistant (push) Canceled after 0s
Проверка (CI) / Доказательство выполненных проверок (push) Canceled after 0s
Merge the previously mirrored #716 workflow callers. Both already match dev
byte-for-byte; the candidate Git tree is unchanged. This makes the stable
promotion a fast-forward without rewriting main or dev history.

Release: v1.79.0
Issue: #716
Issue: #780
Issue: #788
User-Visible: no
2026-10-03 22:26:34 +03:00
Matysh 6b0d7d66dd Release v1.79.0 candidate
Promote published v1.79.0-beta.7 without feature-source changes.
Aggregate stable highlights since v1.78.0 and rebuild versioned assets.

Release: v1.79.0
Issue: #780
Issue: #788
User-Visible: yes
2026-10-03 22:24:42 +03:00
Matysh 0588fa8f0a Release v1.79.0-beta.7 candidate
Release: v1.79.0-beta.7
Issue: #788
User-Visible: yes
2026-10-03 20:12:10 +03:00
claude[bot] 019cfa5c5a docs: accept derived artifacts on dev for v1.79.0-beta.7
Производные артефакты беты — одним коммитом на dev (PROCESS.md §8, §11.4, #697).
Прогон: https://github.com/Matysh/houseplan-card/actions/runs/37139464966
Скриншоты документации: отпечаток исходников; изменённые кадры: нет.

Issue: #697
User-Visible: no
2026-10-03 17:11:26 +00:00
Matysh 5fff48f7b1 docs(led): record full regression acceptance and self-review
Issue: #788
User-Visible: no
2026-10-03 19:38:27 +03:00
Matysh a74a50d331 test(led): align mutation witness after occluder filtering
Keep the executable shared-masonry proof without adding new text anchors
against the monolith. Update the unchanged circle-event mutation oracle.

Issue: #788
User-Visible: no
2026-10-03 19:21:46 +03:00
Matysh 416d2fae71 perf(led): avoid redundant tube and barrier calculations
Preserve exact light fields while culling provably distant occluders,
reusing physical tube paths across camera updates and excluding LED emitter
data from aligned architectural fingerprints. Cover output equivalence,
in-place invalidation, resize tags and hyphenated benchmark chunk hashes.

Issue: #788
User-Visible: yes
2026-10-03 19:18:49 +03:00
Matysh 08bc58cc0e chore(golden): accept corrected LED end-cap feather
Reviewed Linux Validate 37134548622 on c142e4f7. The right free cap now
fades through the valid wall-circle crescent instead of cutting it away.
One declared frame changed; 199 baselines retained, 101 exact witnesses.
Private household screenshots were not uploaded or committed.

Issue: #788
User-Visible: no
Release: v1.79.0-beta.7
Baseline-Reviewed: https://github.com/Matysh/houseplan-card/actions/runs/37134548622
2026-10-03 18:58:09 +03:00
Matysh c142e4f7b5 fix(led): preserve strip corners and feather the complete light field
Keep real end and corner emitters, robust decimal joins and wall-circle
sweep events. Render one positive-winding compound visibility clip so
Chromium cannot cancel or cut away overlapping light regions.

Add independent pixel oracles for glow falloff and wall-following tubes.
Replace the lossy fan-count limit with explicit cached-path bounds while
retaining the original timing and warm-cycle heap-growth limits.

Issue: #788
User-Visible: yes
2026-10-03 18:46:35 +03:00
Matysh ad10a5b099 chore(release): prepare v1.79.0-beta.6
Build the beta candidate, date both changelogs, refresh release notes and tighten release ratchets.

Release: v1.79.0-beta.6
Issue: #786
Issue: #787
User-Visible: yes
2026-10-03 17:58:43 +03:00
Matysh 76310fc981 docs(screenshots): обновить fingerprint после #787 2026-10-03 17:39:20 +03:00
Matysh 0f466743c3 chore(golden): эталон прямоугольной LED-ленты (#787)
Issue: #787
User-Visible: no
Release: v1.79.0-beta.6
Baseline-Reviewed-Local: sha256:44eb42f580fc9f973509af68f47565b4cad2a9a6200e445e728f6198e785ef98
2026-10-03 17:26:56 +03:00
Matysh 35ef231191 fix(led): сохранить прямоугольник через проёмы (#787)
Issue: #787
User-Visible: yes
2026-10-03 17:17:50 +03:00
Matysh fab28af26f docs(screenshots): обновить fingerprint после #786 2026-10-03 17:00:16 +03:00
Matysh a54429d4a3 chore(golden): эталон гладких торцов LED-ленты (#786)
Issue: #786
User-Visible: no
Release: v1.79.0-beta.6
Baseline-Reviewed-Local: sha256:1c7933e47079b24064413013a999ed10376a0aad05f8c8f57f1c683bb64c6ae7
2026-10-03 16:51:39 +03:00
Matysh 9598768167 fix(led): сгладить торцы поля свечения (#786)
Issue: #786
User-Visible: yes
2026-10-03 16:41:10 +03:00
Matysh aa1105468b chore(release): prepare v1.79.0-beta.5
Проверка (CI) / Предполёт: документация, провенанс, процесс (push) Canceled after 0s
Проверка (CI) / Классификация изменённых файлов (push) Canceled after 0s
Проверка (CI) / Переиспользование: это дерево уже проверено (push) Canceled after 0s
Проверка (CI) / HACS: валидация репозитория (push) Canceled after 0s
Проверка (CI) / Hassfest: манифест интеграции (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (1/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (2/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (3/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (4/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (5/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (6/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Фронтенд: типы, юниты, мутанты, синхрон бандла (push) Canceled after 0s
Проверка (CI) / Бандл головы dev для стенда (push) Canceled after 0s
Проверка (CI) / Смоки в браузере (шард 1 из 3) (push) Canceled after 0s
Проверка (CI) / Смоки в браузере (шард 2 из 3) (push) Canceled after 0s
Проверка (CI) / Смоки в браузере (шард 3 из 3) (push) Canceled after 0s
Проверка (CI) / Смоки: все шарды зелёные (push) Canceled after 0s
Проверка (CI) / Golden-кадры против принятых эталонов (push) Canceled after 0s
Проверка (CI) / Перф-смок: бюджет времени кадра (push) Canceled after 0s
Проверка (CI) / Геометрия: TS/Python parity исполнена (push) Canceled after 0s
Проверка (CI) / Бэкенд: pytest в Home Assistant (push) Canceled after 0s
Проверка (CI) / Доказательство выполненных проверок (push) Canceled after 0s
Build the beta candidate, date both changelogs, refresh release notes and tighten release ratchets.

Release: v1.79.0-beta.5
Issue: #785
User-Visible: yes
2026-10-03 14:24:42 +03:00
claude[bot] 42d1a8a9dc docs: accept derived artifacts on dev for v1.79.0-beta.5
Производные артефакты беты — одним коммитом на dev (PROCESS.md §8, §11.4, #697).
Прогон: https://github.com/Matysh/houseplan-card/actions/runs/37119340533
Скриншоты документации: отпечаток исходников; изменённые кадры: нет.

Issue: #697
User-Visible: no
2026-10-03 11:22:39 +00:00
Claude 2022e183a5 ci: mirror thin workflow callers in main after #716
Проверка (CI) / Предполёт: документация, провенанс, процесс (push) Canceled after 0s
Проверка (CI) / Классификация изменённых файлов (push) Canceled after 0s
Проверка (CI) / Переиспользование: это дерево уже проверено (push) Canceled after 0s
Проверка (CI) / HACS: валидация репозитория (push) Canceled after 0s
Проверка (CI) / Hassfest: манифест интеграции (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (1/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (2/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (3/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (4/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (5/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Мутанты по диффу (6/6): затронутые свидетели краснеют (push) Canceled after 0s
Проверка (CI) / Фронтенд: типы, юниты, мутанты, синхрон бандла (push) Canceled after 0s
Проверка (CI) / Бандл головы dev для стенда (push) Canceled after 0s
Проверка (CI) / Смоки в браузере (шард 1 из 3) (push) Canceled after 0s
Проверка (CI) / Смоки в браузере (шард 2 из 3) (push) Canceled after 0s
Проверка (CI) / Смоки в браузере (шард 3 из 3) (push) Canceled after 0s
Проверка (CI) / Смоки: все шарды зелёные (push) Canceled after 0s
Проверка (CI) / Golden-кадры против принятых эталонов (push) Canceled after 0s
Проверка (CI) / Перф-смок: бюджет времени кадра (push) Canceled after 0s
Проверка (CI) / Геометрия: TS/Python parity исполнена (push) Canceled after 0s
Проверка (CI) / Бэкенд: pytest в Home Assistant (push) Canceled after 0s
Проверка (CI) / Доказательство выполненных проверок (push) Canceled after 0s
Кнопку и запуск workflow_dispatch GitHub даёт только workflow, чей файл
лежит в ветке по умолчанию: ship-review.yml (#696) и beta-derived.yml (#697)
жили только в dev и не запускались вовсе. Два тонких вызывающих файла —
кнопка, входы, run-name, потолок прав и concurrency; тела `_ship-review.yml`
и `_beta-derived.yml` вызываются `@dev`. Файлы байт-в-байт равны ветке
задачи issue/716-register-dispatch-workflows@5451542e. В dev она сливается
после этого коммита: в обратном порядке preflight workflow_sync на dev
нашёл бы файлы, которых нет в main.

Issue: #716
User-Visible: no
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018qZfe7YS4rqEMKoVeS3GKd
2026-09-30 21:40:31 +03:00
238 changed files with 12715 additions and 3980 deletions
+17 -18
View File
@@ -8,15 +8,14 @@ name: "Мутационный гейт · тело (#623)"
# Прогон дорогой и проверяет не продукт, а тесты, поэтому он не входит ни в
# Validate, ни в цикл разработки, ни в релизный гейт (#513, решение владельца
# 09.09): каждую ночь по расписанию, отказ — issue с отчётом (#472).
# Мутанты, задетые диффом, конвейер ревью и слияние гоняют отдельно на своём
# кандидате (#510); кандидат беты, `full=true` и ночной Validate их не
# запрашивают (#601) — ночью достаточно этого полного реестра.
# С #709 ревью, слияние, кандидат беты, `full=true` и ночной Validate
# мутантов не запрашивают — ночью достаточно этого полного реестра.
# Дешёвая половина — «якоря патчей живы, guard-файлы существуют» — идёт с
# обычными юнитами: test/mutation-gate.test.mjs.
#
# #332: бандл собирается только мутантам с браузерным гвардом (guardNeedsBundle),
# компиляция тестов в worktree стартует с тёплого test-build (инкрементальный
# tsc), а реестр режется на четыре чересполосных шарда — полный прогон
# tsc), а реестр режется на чересполосные шарды — полный прогон
# укладывается в десятки минут вместо часов. Локальный дифф-режим:
# node scripts/mutation-gate.mjs --changed origin/dev..HEAD
#
@@ -110,20 +109,20 @@ jobs:
fi
mutants:
name: "Мутанты: каждый обязан красить тесты (шард ${{ matrix.shard }} из 6)"
name: "Мутанты: каждый обязан красить тесты (шард ${{ matrix.shard }} из 10)"
needs: material
if: needs.material.outputs.reuse != 'true'
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
shard: [1, 2, 3, 4, 5, 6]
# Шесть чересполосных шардов (#604): при четырёх шард нёс ~203 мутанта из
# 810 и рос с реестром — 42 мин 10.09, 57 мин 20.09, 61 мин 21.09, и шард
# 2/4 был снят по потолку без единого FAIL. Делитель тот же, что у
# `changed_mutants` в Validate; число шардов повторяется в `--shard=i/6`,
# `--shards=6` и имени job — тест `mutation-gate.test.mjs` держит их
# равными. Бандл собирают только браузерные гварды. Час — потолок против
shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
# #795: ночь 05.10 (1164 мутанта) заняла 42–60 мин на шести шардах;
# четвёртый отменён по потолку. Десять шардов оставляют 116–117 мутантов
# вместо 194. Оценка по длительностям той ночи — максимум около 39 мин
# с запасом на setup; это прогноз, фактическое время проверяет следующая ночь.
# Матрицу, делители runner/evidence и имя job держит mutation-gate.test.mjs.
# Бандл собирают только браузерные гварды. Час — потолок против
# зависшего Chromium, а не бюджет шарда: шард, упёршийся в него, — сигнал
# снова делить, и отчёт (#472) называет такой шард прерванным, не «ok».
timeout-minutes: 60
@@ -178,7 +177,7 @@ jobs:
run: |
mkdir -p artifacts/mutation-shard-${{ matrix.shard }}
set -o pipefail
node scripts/mutation-gate.mjs --shard=${{ matrix.shard }}/6 2>&1 | tee artifacts/mutation-shard-${{ matrix.shard }}/mutation-shard-${{ matrix.shard }}.log
node scripts/mutation-gate.mjs --shard=${{ matrix.shard }}/10 2>&1 | tee artifacts/mutation-shard-${{ matrix.shard }}/mutation-shard-${{ matrix.shard }}.log
# Исход шага едет в evidence (#604): снятый по timeout-minutes шаг даёт
# `cancelled`, и агрегатор отвергает такой шард как неполный — лог без
# строк FAIL сам по себе зелёным не считается.
@@ -191,7 +190,7 @@ jobs:
--tree=${{ needs.material.outputs.tree }} \
--workflow-sha=${{ job.workflow_sha }} \
--run-id=${{ github.run_id }} --run-attempt=${{ github.run_attempt }} \
--shard=${{ matrix.shard }} --shards=6 \
--shard=${{ matrix.shard }} --shards=10 \
--outcome=${{ steps.gate.outcome }}
- name: Сохранить лог и identity шарда
if: always()
@@ -202,7 +201,7 @@ jobs:
if-no-files-found: warn
retention-days: 30
# Результат нельзя приписывать material, пока не доказаны все шесть шардов —
# Результат нельзя приписывать material, пока не доказаны все десять шардов —
# каждый с identity и с дошедшим до конца прогоном (#549, #604).
# always() нужен при красном мутанте: лог красного шарда всё равно evidence.
evidence:
@@ -228,13 +227,13 @@ jobs:
- name: Проверить полноту и identity
run: |
node scripts/mutation-gate-report.mjs --verify-only \
--logs=artifacts/mutation-logs --shards=6 \
--logs=artifacts/mutation-logs --shards=10 \
--sha=${{ needs.material.outputs.sha }} \
--tree=${{ needs.material.outputs.tree }} \
--workflow-sha=${{ job.workflow_sha }} \
--run-id=${{ github.run_id }} --run-attempt=${{ github.run_attempt }}
# #620: маркер пишется ТОЛЬКО после зелёного агрегатора — все шесть шардов
# #620: маркер пишется ТОЛЬКО после зелёного агрегатора — все десять шардов
# доказаны на одном material. Красный или неполный прогон маркера не оставляет,
# и следующая ночь гонит реестр заново.
green_marker:
@@ -306,7 +305,7 @@ jobs:
run: |
mkdir -p artifacts
node scripts/mutation-gate-report.mjs \
--require-evidence --logs=artifacts/mutation-logs --shards=6 \
--require-evidence --logs=artifacts/mutation-logs --shards=10 \
--sha=${{ needs.material.outputs.sha }} \
--tree=${{ needs.material.outputs.tree }} \
--workflow-sha=${{ job.workflow_sha }} \
+5 -3
View File
@@ -83,7 +83,9 @@ jobs:
# снимок события об этом не знает, а исполнять отозванный запрос нельзя.
current=$(gh issue view "$NUM" --repo "$REPO" --json labels --jq '.labels[].name')
labels=$(printf '%s\n' "$current" | paste -sd, -)
has() { printf '%s\n' "$current" | grep -qx -- "$1"; }
# Не grep -q: раннее закрытие pipe даёт printf SIGPIPE, а pipefail
# превращает найденную метку в ложный отказ (#793). Читаем до конца.
has() { printf '%s\n' "$current" | grep -Fx -- "$1" > /dev/null; }
BLOCKED=false; EXHAUSTED=false
has blocked && BLOCKED=true
has review-4 && EXHAUSTED=true
@@ -1029,8 +1031,8 @@ jobs:
contents: read
issues: write
needs: [guard, prepare]
# #696: `ship` в рамках сливается без модели — пакетное ревью диапазона
# перед бетой (PROCESS.md §11.7, ship-review.yml).
# #696/#727: `ship` в рамках сливается без модели — пакетное ревью ночью;
# перед бетой проверка покрытия и непрочитанная дельта (PROCESS.md §11.7).
if: needs.prepare.outputs.proceed == 'true' && needs.prepare.outputs.reuse != 'true' && needs.prepare.outputs.ship != 'true'
runs-on: ubuntu-24.04
concurrency:
+10 -5
View File
@@ -1,10 +1,11 @@
name: "Бета: пакетное ревью ship · тело (#716)"
# #696, PROCESS.md §11.7: задачи `track:ship` сливаются без ревью модели —
# правка в механических рамках и зелёный лёгкий Validate. Их код читает одна
# сессия модели перед бетой: все ship-задачи диапазона «прошлый тег..кандидат».
# Гейт публикации беты (`ship-review.mjs check`) требует этот документ, если в
# диапазоне есть ship-задачи.
# правка в механических рамках и зелёный лёгкий Validate. Их код читается
# пакетно ночью; перед бетой — только непрочитанные или изменённые задачи.
# Гейт публикации беты (`ship-review.mjs check`) требует покрытие всех ship-задач
# диапазона «прошлый тег..кандидат»; ночного документа с тем же патч-набором
# достаточно, отдельный документ тега беты нужен не всегда (#727).
#
# Три job, как у release-review.yml (#551, #556): детерминированный вход,
# модель без права записи, детерминированная публикация документа в `dev`.
@@ -375,7 +376,11 @@ jobs:
commit -q -F "$msg"
git diff --name-only "origin/dev...HEAD" | node scripts/review-doc-guard.mjs
if git push -q "https://x-access-token:$TOKEN@github.com/${{ github.repository }}" HEAD:dev 2> "$push_err"; then
echo "### Пакетное ревью ship $TAG" >> "$GITHUB_STEP_SUMMARY"
if [ "$MODE" = "nightly" ]; then
echo "### Ночное пакетное ревью ship" >> "$GITHUB_STEP_SUMMARY"
else
echo "### Предрелизное пакетное ревью ship $TAG" >> "$GITHUB_STEP_SUMMARY"
fi
echo "Задачи $ISSUES · High $high · Medium $medium · Low $low — \`$DOC\` в dev." >> "$GITHUB_STEP_SUMMARY"
echo "::notice::$DOC опубликован: High $high · Medium $medium · Low $low"
exit 0
+14 -7
View File
@@ -608,14 +608,15 @@ patch-id кандидата слияния: вердикт к работе за
| ТЗ | строка «что меняется и чем проверить» в теле issue под `## ТЗ` | «Оценка» (§7.2) и до трёх AC в теле issue под `## ТЗ` | полное ТЗ по §7.1 |
| Ревью ТЗ | нет | нет | да, лимит 4 цикла |
| Локальный гейт | `npm run gate:small` | `npm run gate:small` плюс смоуки `smoke-select` и AC | §8 |
| Код-ревью | до слияния нет; пакетное ревью диапазона перед бетой | модель: корректность и AC | документ ревью, как в §2.7 |
| Код-ревью | до слияния нет; пакетное ревью ночью, перед бетой — проверка покрытия и непрочитанная дельта (§11.7) | модель: корректность и AC | документ ревью, как в §2.7 |
| Лимит циклов код-ревью | — | 2 | 4 |
**Рамки `track:ship`** механические: дифф `src/**` не больше 30 строк, без новых
файлов в `src/**`, без ключей i18n, без полей конфига и без Python. Выход за
рамки переводит задачу в `track:show`. Рамки и слияние `ship` без ревью модели
проверяет и исполняет конвейер (§10.4, #696); код `ship` читает пакетное ревью
диапазона перед бетой (§11.7).
ночью заранее; перед бетой проверяется покрытие и читается непрочитанная дельта
(§11.7).
**Проверка риска по изменённым участкам** (#707). Рамки считают строки и файлы,
но не видят, что именно тронуто: обработчик `pointerdown` в двенадцать строк
@@ -675,7 +676,8 @@ patch-id кандидата слияния: вердикт к работе за
`ux-contract`, `perf-touch`, `undocumented`. Шаг решения по вердикту ставит
`track:ask`, снимает `track:show` и переводит задачу в `S3-spec` комментарием:
критерий словами, документы код-ревью, бюджет. Код остаётся в ветке, полное ТЗ
пишется в теле issue, код класса A не пушится до `S5`; бюджет код-ревью не
пишется в теле issue; до `S5` запрещён push всей ветки, включая тесты и документы
(§11.8), а не только кода класса A; бюджет код-ревью не
обнуляется (§4). Подтверждённый владельцем `show` конвейер не повышает: задача
получает `blocked` и вопрос владельцу с вариантом по умолчанию «повысить до
`ask`». `reclassify` без критерия из списка, на `ask` или на ревью ТЗ —
@@ -1411,7 +1413,7 @@ limit`) и своей логики трека не держит; ответ comp
|---|---|---|---|
| Validate на материале | лёгкий; годится завершённый push-прогон на этом SHA | лёгкий, как у `ship` | лёгкий, как у `ship` (#709) |
| Ребейз до ревью | нет, если `git merge-tree` с `dev` чистый | нет, если чистый | да (#257) |
| Ревью модели | нет — пакетное ревью перед бетой (§11.7) | корректность и AC; окружение — по нужде | полное |
| Ревью модели | нет — пакетное ревью ночью; перед бетой проверка покрытия и непрочитанная дельта (§11.7) | корректность и AC; окружение — по нужде | полное |
| Проверка кандидата слияния | ждёт push-прогон кандидата; dispatch — только если его нет | как у `ship` | как у `ship` (#709) |
Мутантов по диффу нет ни на одном треке (#709, §2.7). Рамки `ship`
@@ -1715,7 +1717,8 @@ Golden, браузерные смоки, performance и полный HA-харн
Это исключение из правила «каждое изменение проходит код-ревью» (§5, §7.1).
Второе такое место — трек `ship` (§5): его ревью не отменяется, а переносится
на пакетное ревью диапазона перед бетой. Здесь же исключение относится только к
на пакетное ревью ночью и проверку покрытия с чтением непрочитанной дельты перед
бетой (§11.7). Здесь же исключение относится только к
окну между `S8-merged` и выпуском.
### 11.5 Независимое ревью линии перед стабильным релизом
@@ -1784,7 +1787,9 @@ action ревью пускает ровно этого бота (`allowed_bots`,
выпуск после такого отказа, исправляют причину и получают новый совместимый
полный зелёный прогон на том же финальном SHA либо на новом SHA кандидата.
### 11.7 Пакетное ревью `ship` перед бетой
<a id="117-пакетное-ревью-ship-перед-бетой"></a>
### 11.7 Пакетное ревью `ship`: ночью и перед бетой
Решение владельца 2026-09-28, issue #696.
@@ -1793,7 +1798,9 @@ action ревью пускает ровно этого бота (`allowed_bots`,
до того, как она уйдёт пользователям беты. Одна сессия на все ship-задачи
диапазона дешевле ревью на каждую, а рамки ship держат объём малым.
**Шаг.** Перед публикацией беты — `ship-review.yml`
**Шаг.** Ночью код читается заранее (режим ниже). Перед публикацией беты
проверяется покрытие; непрочитанные или изменённые после ревью задачи читает
`ship-review.yml`
(`gh workflow run ship-review.yml --ref dev -f tag=vX.Y.Z-beta.N` или кнопка
«Run workflow» в Actions). Это тонкий вызывающий файл, он лежит и в `main`:
без этого GitHub запуск не даёт. Тело `_ship-review.yml` читается из `dev` при
+7
View File
@@ -49,6 +49,10 @@ async def _async_flush_runtime(
writers are independently guarded so one failed store cannot prevent the
other from reaching disk during shutdown.
"""
zigbee = getattr(entry.runtime_data, "zigbee_coordinator", None)
if zigbee is not None:
await zigbee.async_close()
recorder = hass.data.get(DOMAIN, {}).get("trail_recorder")
if recorder is not None:
try:
@@ -111,6 +115,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: HouseplanConfigEntry) ->
_LOGGER.exception("House Plan: virtual-light storage is not readable; using default on")
entry.runtime_data = data
from .zigbee_topology import ZigbeeScanCoordinator
data.zigbee_coordinator = ZigbeeScanCoordinator(hass, entry)
from .radar import RadarCoordinator
data.radar_coordinator = RadarCoordinator(hass, data)
await data.radar_coordinator.async_setup()
+1 -1
View File
@@ -57,7 +57,7 @@ SCHEDULED_GRACE_S = 30 * 24 * 3600
FILES_DIR = "houseplan/files"
ASSETS_DIR = "houseplan/assets"
CONF_ADMIN_ONLY = "admin_only"
VERSION = "1.79.0-beta.4"
VERSION = "1.80.0-beta.2"
DECOR_ASSETS_API_VERSION = 1
SUMMARY_PANEL_API_VERSION = 1
@@ -1,598 +1,598 @@
{
"schema": 1,
"fingerprint": "fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac",
"fingerprint": "1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f",
"entry": "houseplan-card.js",
"panelEntry": "houseplan-panel.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-CDzf9V5z.js",
"houseplan-assets/houseplan-card-DpMO8ZtV.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 300069,
"initialViewGzipBytes": 301006,
"initialPanelFiles": [
"houseplan-assets/houseplan-card-CDzf9V5z.js",
"houseplan-assets/houseplan-card-DpMO8ZtV.js",
"houseplan-panel.js"
],
"initialPanelGzipBytes": 301590,
"initialPanelGzipBytes": 302530,
"initialPanelOnlyFiles": [
"houseplan-panel.js"
],
"initialPanelOnlyGzipBytes": 2324,
"initialPanelOnlyGzipBytes": 2329,
"lazyFiles": [
"houseplan-assets/backdrop-pick-361D_NhT.js",
"houseplan-assets/de-wSrjkMCX.js",
"houseplan-assets/editor-CAHVNjOb.js",
"houseplan-assets/form-kit.styles-Dq1Y4tz1.js",
"houseplan-assets/fr-Cb7RjPXv.js",
"houseplan-assets/furniture-plan-art.generated-DHB0O8RC.js",
"houseplan-assets/houseplan-editor-runtime-D7Nrak81.js",
"houseplan-assets/houseplan-onboarding-runtime-BDfCLIiS.js",
"houseplan-assets/hp-zigbee-topology-overlay-W_gG_T_A.js",
"houseplan-assets/iso-scene-render-CBGc0yON.js",
"houseplan-assets/led-strip-editor-55w_99OW.js",
"houseplan-assets/led-strip-geometry-BcPfXtN-.js",
"houseplan-assets/led-strip-runtime-C0OS8_qS.js",
"houseplan-assets/live-interaction-runtime-CgDUYt60.js",
"houseplan-assets/moon-runtime-DkqNfOp0.js",
"houseplan-assets/namespace-language-BPjMJUHI.js",
"houseplan-assets/pdf-export-UdR2EXb9.js",
"houseplan-assets/space-editor-N5uYQl3H.js",
"houseplan-assets/summary-panel-runtime-loaded-BcDAIp5L.js",
"houseplan-assets/zigbee-topology-Co7YPeRf.js",
"houseplan-assets/zigbee-topology-runtime-ByS3kW9n.js"
"houseplan-assets/backdrop-pick-Cbg_afD8.js",
"houseplan-assets/de-D0loWXPu.js",
"houseplan-assets/editor-D8kAiNl5.js",
"houseplan-assets/form-kit.styles-C2rEYmUr.js",
"houseplan-assets/fr-CePePBlS.js",
"houseplan-assets/furniture-plan-art.generated-Ce2oI6mt.js",
"houseplan-assets/houseplan-editor-runtime-DSXeye-8.js",
"houseplan-assets/houseplan-onboarding-runtime-CtUOIeUQ.js",
"houseplan-assets/hp-zigbee-topology-overlay-CNqZfU9H.js",
"houseplan-assets/iso-scene-render-BCdlru2d.js",
"houseplan-assets/led-strip-editor-Dkq0kk-A.js",
"houseplan-assets/led-strip-geometry-CbsAEceS.js",
"houseplan-assets/led-strip-runtime-De_8tcFL.js",
"houseplan-assets/live-interaction-runtime-Dql0Sisj.js",
"houseplan-assets/moon-runtime-p6eITxGX.js",
"houseplan-assets/namespace-language-B3Q_Y8Lh.js",
"houseplan-assets/pdf-export-eVm0SKcQ.js",
"houseplan-assets/space-editor-BW81fsa-.js",
"houseplan-assets/summary-panel-runtime-loaded-C7G0wFcw.js",
"houseplan-assets/zigbee-topology-DkIGuBlK.js",
"houseplan-assets/zigbee-topology-runtime-26qGCNY5.js"
],
"lazyGzipBytes": 477990,
"lazyGzipBytes": 481121,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-361D_NhT.js",
"houseplan-assets/editor-CAHVNjOb.js",
"houseplan-assets/form-kit.styles-Dq1Y4tz1.js",
"houseplan-assets/furniture-plan-art.generated-DHB0O8RC.js",
"houseplan-assets/houseplan-editor-runtime-D7Nrak81.js",
"houseplan-assets/namespace-language-BPjMJUHI.js",
"houseplan-assets/zigbee-topology-Co7YPeRf.js"
"houseplan-assets/backdrop-pick-Cbg_afD8.js",
"houseplan-assets/editor-D8kAiNl5.js",
"houseplan-assets/form-kit.styles-C2rEYmUr.js",
"houseplan-assets/furniture-plan-art.generated-Ce2oI6mt.js",
"houseplan-assets/houseplan-editor-runtime-DSXeye-8.js",
"houseplan-assets/namespace-language-B3Q_Y8Lh.js",
"houseplan-assets/zigbee-topology-DkIGuBlK.js"
],
"lazyEditorGzipBytes": 240863,
"lazyEditorGzipBytes": 242414,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-361D_NhT.js",
"houseplan-assets/form-kit.styles-Dq1Y4tz1.js",
"houseplan-assets/houseplan-onboarding-runtime-BDfCLIiS.js",
"houseplan-assets/namespace-language-BPjMJUHI.js"
"houseplan-assets/backdrop-pick-Cbg_afD8.js",
"houseplan-assets/form-kit.styles-C2rEYmUr.js",
"houseplan-assets/houseplan-onboarding-runtime-CtUOIeUQ.js",
"houseplan-assets/namespace-language-B3Q_Y8Lh.js"
],
"lazyOnboardingGzipBytes": 28403,
"lazyOnboardingGzipBytes": 28409,
"lazyLocaleFiles": [
"houseplan-assets/de-wSrjkMCX.js",
"houseplan-assets/fr-Cb7RjPXv.js"
"houseplan-assets/de-D0loWXPu.js",
"houseplan-assets/fr-CePePBlS.js"
],
"lazyLocaleGzipBytes": 53859,
"lazyLocaleGzipBytes": 53874,
"lazyIsometricFiles": [
"houseplan-assets/iso-scene-render-CBGc0yON.js"
"houseplan-assets/iso-scene-render-BCdlru2d.js"
],
"lazyIsometricGzipBytes": 12345,
"lazyIsometricGzipBytes": 12350,
"lazyFurnitureArtFiles": [
"houseplan-assets/furniture-plan-art.generated-DHB0O8RC.js"
"houseplan-assets/furniture-plan-art.generated-Ce2oI6mt.js"
],
"lazyFurnitureArtGzipBytes": 16940,
"lazyFurnitureArtGzipBytes": 16937,
"lazyPdfFiles": [
"houseplan-assets/furniture-plan-art.generated-DHB0O8RC.js",
"houseplan-assets/pdf-export-UdR2EXb9.js"
"houseplan-assets/furniture-plan-art.generated-Ce2oI6mt.js",
"houseplan-assets/pdf-export-eVm0SKcQ.js"
],
"lazyPdfGzipBytes": 126938,
"lazyPdfGzipBytes": 126934,
"lazyMoonFiles": [
"houseplan-assets/moon-runtime-DkqNfOp0.js"
"houseplan-assets/moon-runtime-p6eITxGX.js"
],
"lazyMoonGzipBytes": 11713,
"lazyMoonGzipBytes": 11715,
"lazyLedFiles": [
"houseplan-assets/led-strip-field-DvtQ7tpM.js",
"houseplan-assets/led-strip-geometry-BcPfXtN-.js",
"houseplan-assets/led-strip-runtime-C0OS8_qS.js"
"houseplan-assets/led-strip-field-DftOG2Ox.js",
"houseplan-assets/led-strip-geometry-CbsAEceS.js",
"houseplan-assets/led-strip-runtime-De_8tcFL.js"
],
"lazyLedGzipBytes": 9544,
"lazyLedGzipBytes": 10687,
"lazyLedEditorFiles": [
"houseplan-assets/led-strip-editor-55w_99OW.js",
"houseplan-assets/led-strip-geometry-BcPfXtN-.js",
"houseplan-assets/namespace-language-BPjMJUHI.js"
"houseplan-assets/led-strip-editor-Dkq0kk-A.js",
"houseplan-assets/led-strip-geometry-CbsAEceS.js",
"houseplan-assets/namespace-language-B3Q_Y8Lh.js"
],
"lazyLedEditorGzipBytes": 10033,
"lazyLedEditorGzipBytes": 10710,
"lazyNamespaceLocaleFiles": [
"houseplan-assets/led-de-D8AOGwO9.js",
"houseplan-assets/led-fr-Dyd_xJWH.js",
"houseplan-assets/led-ru-DxKs7cgH.js",
"houseplan-assets/settings-de-hkfrpcmk.js",
"houseplan-assets/settings-fr-CTDbCfmV.js",
"houseplan-assets/settings-ru-_XLAbOEk.js",
"houseplan-assets/support-de-DF73IEHL.js",
"houseplan-assets/support-fr-BBhMT3I0.js",
"houseplan-assets/support-ru-Bd7vkOXI.js",
"houseplan-assets/tools-de-DwmzTHwi.js",
"houseplan-assets/tools-fr-Dp5JXY-G.js",
"houseplan-assets/tools-ru-CAQB2Qhv.js",
"houseplan-assets/topology-de-DFY0lBO-.js",
"houseplan-assets/topology-fr-DbNDk6Er.js",
"houseplan-assets/topology-ru-BNVYY-_i.js"
"houseplan-assets/led-de-DHZ0Fp8K.js",
"houseplan-assets/led-fr-B17CBlAB.js",
"houseplan-assets/led-ru-B_bBTrNf.js",
"houseplan-assets/settings-de-BK2nCasN.js",
"houseplan-assets/settings-fr-BzV3jQNV.js",
"houseplan-assets/settings-ru-Pwj0ioPD.js",
"houseplan-assets/support-de-CqSy-k8F.js",
"houseplan-assets/support-fr-DRf8BVE_.js",
"houseplan-assets/support-ru-D5IlTrg1.js",
"houseplan-assets/tools-de-Bp6a3HZ8.js",
"houseplan-assets/tools-fr-Cm_NF5Bo.js",
"houseplan-assets/tools-ru-BsgA3-Uc.js",
"houseplan-assets/topology-de-aLf8xQIB.js",
"houseplan-assets/topology-fr-BM-2v3ZO.js",
"houseplan-assets/topology-ru-DkoU0vIo.js"
],
"lazyNamespaceLocaleGzipBytes": 30051,
"lazyNamespaceLocaleGzipBytes": 30522,
"files": [
{
"path": "houseplan-assets/backdrop-pick-361D_NhT.js",
"sha256": "8d80eb83488438a96d33410716b91398f1aa7456884d8e9e9094165a830ec9c0",
"path": "houseplan-assets/backdrop-pick-Cbg_afD8.js",
"sha256": "6b1d9a98b7c441c97ffdd254d4e761bad73e8af167a89a377440d161612ca081",
"rawBytes": 55329,
"gzipBytes": 18026,
"gzipBytes": 18027,
"isEntry": false,
"imports": [
"houseplan-assets/form-kit.styles-Dq1Y4tz1.js",
"houseplan-assets/houseplan-card-CDzf9V5z.js",
"houseplan-assets/namespace-language-BPjMJUHI.js"
"houseplan-assets/form-kit.styles-C2rEYmUr.js",
"houseplan-assets/houseplan-card-DpMO8ZtV.js",
"houseplan-assets/namespace-language-B3Q_Y8Lh.js"
],
"dynamicImports": [
"houseplan-assets/settings-de-hkfrpcmk.js",
"houseplan-assets/settings-fr-CTDbCfmV.js",
"houseplan-assets/settings-ru-_XLAbOEk.js"
"houseplan-assets/settings-de-BK2nCasN.js",
"houseplan-assets/settings-fr-BzV3jQNV.js",
"houseplan-assets/settings-ru-Pwj0ioPD.js"
]
},
{
"path": "houseplan-assets/de-wSrjkMCX.js",
"sha256": "b6873407a3663932da1261fb151e3c81c78e4cfda3ad3d88946e076c524e2e27",
"path": "houseplan-assets/de-D0loWXPu.js",
"sha256": "66a1dc2d57532ca76d9f29e874e3b823c97693f9ac351c7b85b2d6d6e20ed452",
"rawBytes": 89873,
"gzipBytes": 27163,
"gzipBytes": 27169,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-CAHVNjOb.js",
"sha256": "29b283f4d700ecf0256cb09f858a3944f9722c40711ad3ed9d9fee90d5a2175f",
"path": "houseplan-assets/editor-D8kAiNl5.js",
"sha256": "3cd4e96aa5086022bb53fd8790aafe8dfa79f427c5aa9cd2e15066e01d0afc08",
"rawBytes": 3833,
"gzipBytes": 1583,
"gzipBytes": 1587,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/form-kit.styles-Dq1Y4tz1.js",
"sha256": "57078cb29919b2d801225f1f15f59fcac028907b7126b5a684a5ab89b50ace38",
"path": "houseplan-assets/form-kit.styles-C2rEYmUr.js",
"sha256": "23a2a5fe57bd36d4b413e2a1f7461fde1aabe28f25d190ceeafd57b291e80a70",
"rawBytes": 25605,
"gzipBytes": 5058,
"gzipBytes": 5059,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-Cb7RjPXv.js",
"sha256": "f04f19f0f56a70d201c521b74be3a6f7f3b687a93bd91785d50f0984c68508cb",
"path": "houseplan-assets/fr-CePePBlS.js",
"sha256": "836793ff868d52ee5b69d59703bd9cc071682b7e425a037eef2058ad18d258ac",
"rawBytes": 92266,
"gzipBytes": 26696,
"gzipBytes": 26705,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/furniture-plan-art.generated-DHB0O8RC.js",
"sha256": "1f693cbcb7992e269d7a7602962fcce33f21230e7b0edce7c0359942230da941",
"path": "houseplan-assets/furniture-plan-art.generated-Ce2oI6mt.js",
"sha256": "5cc8608342b1734e6da295f8c8d5250ba100ebab4c71627cd958faa8033af160",
"rawBytes": 52035,
"gzipBytes": 16940,
"gzipBytes": 16937,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-CDzf9V5z.js",
"sha256": "43829456356d3d4d59efa17ccbb75326350ad79fc4413862dfa50ec98c1ca24e",
"rawBytes": 1056226,
"gzipBytes": 299266,
"path": "houseplan-assets/houseplan-card-DpMO8ZtV.js",
"sha256": "744b2107be96031b8336438b8018d44d284ddbc78ea1b310ba3bdd95b90f9a24",
"rawBytes": 1059141,
"gzipBytes": 300201,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-wSrjkMCX.js",
"houseplan-assets/editor-CAHVNjOb.js",
"houseplan-assets/fr-Cb7RjPXv.js",
"houseplan-assets/furniture-plan-art.generated-DHB0O8RC.js",
"houseplan-assets/houseplan-editor-runtime-D7Nrak81.js",
"houseplan-assets/houseplan-onboarding-runtime-BDfCLIiS.js",
"houseplan-assets/hp-zigbee-topology-overlay-W_gG_T_A.js",
"houseplan-assets/iso-scene-render-CBGc0yON.js",
"houseplan-assets/led-strip-editor-55w_99OW.js",
"houseplan-assets/led-strip-runtime-C0OS8_qS.js",
"houseplan-assets/live-interaction-runtime-CgDUYt60.js",
"houseplan-assets/moon-runtime-DkqNfOp0.js",
"houseplan-assets/pdf-export-UdR2EXb9.js",
"houseplan-assets/space-editor-N5uYQl3H.js",
"houseplan-assets/summary-panel-runtime-loaded-BcDAIp5L.js"
"houseplan-assets/de-D0loWXPu.js",
"houseplan-assets/editor-D8kAiNl5.js",
"houseplan-assets/fr-CePePBlS.js",
"houseplan-assets/furniture-plan-art.generated-Ce2oI6mt.js",
"houseplan-assets/houseplan-editor-runtime-DSXeye-8.js",
"houseplan-assets/houseplan-onboarding-runtime-CtUOIeUQ.js",
"houseplan-assets/hp-zigbee-topology-overlay-CNqZfU9H.js",
"houseplan-assets/iso-scene-render-BCdlru2d.js",
"houseplan-assets/led-strip-editor-Dkq0kk-A.js",
"houseplan-assets/led-strip-runtime-De_8tcFL.js",
"houseplan-assets/live-interaction-runtime-Dql0Sisj.js",
"houseplan-assets/moon-runtime-p6eITxGX.js",
"houseplan-assets/pdf-export-eVm0SKcQ.js",
"houseplan-assets/space-editor-BW81fsa-.js",
"houseplan-assets/summary-panel-runtime-loaded-C7G0wFcw.js"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-D7Nrak81.js",
"sha256": "ba4c1682823b15bce834bd41d0bc0d7fc4327fc6cc099175eb5651c285f9a938",
"rawBytes": 695353,
"gzipBytes": 194544,
"path": "houseplan-assets/houseplan-editor-runtime-DSXeye-8.js",
"sha256": "1eaad49da810920dbb3faea5bd9fd7c8d806149c8f3918e0b8ada50e882f1a5e",
"rawBytes": 696207,
"gzipBytes": 194767,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-361D_NhT.js",
"houseplan-assets/form-kit.styles-Dq1Y4tz1.js",
"houseplan-assets/furniture-plan-art.generated-DHB0O8RC.js",
"houseplan-assets/houseplan-card-CDzf9V5z.js",
"houseplan-assets/namespace-language-BPjMJUHI.js",
"houseplan-assets/zigbee-topology-Co7YPeRf.js"
"houseplan-assets/backdrop-pick-Cbg_afD8.js",
"houseplan-assets/form-kit.styles-C2rEYmUr.js",
"houseplan-assets/furniture-plan-art.generated-Ce2oI6mt.js",
"houseplan-assets/houseplan-card-DpMO8ZtV.js",
"houseplan-assets/namespace-language-B3Q_Y8Lh.js",
"houseplan-assets/zigbee-topology-DkIGuBlK.js"
],
"dynamicImports": [
"houseplan-assets/support-de-DF73IEHL.js",
"houseplan-assets/support-fr-BBhMT3I0.js",
"houseplan-assets/support-ru-Bd7vkOXI.js",
"houseplan-assets/tools-de-DwmzTHwi.js",
"houseplan-assets/tools-fr-Dp5JXY-G.js",
"houseplan-assets/tools-ru-CAQB2Qhv.js",
"houseplan-assets/zigbee-topology-runtime-ByS3kW9n.js"
"houseplan-assets/support-de-CqSy-k8F.js",
"houseplan-assets/support-fr-DRf8BVE_.js",
"houseplan-assets/support-ru-D5IlTrg1.js",
"houseplan-assets/tools-de-Bp6a3HZ8.js",
"houseplan-assets/tools-fr-Cm_NF5Bo.js",
"houseplan-assets/tools-ru-BsgA3-Uc.js",
"houseplan-assets/zigbee-topology-runtime-26qGCNY5.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime-BDfCLIiS.js",
"sha256": "89044bd3a7f52fc1f1b373b31576dc1d7180a011c1eeef264f79c6f5d00023e0",
"path": "houseplan-assets/houseplan-onboarding-runtime-CtUOIeUQ.js",
"sha256": "1f699514d966081ad2a030b9eec9c9823a6ecc2d6149dba3a951e381e8c6ed19",
"rawBytes": 15886,
"gzipBytes": 4910,
"gzipBytes": 4911,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-361D_NhT.js",
"houseplan-assets/form-kit.styles-Dq1Y4tz1.js",
"houseplan-assets/houseplan-card-CDzf9V5z.js",
"houseplan-assets/namespace-language-BPjMJUHI.js"
"houseplan-assets/backdrop-pick-Cbg_afD8.js",
"houseplan-assets/form-kit.styles-C2rEYmUr.js",
"houseplan-assets/houseplan-card-DpMO8ZtV.js",
"houseplan-assets/namespace-language-B3Q_Y8Lh.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-W_gG_T_A.js",
"sha256": "673cd02181555b4849ebe42fd3053ce67b7f97dcd14fcfc61e81c119be120c5b",
"rawBytes": 10958,
"gzipBytes": 3768,
"path": "houseplan-assets/hp-zigbee-topology-overlay-CNqZfU9H.js",
"sha256": "c1f2b923964f21c985b9916046a47594de50bfe2966dca5d89e9062291258041",
"rawBytes": 12193,
"gzipBytes": 4302,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js",
"houseplan-assets/namespace-language-BPjMJUHI.js",
"houseplan-assets/zigbee-topology-Co7YPeRf.js",
"houseplan-assets/zigbee-topology-runtime-ByS3kW9n.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js",
"houseplan-assets/namespace-language-B3Q_Y8Lh.js",
"houseplan-assets/zigbee-topology-DkIGuBlK.js",
"houseplan-assets/zigbee-topology-runtime-26qGCNY5.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/iso-scene-render-CBGc0yON.js",
"sha256": "1f2456f515056c6fba882cbd6b510635bdb1c12d63cb648b741c4e61b13e6197",
"path": "houseplan-assets/iso-scene-render-BCdlru2d.js",
"sha256": "85b3f40e68fa8c7a9994e1006ee7027172bb84a611a302ab95fc5bcdf980a89e",
"rawBytes": 36700,
"gzipBytes": 12345,
"gzipBytes": 12350,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/led-de-D8AOGwO9.js",
"sha256": "cc7a9e048e16ad6c7869d7f72a0e4d7bde6451d29eb8fd5ec205a887fec62d97",
"path": "houseplan-assets/led-de-DHZ0Fp8K.js",
"sha256": "cf2b801d2cf54a262fcfc2bf78a7a66c07f1cd2f017abb4e6845183f3d86a1d4",
"rawBytes": 1907,
"gzipBytes": 919,
"gzipBytes": 923,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/led-fr-Dyd_xJWH.js",
"sha256": "e293c332b3bb877683b7781c16e0fad2cb6a72f271d779c7a398af29b2497027",
"path": "houseplan-assets/led-fr-B17CBlAB.js",
"sha256": "a8c4bd67beff0ca9dbba74bf3565e02622d2baed9cf912b74f6a052b559ff1a3",
"rawBytes": 1886,
"gzipBytes": 905,
"gzipBytes": 908,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/led-ru-DxKs7cgH.js",
"sha256": "06d0b17e3954e65270dcb7356f6672923185e8b5af38632eebbe99b5af1aab50",
"path": "houseplan-assets/led-ru-B_bBTrNf.js",
"sha256": "a0be2bcad7919e3628e9a138c8561fb763e59ff90a219d7739f318000749f917",
"rawBytes": 2525,
"gzipBytes": 1105,
"gzipBytes": 1107,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/led-strip-editor-55w_99OW.js",
"sha256": "77ee4a59643984f94f1ff57f96013858e2cdc258b13ae01497b46f4057f62442",
"path": "houseplan-assets/led-strip-editor-Dkq0kk-A.js",
"sha256": "5d13b6717abdaa97a4ab5780f0c22f46891fdbfe326aa2d6b1d88d36e9ac2c2e",
"rawBytes": 21704,
"gzipBytes": 7380,
"gzipBytes": 7384,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js",
"houseplan-assets/led-strip-geometry-BcPfXtN-.js",
"houseplan-assets/namespace-language-BPjMJUHI.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js",
"houseplan-assets/led-strip-geometry-CbsAEceS.js",
"houseplan-assets/namespace-language-B3Q_Y8Lh.js"
],
"dynamicImports": [
"houseplan-assets/led-de-D8AOGwO9.js",
"houseplan-assets/led-fr-Dyd_xJWH.js",
"houseplan-assets/led-ru-DxKs7cgH.js"
"houseplan-assets/led-de-DHZ0Fp8K.js",
"houseplan-assets/led-fr-B17CBlAB.js",
"houseplan-assets/led-ru-B_bBTrNf.js"
]
},
{
"path": "houseplan-assets/led-strip-field-DvtQ7tpM.js",
"sha256": "6b3bf5cf737a4b3136d65951e57bc93d07664fc34cc2ddc7ba502a1c567496d3",
"rawBytes": 7384,
"gzipBytes": 3073,
"path": "houseplan-assets/led-strip-field-DftOG2Ox.js",
"sha256": "436d82bbe8e743932d6c61674e41c9973065df7793efbfd145735dc1bf092d87",
"rawBytes": 8066,
"gzipBytes": 3383,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js",
"houseplan-assets/led-strip-geometry-BcPfXtN-.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js",
"houseplan-assets/led-strip-geometry-CbsAEceS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/led-strip-geometry-BcPfXtN-.js",
"sha256": "96e1f3dce530f9e05d7b55bc32c9b998c8e9d291bef92c7c2b78d57948ece933",
"rawBytes": 5231,
"gzipBytes": 2244,
"path": "houseplan-assets/led-strip-geometry-CbsAEceS.js",
"sha256": "5c96bb8178eacb931f80f19954d09dfe3eaf4ba715a814929b9e34c3e5d91aa4",
"rawBytes": 7055,
"gzipBytes": 2914,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/led-strip-runtime-C0OS8_qS.js",
"sha256": "933125d5e1f0504e56291e5289237630a79f5502f9b5701dc3d76f2dc470aed6",
"rawBytes": 10760,
"gzipBytes": 4227,
"path": "houseplan-assets/led-strip-runtime-De_8tcFL.js",
"sha256": "19b522ec0fc33db2f9e0a32ccf8abac19f90c069b093d80a547121da6f77bfc9",
"rawBytes": 11248,
"gzipBytes": 4390,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js",
"houseplan-assets/led-strip-geometry-BcPfXtN-.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js",
"houseplan-assets/led-strip-geometry-CbsAEceS.js"
],
"dynamicImports": [
"houseplan-assets/led-strip-field-DvtQ7tpM.js"
"houseplan-assets/led-strip-field-DftOG2Ox.js"
]
},
{
"path": "houseplan-assets/live-interaction-runtime-CgDUYt60.js",
"sha256": "5e3ea0225cba5931aa51cd398062f5cb17d82f0f33bee9101fa61ed455b40fdb",
"path": "houseplan-assets/live-interaction-runtime-Dql0Sisj.js",
"sha256": "acd9c7923d892804ae3b569715a2aa2a392e5395b2faf0eebdb9061740b79ea8",
"rawBytes": 8370,
"gzipBytes": 3280,
"gzipBytes": 3282,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/moon-runtime-DkqNfOp0.js",
"sha256": "1d6df38c7320b9f9cff3b9f3afa152f4c295109fe2c0b94924d5d2e606468962",
"path": "houseplan-assets/moon-runtime-p6eITxGX.js",
"sha256": "012388d50976dd19464d3d19e4455c2d16bdf695b3a1228bb682e30c72e6c75e",
"rawBytes": 30292,
"gzipBytes": 11713,
"gzipBytes": 11715,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/namespace-language-BPjMJUHI.js",
"sha256": "d108e467e8a0e61c1f9cf0ba408f01d9415920c3e843219144f19ab0634cbb1b",
"path": "houseplan-assets/namespace-language-B3Q_Y8Lh.js",
"sha256": "bf12454d3212bdcb5dd9d6c5e23755000e531284b04fc6fedbe140b5bbaccfce",
"rawBytes": 675,
"gzipBytes": 409,
"gzipBytes": 412,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/pdf-export-UdR2EXb9.js",
"sha256": "839a0cb681cfcb67b74899d306b3e09e8b7fae59f46283b335c671c845554242",
"path": "houseplan-assets/pdf-export-eVm0SKcQ.js",
"sha256": "6d1fae2b3bce202f62333afe1e3a33dca63eff65576896f5ce67e87c8fefc0cf",
"rawBytes": 236714,
"gzipBytes": 109998,
"gzipBytes": 109997,
"isEntry": false,
"imports": [
"houseplan-assets/furniture-plan-art.generated-DHB0O8RC.js",
"houseplan-assets/houseplan-card-CDzf9V5z.js"
"houseplan-assets/furniture-plan-art.generated-Ce2oI6mt.js",
"houseplan-assets/houseplan-card-DpMO8ZtV.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/settings-de-hkfrpcmk.js",
"sha256": "7430bf272d66366ca4e7f3d6c8178cda97f2bc65112a475aeb98388338726c6d",
"path": "houseplan-assets/settings-de-BK2nCasN.js",
"sha256": "56624d620da44ce1211944bb8e77c1accc5332c823e95d61c472017d107bf415",
"rawBytes": 8886,
"gzipBytes": 3408,
"gzipBytes": 3410,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/settings-fr-CTDbCfmV.js",
"sha256": "e00be71088032b53b6d81e3a690c5ff178dfbf21745c21e63fc20c1f7c5a82b7",
"path": "houseplan-assets/settings-fr-BzV3jQNV.js",
"sha256": "94c3f3eca96dd5d594cd2fc5472af67c1398deaaf540d6d155fe8dfca1f77a18",
"rawBytes": 9297,
"gzipBytes": 3381,
"gzipBytes": 3386,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/settings-ru-_XLAbOEk.js",
"sha256": "410a961660d4ac60f59f9301d651a98e14617de88af04ea728b7cd819b08630b",
"path": "houseplan-assets/settings-ru-Pwj0ioPD.js",
"sha256": "b62084e882aea2e902d5b3e0d40a7b93d4ad57c8969f6996fa56d39edae79f4b",
"rawBytes": 12284,
"gzipBytes": 3898,
"gzipBytes": 3901,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/space-editor-N5uYQl3H.js",
"sha256": "6382ce5fca7f70735041e35b3db96e3f1e4feeed35abacc46f1311c3a60465db",
"path": "houseplan-assets/space-editor-BW81fsa-.js",
"sha256": "bee9dfedfb0aa86d35d4e40a7851104d1a01a07c60710b2ab22b452b6b6d344d",
"rawBytes": 2619,
"gzipBytes": 1127,
"gzipBytes": 1131,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-editor-CgZXeEXz.js",
"sha256": "ca0343b11e17cb8a871630e11e00a9def2ba99290339abbd79e577f2dd3e3bd6",
"rawBytes": 14867,
"path": "houseplan-assets/summary-panel-editor-gxhahBGm.js",
"sha256": "fff5135fe470d89ea267a8769d7f70d4de4be61f970c21d532fbaf4be4d15742",
"rawBytes": 14862,
"gzipBytes": 3429,
"isEntry": false,
"imports": [
"houseplan-assets/form-kit.styles-Dq1Y4tz1.js",
"houseplan-assets/houseplan-card-CDzf9V5z.js",
"houseplan-assets/summary-panel-runtime-loaded-BcDAIp5L.js"
"houseplan-assets/form-kit.styles-C2rEYmUr.js",
"houseplan-assets/houseplan-card-DpMO8ZtV.js",
"houseplan-assets/summary-panel-runtime-loaded-C7G0wFcw.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-metrics-DpgEBDDi.js",
"sha256": "ffe7025d0d913a2c27825836e263fedec5fd4c6671087654a80a826bf8e9ac63",
"path": "houseplan-assets/summary-panel-metrics-BG6QUcho.js",
"sha256": "d158a444b01527efebb8d8171168eeb27d4bd494185ef6599f180a9b4853e9e1",
"rawBytes": 2701,
"gzipBytes": 1345,
"gzipBytes": 1348,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-runtime-loaded-BcDAIp5L.js",
"sha256": "82d20ca0d38461911e5fc0a9aa44da29fdd680fceaa82927f1044df649698fa2",
"path": "houseplan-assets/summary-panel-runtime-loaded-C7G0wFcw.js",
"sha256": "782cb137530a8818e97dc4e84200e8c8069ac8e9e2c5328ddb7c35abca031afb",
"rawBytes": 73476,
"gzipBytes": 20486,
"gzipBytes": 20488,
"isEntry": false,
"imports": [
"houseplan-assets/form-kit.styles-Dq1Y4tz1.js",
"houseplan-assets/houseplan-card-CDzf9V5z.js"
"houseplan-assets/form-kit.styles-C2rEYmUr.js",
"houseplan-assets/houseplan-card-DpMO8ZtV.js"
],
"dynamicImports": [
"houseplan-assets/summary-panel-editor-CgZXeEXz.js",
"houseplan-assets/summary-panel-metrics-DpgEBDDi.js"
"houseplan-assets/summary-panel-editor-gxhahBGm.js",
"houseplan-assets/summary-panel-metrics-BG6QUcho.js"
]
},
{
"path": "houseplan-assets/support-de-DF73IEHL.js",
"sha256": "8407d526294bc1a2f2a83da0b70bf03c2d28d37daac7b0b2b7c561f32e52ed12",
"path": "houseplan-assets/support-de-CqSy-k8F.js",
"sha256": "4995630849ee44776111132051ad10ee165b1fb3e18eb34a1cdf5c3c429c0a98",
"rawBytes": 6167,
"gzipBytes": 2396,
"gzipBytes": 2400,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/support-fr-BBhMT3I0.js",
"sha256": "59eb34e74a98bac8905fd10e02eecd955a9cf7727685d3a70d8657f739457af0",
"path": "houseplan-assets/support-fr-DRf8BVE_.js",
"sha256": "cb088f305f399c4881a49a2062e620cb2b0b047de05785d1a20bd973ad68decf",
"rawBytes": 6333,
"gzipBytes": 2430,
"gzipBytes": 2435,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/support-ru-Bd7vkOXI.js",
"sha256": "0c32195ce4c911d2fb90831144b44ac7d406f6adc80555210d1e1d1ee1d5dd37",
"path": "houseplan-assets/support-ru-D5IlTrg1.js",
"sha256": "9c6c152476459b7cac2dd1349fb5f2e6b4340e58c9d7542d054e681dc823d468",
"rawBytes": 8376,
"gzipBytes": 2876,
"gzipBytes": 2879,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/tools-de-DwmzTHwi.js",
"sha256": "3d296ea3821fbe12df454c6042745746b9db49090cbfb10afe9ace758c7ccc06",
"path": "houseplan-assets/tools-de-Bp6a3HZ8.js",
"sha256": "ed4f59422b1111665c1e0eb3898c5406a0c1dfe835e81435324875166936d478",
"rawBytes": 4130,
"gzipBytes": 1375,
"gzipBytes": 1377,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/tools-fr-Dp5JXY-G.js",
"sha256": "31b0111901af3654a491997ff9d993ec907a48a90fa193bcc70026ba063e2cf4",
"path": "houseplan-assets/tools-fr-Cm_NF5Bo.js",
"sha256": "dd03e586b67d9f5d2ec1cb2d44ff9946cde837e46867281961ff7e5d10e29b0c",
"rawBytes": 4136,
"gzipBytes": 1358,
"gzipBytes": 1362,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/tools-ru-CAQB2Qhv.js",
"sha256": "c6bf82ded09db3f8238f44d138467839a3483de829d26a7be2e51c42240fcbcb",
"path": "houseplan-assets/tools-ru-BsgA3-Uc.js",
"sha256": "d41747fe9eaed67e080358de7015e8b0016fbf77e0b4570692252aa49ef2e0ae",
"rawBytes": 5633,
"gzipBytes": 1695,
"gzipBytes": 1696,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/topology-de-DFY0lBO-.js",
"sha256": "562f694c384b9e9df72b61f1b4d2ec05f7bc410576e46ea422f1eeab6c1dbd8e",
"rawBytes": 2698,
"gzipBytes": 1337,
"path": "houseplan-assets/topology-de-aLf8xQIB.js",
"sha256": "2cef786825b3dfbffda96e97444a10bd2d3f6816e3665ce61560e37dac66df1a",
"rawBytes": 3000,
"gzipBytes": 1461,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/topology-fr-DbNDk6Er.js",
"sha256": "282a3d6bbd74abb3aa2a675d2b73793a41de1beef18b1e85298919985b6347d6",
"rawBytes": 2718,
"gzipBytes": 1354,
"path": "houseplan-assets/topology-fr-BM-2v3ZO.js",
"sha256": "cd37a2e254a8d31a565baf22f41033fa06d96b673cd0202ae062dfca21fff080",
"rawBytes": 3103,
"gzipBytes": 1477,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/topology-ru-BNVYY-_i.js",
"sha256": "4ce8c7f4383b7724a1b0aff888b57ff1ca8d477df125a3b57f522dea2319ea23",
"rawBytes": 3669,
"gzipBytes": 1614,
"path": "houseplan-assets/topology-ru-DkoU0vIo.js",
"sha256": "20572bd8dacf04c2ef43f82c239211d3ae56e8765a2dba6a08828d4af413dc52",
"rawBytes": 4355,
"gzipBytes": 1800,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-Co7YPeRf.js",
"sha256": "16d9fe1e49fa01d791803f5753c238716e1a3f6da5103c6291c9618f89ac63a0",
"rawBytes": 10958,
"gzipBytes": 4303,
"path": "houseplan-assets/zigbee-topology-DkIGuBlK.js",
"sha256": "209fd9a836af2f7e11a1815ece17fc877857bbf1ee499ffa42a8e4cfb07fd06c",
"rawBytes": 14892,
"gzipBytes": 5625,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js",
"houseplan-assets/namespace-language-BPjMJUHI.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js",
"houseplan-assets/namespace-language-B3Q_Y8Lh.js"
],
"dynamicImports": [
"houseplan-assets/topology-de-DFY0lBO-.js",
"houseplan-assets/topology-fr-DbNDk6Er.js",
"houseplan-assets/topology-ru-BNVYY-_i.js"
"houseplan-assets/topology-de-aLf8xQIB.js",
"houseplan-assets/topology-fr-BM-2v3ZO.js",
"houseplan-assets/topology-ru-DkoU0vIo.js"
]
},
{
"path": "houseplan-assets/zigbee-topology-runtime-ByS3kW9n.js",
"sha256": "64f6de7adc3876b915c7472f31d0ffad421271c48161a29e8390b10d85519e1e",
"rawBytes": 3983,
"gzipBytes": 1790,
"path": "houseplan-assets/zigbee-topology-runtime-26qGCNY5.js",
"sha256": "94387df56afaffbd30a659d5bef73c1631b530340534dd1c129c730416d6145a",
"rawBytes": 4417,
"gzipBytes": 1969,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js",
"houseplan-assets/namespace-language-BPjMJUHI.js",
"houseplan-assets/zigbee-topology-Co7YPeRf.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js",
"houseplan-assets/namespace-language-B3Q_Y8Lh.js",
"houseplan-assets/zigbee-topology-DkIGuBlK.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "b22eafb488fd6cdc7ff797b48887d9c469f0aed1868da22b21ed992fa2187bdc",
"sha256": "bf8c841923d735e536486df6dd45c22f86fc42ffb6999f81ce87a673e0149f09",
"rawBytes": 1205,
"gzipBytes": 803,
"gzipBytes": 805,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js"
],
"dynamicImports": []
},
{
"path": "houseplan-panel.js",
"sha256": "5295cb11c681c7c7f0d97bb4b9d3ab22ee16735463b7af56d6c59a67622a811c",
"sha256": "91a3d932b7f19a2f1f7a5f27bf782c1fe69db930f844c55e8504ca3843a1e97d",
"rawBytes": 6165,
"gzipBytes": 2324,
"gzipBytes": 2329,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js"
],
"dynamicImports": []
}
File diff suppressed because one or more lines are too long
@@ -1,14 +1,14 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";import{aG as e,l as o,aJ as t,eD as s,A as a,eE as i,eF as l,eG as n,E as r,c}from"./houseplan-card-CDzf9V5z.js";class f extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,f={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},h=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f";import{aG as e,l as o,aJ as t,eE as s,A as a,eF as i,eG as l,eH as n,E as r,c}from"./houseplan-card-DpMO8ZtV.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
.hass=${this.hass}
.data=${this._formData}
.schema=${e}
.computeLabel=${e=>f[e.name]||e.name}
.computeLabel=${e=>h[e.name]||e.name}
@value-changed=${this._valueChanged}
></ha-form>`;return c`
${d(h.slice(0,3))}
${d(f.slice(0,3))}
${_?c`<div class="default-floor-error" role="alert"
style="color:var(--error-color,#db4437);margin:-4px 0 12px;overflow-wrap:anywhere">
${t(s,"editor.default_floor_missing",{id:_})}
</div>`:a}
${d(h.slice(3))}
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}f.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",f);
${d(f.slice(3))}
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}h.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",h);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";var e={"led.tool":"LED-Streifen","led.hint":"Zeichnen Sie den Streifen Punkt für Punkt entlang der Wandflächen oder über den Boden; er rastet am Raster und an Wandflächen ein. Danach wählen Sie das Gerät, das er darstellt.","led.start":"Klicken, um den Streifen zu beginnen","led.start_touch":"Tippen, um den Streifen zu beginnen","led.points":"Punkte: {n} · Umschalt — 45°-Schritte · Esc — fertig · Strg+Z — Punkt entfernen","led.points_touch":"Punkte: {n} · Werkzeug wechseln zum Beenden","led.finish":"Fertig","led.stopped":"Der Streifen stößt an eine Wand","led.unbound":"Streifen ist mit keinem Gerät verbunden","led.bind":"Gerät verbinden","led.change":"Gerät wechseln","led.later":"Später","led.unbind":"Trennen","led.delete":"Streifen löschen","led.settings":"Geräteeinstellungen","led.type_note":"LED-Streifen: Form im Geräte-Editor auf dem Plan bearbeiten","led.show_strip":"Als LED-Streifen zeigen","led.show_icon":"Als Symbol zeigen","led.cancel":"Abbrechen","led.taken":"Bereits mit einem anderen LED-Streifen verbunden","led.space":"Zuerst den LED-Streifen lösen: Er gehört zu seinem Bereich","led.limit_points":"Höchstens 50 Punkte pro Streifen","led.limit_strips":"Höchstens 50 Streifen pro Bereich","led.pick_title":"Gerät für den Streifen wählen","led.pick_new":"Neues Gerät…","led.pick_empty":"Auf diesem Plan gibt es noch keine freien Geräte.","led.saved":"LED-Streifen gespeichert","led.save_failed":"Streifen nicht gespeichert: {err}","led.history_draw":"LED-Streifen","led.history_shape":"Form des LED-Streifens","led.history_view":"Darstellung des Geräts","led.optimize_walls":"Streifen durch Wände: {n} ({spaces})"};const n="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";export{e as dictionary,n as fingerprint};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f";var e={"led.tool":"LED-Streifen","led.hint":"Zeichnen Sie den Streifen Punkt für Punkt entlang der Wandflächen oder über den Boden; er rastet am Raster und an Wandflächen ein. Danach wählen Sie das Gerät, das er darstellt.","led.start":"Klicken, um den Streifen zu beginnen","led.start_touch":"Tippen, um den Streifen zu beginnen","led.points":"Punkte: {n} · Umschalt — 45°-Schritte · Esc — fertig · Strg+Z — Punkt entfernen","led.points_touch":"Punkte: {n} · Werkzeug wechseln zum Beenden","led.finish":"Fertig","led.stopped":"Der Streifen stößt an eine Wand","led.unbound":"Streifen ist mit keinem Gerät verbunden","led.bind":"Gerät verbinden","led.change":"Gerät wechseln","led.later":"Später","led.unbind":"Trennen","led.delete":"Streifen löschen","led.settings":"Geräteeinstellungen","led.type_note":"LED-Streifen: Form im Geräte-Editor auf dem Plan bearbeiten","led.show_strip":"Als LED-Streifen zeigen","led.show_icon":"Als Symbol zeigen","led.cancel":"Abbrechen","led.taken":"Bereits mit einem anderen LED-Streifen verbunden","led.space":"Zuerst den LED-Streifen lösen: Er gehört zu seinem Bereich","led.limit_points":"Höchstens 50 Punkte pro Streifen","led.limit_strips":"Höchstens 50 Streifen pro Bereich","led.pick_title":"Gerät für den Streifen wählen","led.pick_new":"Neues Gerät…","led.pick_empty":"Auf diesem Plan gibt es noch keine freien Geräte.","led.saved":"LED-Streifen gespeichert","led.save_failed":"Streifen nicht gespeichert: {err}","led.history_draw":"LED-Streifen","led.history_shape":"Form des LED-Streifens","led.history_view":"Darstellung des Geräts","led.optimize_walls":"Streifen durch Wände: {n} ({spaces})"};const n="1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f";export{e as dictionary,n as fingerprint};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";var e={"led.tool":"Ruban LED","led.hint":"Tracez le ruban point par point le long des faces des murs ou sur le sol ; il s’aimante à la grille et aux faces des murs. Ensuite, choisissez l’appareil qu’il représente.","led.start":"Cliquez pour commencer le ruban","led.start_touch":"Touchez pour commencer le ruban","led.points":"Points : {n} · Maj — pas de 45° · Échap — terminer · Ctrl+Z — retirer le point","led.points_touch":"Points : {n} · changez d’outil pour terminer","led.finish":"Terminer","led.stopped":"Le ruban bute contre un mur","led.unbound":"Ruban non lié à un appareil","led.bind":"Lier un appareil","led.change":"Changer d’appareil","led.later":"Plus tard","led.unbind":"Délier","led.delete":"Supprimer le ruban","led.settings":"Réglages de l’appareil","led.type_note":"Ruban LED : modifiez sa forme sur le plan dans l’éditeur d’appareils","led.show_strip":"Afficher en ruban LED","led.show_icon":"Afficher en icône","led.cancel":"Annuler","led.taken":"Déjà lié à un autre ruban LED","led.space":"Détachez d’abord le ruban LED : il appartient à son espace","led.limit_points":"50 points au maximum par ruban","led.limit_strips":"50 rubans au maximum par espace","led.pick_title":"Choisissez l’appareil du ruban","led.pick_new":"Nouvel appareil…","led.pick_empty":"Aucun appareil libre sur ce plan pour l’instant.","led.saved":"Ruban LED enregistré","led.save_failed":"Ruban non enregistré : {err}","led.history_draw":"Ruban LED","led.history_shape":"Forme du ruban LED","led.history_view":"Représentation de l’appareil","led.optimize_walls":"Rubans traversant des murs : {n} ({spaces})"};const a="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";export{e as dictionary,a as fingerprint};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f";var e={"led.tool":"Ruban LED","led.hint":"Tracez le ruban point par point le long des faces des murs ou sur le sol ; il s’aimante à la grille et aux faces des murs. Ensuite, choisissez l’appareil qu’il représente.","led.start":"Cliquez pour commencer le ruban","led.start_touch":"Touchez pour commencer le ruban","led.points":"Points : {n} · Maj — pas de 45° · Échap — terminer · Ctrl+Z — retirer le point","led.points_touch":"Points : {n} · changez d’outil pour terminer","led.finish":"Terminer","led.stopped":"Le ruban bute contre un mur","led.unbound":"Ruban non lié à un appareil","led.bind":"Lier un appareil","led.change":"Changer d’appareil","led.later":"Plus tard","led.unbind":"Délier","led.delete":"Supprimer le ruban","led.settings":"Réglages de l’appareil","led.type_note":"Ruban LED : modifiez sa forme sur le plan dans l’éditeur d’appareils","led.show_strip":"Afficher en ruban LED","led.show_icon":"Afficher en icône","led.cancel":"Annuler","led.taken":"Déjà lié à un autre ruban LED","led.space":"Détachez d’abord le ruban LED : il appartient à son espace","led.limit_points":"50 points au maximum par ruban","led.limit_strips":"50 rubans au maximum par espace","led.pick_title":"Choisissez l’appareil du ruban","led.pick_new":"Nouvel appareil…","led.pick_empty":"Aucun appareil libre sur ce plan pour l’instant.","led.saved":"Ruban LED enregistré","led.save_failed":"Ruban non enregistré : {err}","led.history_draw":"Ruban LED","led.history_shape":"Forme du ruban LED","led.history_view":"Représentation de l’appareil","led.optimize_walls":"Rubans traversant des murs : {n} ({spaces})"};const a="1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f";export{e as dictionary,a as fingerprint};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";var e={"led.tool":"LED-лента","led.hint":"Нарисуйте ленту по точкам вдоль граней стен или по полу — она прилипает к сетке и граням. После завершения выберите устройство, которое она показывает.","led.start":"Нажмите, чтобы начать ленту","led.start_touch":"Коснитесь, чтобы начать ленту","led.points":"Точек: {n} · Shift — шаг 45° · Esc — завершить · Ctrl+Z — убрать точку","led.points_touch":"Точек: {n} · смените инструмент, чтобы завершить","led.finish":"Завершить","led.stopped":"Лента упёрлась в стену","led.unbound":"Лента не привязана к устройству","led.bind":"Привязать устройство","led.change":"Сменить устройство","led.later":"Позже","led.unbind":"Отвязать","led.delete":"Удалить ленту","led.settings":"Настройки устройства","led.type_note":"LED-лента: форма редактируется на плане в редакторе устройств","led.show_strip":"Показывать LED-лентой","led.show_icon":"Показывать значком","led.cancel":"Отмена","led.taken":"Уже привязано к другой LED-ленте","led.space":"Сначала отвяжите LED-ленту: она принадлежит своему пространству","led.limit_points":"Не более 50 точек в ленте","led.limit_strips":"Не более 50 лент в пространстве","led.pick_title":"Выберите устройство для ленты","led.pick_new":"Новое устройство…","led.pick_empty":"На этом плане пока нет свободных устройств.","led.saved":"LED-лента сохранена","led.save_failed":"Лента не сохранена: {err}","led.history_draw":"LED-лента","led.history_shape":"Форма LED-ленты","led.history_view":"Вид устройства","led.optimize_walls":"Лент, проходящих сквозь стены: {n} ({spaces})"};const d="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";export{e as dictionary,d as fingerprint};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f";var e={"led.tool":"LED-лента","led.hint":"Нарисуйте ленту по точкам вдоль граней стен или по полу — она прилипает к сетке и граням. После завершения выберите устройство, которое она показывает.","led.start":"Нажмите, чтобы начать ленту","led.start_touch":"Коснитесь, чтобы начать ленту","led.points":"Точек: {n} · Shift — шаг 45° · Esc — завершить · Ctrl+Z — убрать точку","led.points_touch":"Точек: {n} · смените инструмент, чтобы завершить","led.finish":"Завершить","led.stopped":"Лента упёрлась в стену","led.unbound":"Лента не привязана к устройству","led.bind":"Привязать устройство","led.change":"Сменить устройство","led.later":"Позже","led.unbind":"Отвязать","led.delete":"Удалить ленту","led.settings":"Настройки устройства","led.type_note":"LED-лента: форма редактируется на плане в редакторе устройств","led.show_strip":"Показывать LED-лентой","led.show_icon":"Показывать значком","led.cancel":"Отмена","led.taken":"Уже привязано к другой LED-ленте","led.space":"Сначала отвяжите LED-ленту: она принадлежит своему пространству","led.limit_points":"Не более 50 точек в ленте","led.limit_strips":"Не более 50 лент в пространстве","led.pick_title":"Выберите устройство для ленты","led.pick_new":"Новое устройство…","led.pick_empty":"На этом плане пока нет свободных устройств.","led.saved":"LED-лента сохранена","led.save_failed":"Лента не сохранена: {err}","led.history_draw":"LED-лента","led.history_shape":"Форма LED-ленты","led.history_view":"Вид устройства","led.optimize_walls":"Лент, проходящих сквозь стены: {n} ({spaces})"};const d="1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f";export{e as dictionary,d as fingerprint};
File diff suppressed because one or more lines are too long
@@ -1,31 +0,0 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";import{eT as e,eU as t,az as s,eV as n,eW as a,eO as i,A as r,eX as o,eY as c,eZ as l,e as p,i as d,E as h}from"./houseplan-card-CDzf9V5z.js";import{i as u,k as f,m as $}from"./led-strip-geometry-BcPfXtN-.js";const g=p(class extends d{constructor(e){super(e),this.deps=null}render(e,t){return t()}update(e,[t,s]){return this.deps&&this.deps.length===t.length&&t.every((e,t)=>e===this.deps[t])?h:(this.deps=t,s())}}),m="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac",w=48,M=e=>e.map(e=>[e[0],e[1]]);class k{constructor(e=50){this.limit=e,this.entries=new Map,this.space="",this.recomputes=0,this.ids=new Map}get size(){return this.entries.size}id(e){let t=this.ids.get(e);return null==t&&(t=this.ids.size+1,this.ids.set(e,t)),t}forSpace(e){e!==this.space&&(this.entries.clear(),this.ids.clear(),this.space=e)}read(e,t){if(this.entries.has(e)){const t=this.entries.get(e)??null;return this.entries.delete(e),this.entries.set(e,t),t}this.recomputes+=1;const s=t();for(this.entries.set(e,s);this.entries.size>this.limit;){const e=this.entries.keys().next().value;if(void 0===e)break;this.entries.delete(e)}return s}clear(){this.entries.clear(),this.ids.clear(),this.space=""}get sources(){let e=0;for(const t of this.entries.values())for(const s of t?.pieces||[])e+=s.clip?.length??0;return e}}const y=e=>{const t=Math.round(1e4*e)/1e4;return Object.is(t,-0)?"0":String(t)},x=e=>`${e.map((e,t)=>`${t?"L":"M"}${y(e[0])} ${y(e[1])}`).join(" ")} Z`;function v(e,t,s){const n=1.01*t;return s.occluders.some(t=>t?.length>=4&&e.some(e=>((e,t)=>{const s=t[2]-t[0],n=t[3]-t[1],a=s*s+n*n,i=a?Math.max(0,Math.min(1,((e[0]-t[0])*s+(e[1]-t[1])*n)/a)):0;return Math.hypot(e[0]-t[0]-i*s,e[1]-t[1]-i*n)})(e,t)<n))?e.map(e=>o([e[0],e[1]],t,s.occluders,12)).filter(e=>e.length>=3).map(x):null}const b=new WeakMap;function I(e){const t=u(M(e.points));if(t.length<2||!(e.radius>0))return null;const s=e.radius,n=f(t),a=`${(n?t.slice(0,-1):t).map((e,t)=>`${t?"L":"M"}${y(e[0])} ${y(e[1])}`).join(" ")}${n?" Z":""}`,i=[];let r=[t[0]],o=s;for(let e=1;e<t.length;e++){let n=t[e-1];const a=t[e];let c=Math.hypot(a[0]-n[0],a[1]-n[1]);for(;c>o+1e-12;){const e=o/c,t=[n[0]+(a[0]-n[0])*e,n[1]+(a[1]-n[1])*e];r.push(t),i.push(r),r=[t],n=t,c-=o,o=s}r.push(a),o-=c}r.length>1&&i.push(r);const c=[];let l=1/0,p=1/0,d=-1/0,h=-1/0;for(const t of i){const n=[];for(const a of $(t,e.faces,s/4)){const e=n[n.length-1];(!e||Math.hypot(a[0]-e[0],a[1]-e[1])>=s/4)&&n.push(a)}if(!n.length)continue;let a;try{a=v(n,s,e.scene)}catch{continue}if(!a||a.length){c.push({d:t.map((e,t)=>`${t?"L":"M"}${y(e[0])} ${y(e[1])}`).join(" "),clip:a});for(const e of t)l=Math.min(l,e[0]),p=Math.min(p,e[1]),d=Math.max(d,e[0]),h=Math.max(h,e[1])}}return c.length?{d:a,pieces:c,box:{x:l-s,y:p-s,w:d-l+2*s,h:h-p+2*s}}:null}function U(t){const s=100*Math.max(0,Math.min(1,t));for(let t=1;t<e.length;t++){const[n,a]=e[t-1],[i,r]=e[t];if(s<=i)return a+(r-a)*(s-n)/Math.max(1e-9,i-n)}return 0}const j=new WeakMap,z=new WeakMap;function S(e){j.get(e)?.clear(),j.delete(e);const s=z.get(e);s&&t(s.state,s.host),z.delete(e)}function q(e){return!!z.get(e)?.state.renderedSources.size}function C(e){const t=j.get(e);return{visibility:t?.size??0,sources:t?.sources??0,recomputes:t?.recomputes??0}}function P(e){let t=j.get(e);return t||(t=new k,j.set(e,t)),t}function _(e){if(!e.scene)return s``;const t=P(e.owner);t.forSpace(e.spaceId);const o=function(e){let t=z.get(e.owner);if(t)t.callbacks.requestUpdate=e.requestUpdate,t.callbacks.isConnected=e.isConnected,t.callbacks.reducedMotion=e.reducedMotion;else{const s={requestUpdate:e.requestUpdate,isConnected:e.isConnected,reducedMotion:e.reducedMotion},n={window:()=>window,isConnected:()=>s.isConnected(),requestUpdate:()=>s.requestUpdate(),reducedMotion:()=>s.reducedMotion?.()??window.matchMedia?.("(prefers-reduced-motion: reduce)").matches??!1};t={state:c(),host:n,callbacks:s,spaceId:""},z.set(e.owner,t)}return t.spaceId&&t.spaceId!==e.spaceId&&l(t.state,t.host,t.spaceId),t.spaceId=e.spaceId,t}(e),p=e.scene,d=new Set,h=e.views.flatMap(s=>{const a=`${e.spaceId}|${s.strip.id}`;d.add(a);const i=s.glow&&"on"===s.state&&!!s.appearance,r=n(o.state,o.host,a,i);if(!r)return[];i&&s.appearance&&o.state.lastAppearance.set(a,s.appearance);const c=i?s.appearance:o.state.lastAppearance.get(a)??null;if(!c)return[];const l=`${s.strip.id}|${h=s.strip.points,h.map(e=>`${e[0].toFixed(5)},${e[1].toFixed(5)}`).join(";")}|${s.radius.toFixed(5)}|${p.fingerprint}`;var h;const u=t.read(l,()=>I({points:s.strip.points,radius:s.radius,scene:p,polygons:e.polygons,faces:e.faces,spaceId:e.spaceId}));return u?[{view:{...s,appearance:c},geometry:u,transition:r}]:[]});if(a(o.state,o.host,e.spaceId,d),!h.length)return s``;const u=Array.from({length:48},(e,t)=>{const s=1-t/48;return{half:s,value:U((s+(1-(t+1)/48))/2)}});return s`<g class="led-fields" pointer-events="none" aria-hidden="true"
data-led-cache="${t.size}" data-led-recomputes="${t.recomputes}">
<defs><clipPath id="hp-led-floor">${function(e){let t=b.get(e);return t||(t=e.floor.filter(e=>e.length>=3).map(x),b.set(e,t)),t}(p).map(e=>s`<path d="${e}"></path>`)}</clipPath></defs>
<g clip-path="url(#hp-led-floor)">
${i(h,({view:e})=>e.strip.id,({view:e,geometry:n,transition:a})=>{const i=`${t.id(e.strip.id)}`,o=e.radius,c=n.box,l=f(M(e.strip.points)),p=n.pieces.filter(e=>!!e.clip),d=n.pieces.filter(e=>!e.clip),h=p.length>0;return g([n,a.entering,a.leaving,e.appearance.c,e.appearance.alpha,o,i],()=>s`<g
class="glow-spot led-field ${a.entering?"is-entering":""} ${a.leaving?"is-leaving":""}"
data-led-field="${e.strip.id}" data-led-phase="${a.entering?"entering":a.leaving?"leaving":"visible"}"
data-pieces="${n.pieces.length}" data-bands="${48}"
data-closed="${l?"true":"false"}">
<defs>
${h?s`<clipPath id="hp-led-visible-${i}">
${d.map(e=>s`<path d="${e.d}" fill="none" stroke="white"
stroke-width="${2*o}" stroke-linecap="round" stroke-linejoin="round"></path>`)}
${p.map(e=>s`<path d="${e.clip.join(" ")}"></path>`)}
</clipPath>`:r}
<mask id="hp-led-mask-${i}" maskUnits="userSpaceOnUse"
x="${c.x}" y="${c.y}" width="${c.w}" height="${c.h}"
color-interpolation="sRGB" style="mask-type:luminance">
<rect x="${c.x}" y="${c.y}" width="${c.w}" height="${c.h}" fill="black"></rect>
<g clip-path=${h?`url(#hp-led-visible-${i})`:r}>
${u.map(e=>s`<path d="${n.d}" fill="none" stroke="${(e=>{const t=Math.round(255*Math.max(0,Math.min(1,e)));return`rgb(${t},${t},${t})`})(e.value)}"
stroke-width="${2*e.half*o}" stroke-linecap="round" stroke-linejoin="round"></path>`)}
</g>
</mask>
</defs>
<rect class="glow-pool led-pool" x="${c.x}" y="${c.y}" width="${c.w}" height="${c.h}"
fill="${e.appearance?.c??"transparent"}" fill-opacity="${(e.appearance?.alpha??0).toFixed(4)}"
mask="url(#hp-led-mask-${i})"></rect>
</g>`)})}
</g>
</g>`}export{w as LED_FIELD_BANDS,m as LED_FIELD_FINGERPRINT,k as LedFieldCache,I as buildFieldGeometry,U as falloffAt,q as hasLedField,P as ledFieldCache,C as ledFieldStats,S as releaseLedField,_ as renderLedField};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,47 +0,0 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";import{et as e,eB as t,c6 as o,eI as s,eJ as i,ad as n,ed as a,O as r,eK as l,az as d,ee as c,aL as p,eL as u,eM as h,eN as f,A as m,eO as v}from"./houseplan-card-CDzf9V5z.js";import{L as g,v as w,s as $,a as _,p as y,b as k,c as b,d as C,e as P,f as M}from"./led-strip-geometry-BcPfXtN-.js";const F="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";let L,U=null,x=null;function D(e,t){return U||x||L===e||""===L||(x=(void 0===L?import("./led-strip-field-DvtQ7tpM.js"):import(new URL(`./led-strip-field-DvtQ7tpM.js?${Date.now()}`,import.meta.url).href)).then(e=>{e.LED_FIELD_FINGERPRINT===s?U=e:L=""},()=>{L=e}).finally(()=>{x=null})),U||x?.then(()=>U&&t()),U}const R=e=>e.some(e=>e.glow&&"on"===e.state),E=e=>e.map(e=>[e[0],e[1]]),A="#383838";function I(s,i){if(!s)return null;const n=Array.isArray(s.masonryGeometry)?s.masonryGeometry:[],a=[...e(s.masonryGeometry),...s.opaqueBodies],r=[];for(const e of a)for(let t=0;t<e.length;t++){const o=e[t],s=e[(t+1)%e.length];o&&s&&r.push({a:[o[0],o[1]],b:[s[0],s[1]]})}const l=25,d=new Map;r.forEach((e,t)=>{const o=Math.floor(Math.min(e.a[0],e.b[0])/l),s=Math.floor(Math.max(e.a[0],e.b[0])/l),i=Math.floor(Math.min(e.a[1],e.b[1])/l),n=Math.floor(Math.max(e.a[1],e.b[1])/l);for(let e=o;e<=s;e++)for(let o=i;o<=n;o++){const s=`${e},${o}`,i=d.get(s);i?i.push(t):d.set(s,[t])}});const c=e=>{let t=1/0,o=1/0,s=-1/0,i=-1/0;for(const n of e)t=Math.min(t,n[0]),o=Math.min(o,n[1]),s=Math.max(s,n[0]),i=Math.max(i,n[1]);return[t,o,s,i]},p=(e,t)=>e[0]>=t[0]&&e[0]<=t[2]&&e[1]>=t[1]&&e[1]<=t[3],u=n.filter(e=>e?.[0]?.length).map(e=>({box:c(e[0]),poly:e})),h=s.opaqueBodies.map(e=>({box:c(e),body:e}));return{faces:r,inside:e=>u.some(({box:o,poly:s})=>p(e,o)&&t([e[0],e[1]],[s]))||h.some(({box:t,body:s})=>p(e,t)&&o([e[0],e[1]],s)),epsilon:i,near:e=>{const t=new Set;for(let o=Math.floor(e[0]/l);o<=Math.floor(e[2]/l);o++)for(let s=Math.floor(e[1]/l);s<=Math.floor(e[3]/l);s++)for(const e of d.get(`${o},${s}`)||[])t.add(e);return[...t].map(e=>r[e])}}}function T(e){const t=e.candidate?.sourceEid||e.device.primary||"",o=t?e.hass?.states?.[t]?.state:void 0,s="unavailable"===o||"unknown"===o||!!t&&!!e.hass&&!e.hass.states?.[t]&&!e.device.virtual,i=Number(e.device.marker?.glow_radius_cm),n=Number.isFinite(i)&&i>0?i/e.cellCm*e.gridPitch:e.defaultRadius,a=s?null:e.candidate?.appearance??null;return{strip:e.strip,device:e.device,state:s?"unavailable":a?"on":"off",glow:e.glow,appearance:a,radius:n}}function j(e,t){const o=function(e,t){return("on"===e.state?P:M)*t}(e,t.d);return{t:o,path:b(E(e.strip.points),t.faces,o/2)}}function B(e){if(!e.views.length)return d``;const t=e.handlers,o=[...e.views].sort((e,t)=>e.strip.id<t.strip.id?1:e.strip.id>t.strip.id?-1:0),s=e.iso;return d`<g class="led-strips" data-hp-led-strips="${o.length}"
data-hp-iso=${s?"raised":m}>
${s?d`<defs><filter id="hp-led-iso-shadow" filterUnits="userSpaceOnUse"
x="-100000" y="-100000" width="200000" height="200000">
<feGaussianBlur stdDeviation="${s.shadow.sigma}"></feGaussianBlur></filter></defs>`:m}
<style>
.led-strip .led-focus { fill: none; stroke: transparent; }
.led-strip:has(.led-hit:focus-visible) .led-focus { stroke: var(--primary-color, #03a9f4); }
.led-strip .led-hit { fill: none; stroke: transparent; cursor: pointer; outline: none; }
</style>
${v(o,e=>e.strip.id,o=>{const{t:i,path:n}=j(o,e),a=y(n),r="unavailable"===o.state,l=r?"#9e9e9e":"on"===o.state&&!o.glow&&o.appearance?o.appearance.c:"#FFFFFF",c=2*k(i*e.perUnit)/(e.perUnit||1),p=o.device,u=t=>function(e,t,o){const s=e.currentTarget,i=s?.getScreenCTM?.();if(!i||o.views.length<2)return t;const n=i.inverse(),a=[n.a*e.clientX+n.c*e.clientY+n.e,n.b*e.clientX+n.d*e.clientY+n.f],r=o.views.map(e=>{const{t:t,path:s}=j(e,o);return{id:e.strip.id,points:s.points.map(e=>[e[0]*o.perUnit,e[1]*o.perUnit]),closed:s.closed,thicknessPx:t*o.perUnit}}),l=C([a[0]*o.perUnit,a[1]*o.perUnit],r);return o.views.find(e=>e.strip.id===l)||t}(t,o,e).device,h=s?`translate(0 ${-s.lift})`:m;return d`<g class="led-strip state-${o.state}" data-led-strip="${o.strip.id}"
data-marker="${p.id}" data-state="${o.state}" data-closed="${n.closed?"true":"false"}">
${s?d`<path class="led-iso-shadow" d="${a}" fill="none" stroke="black"
stroke-opacity="${s.shadow.opacity}" stroke-width="${i}" stroke-linecap="round"
stroke-linejoin="round" filter="url(#hp-led-iso-shadow)" pointer-events="none"
transform="translate(${s.shadow.dx} ${s.shadow.dy-s.lift})"></path>
${[1,.5].map(e=>d`<path class="led-iso-edge" d="${a}" fill="none" stroke="${s.edge}"
stroke-width="${i}" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"
transform="translate(0 ${-s.lift+s.depth*e})"></path>`)}`:m}
<g transform=${h}>
<path class="led-outline" d="${a}" fill="none" stroke="${A}" stroke-width="${i}"
stroke-linecap="round" stroke-linejoin="round"
stroke-dasharray=${r?`${2*i} ${1.5*i}`:m}></path>
<path class="led-core" d="${a}" fill="none" stroke="${l}" stroke-width="${i/2}"
stroke-linecap="round" stroke-linejoin="round"
stroke-dasharray=${r?`${2*i} ${1.5*i}`:m}></path>
<path class="led-focus" d="${a}" stroke-width="${1.6*i}" stroke-linecap="round"
stroke-linejoin="round" aria-hidden="true"></path>
${t?d`<path class="led-hit" d="${a}" stroke-width="${c}"
stroke-linecap="round" stroke-linejoin="round" pointer-events="stroke"
role="button" tabindex="0" aria-label="${t.label(p)}"
data-hp="device" data-id="${p.id}"
@click=${e=>t.click(e,u(e))}
@keydown=${e=>t.keydown(e,p)}
@contextmenu=${e=>t.contextmenu(e,u(e))}
@pointerdown=${e=>t.pointerdown(e,u(e))}
@pointermove=${e=>t.pointermove(e,u(e))}
@pointerup=${e=>t.pointerup(e,u(e))}
@pointercancel=${e=>t.pointercancel(e,p)}
@lostpointercapture=${e=>t.pointercancel(e,p)}
@pointerover=${e=>t.pointerover(e,u(e))}
@pointerleave=${()=>t.pointerleave()}
@focus=${e=>t.focus(e,p)}
@blur=${()=>t.blur(p)}></path>`:m}
</g>
</g>`})}
</g>`}function G(e,t,o,s){return(t?e.find(e=>e.id===t):void 0)??(o?e.find(e=>s(o,e)):void 0)}function H(e){const t=new Map(e.devices.map(e=>[e.id,e])),o=g/e.cellCm*e.gridPitch,s=new Map(i({hass:e.hass,devices:e.devices,virtualLights:e.virtualLights,spaceId:e.space.id,defaultColor:e.defaultColor,paletteAlpha:e.paletteAlpha,defaultRadiusUnits:o,cellCm:e.cellCm,gridPitch:e.gridPitch,position:()=>({x:0,y:0})}).map(e=>[e.key,e])),r=[];for(const i of e.space.led_strips||[]){if(!1===i?.active||!i.marker||!w(i.points))continue;const a={...i,points:i.points.map(e=>[e[0]*n,e[1]*n])},l=t.get(a.marker);if(!l||l.space!==e.space.id)continue;if(l.hidden&&!e.showHidden)continue;const d=G(e.space.rooms,l.marker?.room_id,$(E(a.points)),e.inRoom);r.push(T({strip:a,device:l,candidate:s.get(`${e.space.id}|${l.id}`)??null,hass:e.hass,glow:!!d&&e.glowFor(d),defaultRadius:o,cellCm:e.cellCm,gridPitch:e.gridPitch}))}const l=_/e.cellCm*e.gridPitch;return{views:r,faces:I(e.scene,l),d:e.iconPct/100*a(e.space),scene:e.scene,polygons:e.polygons}}const N=new WeakMap;function q(e){N.delete(e),U?.releaseLedField(e)}function S(e){return{shapes:N.get(e)?.frame.views.length??0,...U?.ledFieldStats(e)??{visibility:0,sources:0,recomputes:0}}}function O(e,t,o){const s=t.rooms.flatMap(e=>{const t=r(e);return t?[{room:e,poly:t}]:[]}),i=s.length?e._lightBarriers(t,s.map(({room:e,poly:t})=>({r:e,poly:t}))):null,n=[t,e._renderDevices,e._renderPlanHass,o,i,e._mode,e._showAll],a=N.get(e);if(a&&a.key.every((e,t)=>e===n[t]))return a.frame;const d=e._config?.icon_size??2.5,c=H({space:t,devices:e._renderDevices,hass:e._renderPlanHass,virtualLights:e._virtualLights,defaultColor:e._fillColors.glow_light.c,paletteAlpha:e._fillColors.glow_light.a,cellCm:e._cellCm,gridPitch:e._gridPitch,iconPct:d>8?2.5:d,scene:i,polygons:s,glowFor:e=>l(o,e),inRoom:(t,o)=>e._pointInRoom(t,o),showHidden:"devices"===e._mode&&e._showAll});return!1!==e.isConnected&&N.set(e,{key:n,frame:c}),c}function z(e,t,o,s){const i=O(e,t,o),n=e._stageEl?.clientWidth,a="iso"===e._renderProjection&&"view"===e._mode,r=a?i.d*c:i.d,l="theme-dark"===p(e._renderPlanHass)?"dark":"light",m=!!e._isoLightFloors?.size,v=u(l,m),g=B({views:i.views,d:r,iso:a?{lift:f.lift*r,depth:f.depth*r,edge:h(A,l,m),shadow:{dx:v.dx*r,dy:v.dy*r,sigma:v.sigma*r,opacity:v.opacityWhite}}:null,faces:i.faces,perUnit:n&&s.w?n/s.w:1,handlers:"view"===e._mode?{click:(t,o)=>e._clickDevice(t,o),keydown:(t,o)=>e._keyDevice(t,o),contextmenu:(t,o)=>e._ctxDevice(t,o),pointerdown:(t,o)=>e._pointerDown(t,o),pointermove:(t,o)=>{const s=e._pointerMove(t,o);s&&e._showDeviceTip(t,s)},pointerup:(t,o)=>e._pointerUp(t,o),pointercancel:(t,o)=>e._pointerCancel(t,o),pointerover:(t,o)=>e._showDeviceTip(t,o),pointerleave:()=>e._clearPointerHover(),focus:(t,o)=>e._showDeviceFocusTip(t,o),blur:t=>e._hideDeviceFocusTip(t.id),label:e=>e.name}:null});return"plan"===e._mode||"decor"===e._mode?d`<g class="led-passive" opacity="0.45" pointer-events="none">${g}</g>`:g}function W(e,t,o){if(!1===e.isConnected)return d``;const s=O(e,t,o),i=s.scene&&(R(s.views)||U?.hasLedField(e))?U||D(t.id,()=>!1!==e.isConnected&&e.requestUpdate()):null;return i?i.renderLedField({views:s.views,scene:s.scene,polygons:s.polygons,faces:s.faces,spaceId:t.id,owner:e,requestUpdate:()=>e.requestUpdate(),isConnected:()=>!1!==e.isConnected}):d``}function Y(e){const t=e.space.rooms.flatMap(e=>{const t=r(e);return t?[{room:e,poly:t}]:[]}),o=H({space:e.space,devices:e.devices,hass:e.hass,virtualLights:e.virtualLights,defaultColor:e.defaultColor,paletteAlpha:e.paletteAlpha,cellCm:e.cellCm,gridPitch:e.gridPitch,iconPct:e.iconPct,scene:e.scene,polygons:t,glowFor:e.glowFor,inRoom:e.inRoom,showHidden:!1}),s=e.live?o.views:o.views.map(e=>({...e,state:"off",appearance:null,glow:!1})),i=I({masonryGeometry:e.bodies.masonryGeometry,opaqueBodies:e.bodies.opaqueBodies},_/e.cellCm*e.gridPitch),n=e.scene&&e.live&&(R(s)||U?.hasLedField(e.owner))?D(e.space.id,e.ready):null;return d`${n?n.renderLedField({views:s,scene:e.scene,polygons:t,faces:i,spaceId:e.space.id,owner:e.owner,requestUpdate:e.ready,isConnected:()=>!0}):m}${B({views:s,d:o.d,faces:i,perUnit:e.perUnit,handlers:null})}`}export{F as LED_RUNTIME_FINGERPRINT,I as faceContext,D as ledField,H as ledFrame,O as ledFrameFor,S as ledStats,T as ledStripView,q as releaseLed,W as renderLedFieldFor,z as renderLedLayerFor,B as renderLedStripes,Y as renderStaticLed,G as stripRoom};
@@ -0,0 +1,47 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f";import{eu as e,eC as t,c6 as s,eJ as o,eK as i,ad as n,ee as a,O as r,eL as l,az as d,ef as c,aL as p,eM as u,eN as h,eO as f,A as m,eP as v}from"./houseplan-card-DpMO8ZtV.js";import{L as g,v as w,s as $,a as _,b as y,p as k,c as b,d as C,e as P}from"./led-strip-geometry-CbsAEceS.js";const M="1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f";let F,L=null,U=null;function x(e,t){return L||U||F===e||""===F||(U=(void 0===F?import("./led-strip-field-DftOG2Ox.js"):import(new URL(`./led-strip-field-DftOG2Ox.js?${Date.now()}`,import.meta.url).href)).then(e=>{e.LED_FIELD_FINGERPRINT===o?L=e:F=""},()=>{F=e}).finally(()=>{U=null})),L||U?.then(()=>L&&t()),L}const D=e=>e.some(e=>e.glow&&"on"===e.state),R=e=>e.map(e=>[e[0],e[1]]),E="#383838";function A(o,i){if(!o)return null;const n=Array.isArray(o.masonryGeometry)?o.masonryGeometry:[],a=[...e(o.masonryGeometry),...o.opaqueBodies],r=[];for(const e of a)for(let t=0;t<e.length;t++){const s=e[t],o=e[(t+1)%e.length];s&&o&&r.push({a:[s[0],s[1]],b:[o[0],o[1]]})}const l=25,d=new Map;r.forEach((e,t)=>{const s=Math.floor(Math.min(e.a[0],e.b[0])/l),o=Math.floor(Math.max(e.a[0],e.b[0])/l),i=Math.floor(Math.min(e.a[1],e.b[1])/l),n=Math.floor(Math.max(e.a[1],e.b[1])/l);for(let e=s;e<=o;e++)for(let s=i;s<=n;s++){const o=`${e},${s}`,i=d.get(o);i?i.push(t):d.set(o,[t])}});const c=e=>{let t=1/0,s=1/0,o=-1/0,i=-1/0;for(const n of e)t=Math.min(t,n[0]),s=Math.min(s,n[1]),o=Math.max(o,n[0]),i=Math.max(i,n[1]);return[t,s,o,i]},p=(e,t)=>e[0]>=t[0]&&e[0]<=t[2]&&e[1]>=t[1]&&e[1]<=t[3],u=n.filter(e=>e?.[0]?.length).map(e=>({box:c(e[0]),poly:e})),h=o.opaqueBodies.map(e=>({box:c(e),body:e}));return{faces:r,inside:e=>u.some(({box:s,poly:o})=>p(e,s)&&t([e[0],e[1]],[o]))||h.some(({box:t,body:o})=>p(e,t)&&s([e[0],e[1]],o)),epsilon:i,near:e=>{const t=new Set;for(let s=Math.floor(e[0]/l);s<=Math.floor(e[2]/l);s++)for(let o=Math.floor(e[1]/l);o<=Math.floor(e[3]/l);o++)for(const e of d.get(`${s},${o}`)||[])t.add(e);return[...t].map(e=>r[e])}}}function I(e){const t=e.candidate?.sourceEid||e.device.primary||"",s=t?e.hass?.states?.[t]?.state:void 0,o="unavailable"===s||"unknown"===s||!!t&&!!e.hass&&!e.hass.states?.[t]&&!e.device.virtual,i=Number(e.device.marker?.glow_radius_cm),n=Number.isFinite(i)&&i>0?i/e.cellCm*e.gridPitch:e.defaultRadius,a=o?null:e.candidate?.appearance??null;return{strip:e.strip,device:e.device,state:o?"unavailable":a?"on":"off",glow:e.glow,appearance:a,radius:n}}const T=new WeakMap;function j(e,t,s){const o=P*s;const i=T.get(e);if(i&&i.faces===t&&i.epsilon===t?.epsilon&&i.value.t===o&&i.points.length===e.points.length&&i.points.every((t,s)=>t[0]===e.points[s][0]&&t[1]===e.points[s][1]))return i.value;const n=R(e.points),a=y(n,t,o/2),r={t:o,path:a,d:k(a)};return T.set(e,{faces:t,epsilon:t?.epsilon,points:n,value:r}),r}function G(e){if(!e.views.length)return d``;const t=e.handlers,s=[...e.views].sort((e,t)=>e.strip.id<t.strip.id?1:e.strip.id>t.strip.id?-1:0),o=e.iso;return d`<g class="led-strips" data-hp-led-strips="${s.length}"
data-hp-iso=${o?"raised":m}>
${o?d`<defs><filter id="hp-led-iso-shadow" filterUnits="userSpaceOnUse"
x="-100000" y="-100000" width="200000" height="200000">
<feGaussianBlur stdDeviation="${o.shadow.sigma}"></feGaussianBlur></filter></defs>`:m}
<style>
.led-strip .led-focus { fill: none; stroke: transparent; }
.led-strip:has(.led-hit:focus-visible) .led-focus { stroke: var(--primary-color, #03a9f4); }
.led-strip .led-hit { fill: none; stroke: transparent; cursor: pointer; outline: none; }
</style>
${v(s,e=>e.strip.id,s=>{const{t:i,path:n,d:a}=j(s.strip,e.faces,e.d),r="unavailable"===s.state,l=r?"#9e9e9e":"on"===s.state&&s.appearance?s.appearance.c:"#FFFFFF",c=2*b(i*e.perUnit)/(e.perUnit||1),p=s.device,u=t=>function(e,t,s){const o=e.currentTarget,i=o?.getScreenCTM?.();if(!i||s.views.length<2)return t;const n=i.inverse(),a=[n.a*e.clientX+n.c*e.clientY+n.e,n.b*e.clientX+n.d*e.clientY+n.f],r=s.views.map(e=>{const{t:t,path:o}=j(e.strip,s.faces,s.d);return{id:e.strip.id,points:o.points.map(e=>[e[0]*s.perUnit,e[1]*s.perUnit]),closed:o.closed,thicknessPx:t*s.perUnit}}),l=C([a[0]*s.perUnit,a[1]*s.perUnit],r);return s.views.find(e=>e.strip.id===l)||t}(t,s,e).device,h=o?`translate(0 ${-o.lift})`:m;return d`<g class="led-strip state-${s.state}" data-led-strip="${s.strip.id}"
data-marker="${p.id}" data-state="${s.state}" data-closed="${n.closed?"true":"false"}">
${o?d`<path class="led-iso-shadow" d="${a}" fill="none" stroke="black"
stroke-opacity="${o.shadow.opacity}" stroke-width="${i}" stroke-linecap="round"
stroke-linejoin="round" filter="url(#hp-led-iso-shadow)" pointer-events="none"
transform="translate(${o.shadow.dx} ${o.shadow.dy-o.lift})"></path>
${[1,.5].map(e=>d`<path class="led-iso-edge" d="${a}" fill="none" stroke="${o.edge}"
stroke-width="${i}" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"
transform="translate(0 ${-o.lift+o.depth*e})"></path>`)}`:m}
<g transform=${h}>
<path class="led-outline" d="${a}" fill="none" stroke="${E}" stroke-width="${i}"
stroke-linecap="round" stroke-linejoin="round"
stroke-dasharray=${r?`${2*i} ${1.5*i}`:m}></path>
<path class="led-core" d="${a}" fill="none" stroke="${l}" stroke-width="${i/2}"
stroke-linecap="round" stroke-linejoin="round"
stroke-dasharray=${r?`${2*i} ${1.5*i}`:m}></path>
<path class="led-focus" d="${a}" stroke-width="${1.6*i}" stroke-linecap="round"
stroke-linejoin="round" aria-hidden="true"></path>
${t?d`<path class="led-hit" d="${a}" stroke-width="${c}"
stroke-linecap="round" stroke-linejoin="round" pointer-events="stroke"
role="button" tabindex="0" aria-label="${t.label(p)}"
data-hp="device" data-id="${p.id}"
@click=${e=>t.click(e,u(e))}
@keydown=${e=>t.keydown(e,p)}
@contextmenu=${e=>t.contextmenu(e,u(e))}
@pointerdown=${e=>t.pointerdown(e,u(e))}
@pointermove=${e=>t.pointermove(e,u(e))}
@pointerup=${e=>t.pointerup(e,u(e))}
@pointercancel=${e=>t.pointercancel(e,p)}
@lostpointercapture=${e=>t.pointercancel(e,p)}
@pointerover=${e=>t.pointerover(e,u(e))}
@pointerleave=${()=>t.pointerleave()}
@focus=${e=>t.focus(e,p)}
@blur=${()=>t.blur(p)}></path>`:m}
</g>
</g>`})}
</g>`}function H(e,t,s,o){return(t?e.find(e=>e.id===t):void 0)??(s?e.find(e=>o(s,e)):void 0)}function N(e){const t=new Map(e.devices.map(e=>[e.id,e])),s=g/e.cellCm*e.gridPitch,o=new Map(i({hass:e.hass,devices:e.devices,virtualLights:e.virtualLights,spaceId:e.space.id,defaultColor:e.defaultColor,paletteAlpha:e.paletteAlpha,defaultRadiusUnits:s,cellCm:e.cellCm,gridPitch:e.gridPitch,position:()=>({x:0,y:0})}).map(e=>[e.key,e])),r=[];for(const i of e.space.led_strips||[]){if(!1===i?.active||!i.marker||!w(i.points))continue;const a={...i,points:i.points.map(e=>[e[0]*n,e[1]*n])},l=t.get(a.marker);if(!l||l.space!==e.space.id)continue;if(l.hidden&&!e.showHidden)continue;const d=H(e.space.rooms,l.marker?.room_id,$(R(a.points)),e.inRoom);r.push(I({strip:a,device:l,candidate:o.get(`${e.space.id}|${l.id}`)??null,hass:e.hass,glow:!!d&&e.glowFor(d),defaultRadius:s,cellCm:e.cellCm,gridPitch:e.gridPitch}))}const l=_/e.cellCm*e.gridPitch;return{views:r,faces:A(e.scene,l),d:e.iconPct/100*a(e.space),scene:e.scene,polygons:e.polygons}}const q=new WeakMap;function B(e){for(const t of q.get(e)?.frame.views??[])T.delete(t.strip);q.delete(e),L?.releaseLedField(e)}function S(e){return{shapes:q.get(e)?.frame.views.length??0,...L?.ledFieldStats(e)??{visibility:0,sources:0,visibilityPaths:0,pathChars:0,recomputes:0}}}function O(e,t,s){const o=t.rooms.flatMap(e=>{const t=r(e);return t?[{room:e,poly:t}]:[]}),i=o.length?e._lightBarriers(t,o.map(({room:e,poly:t})=>({r:e,poly:t}))):null,n=[t,e._renderDevices,e._renderPlanHass,s,i,e._mode,e._showAll],a=q.get(e);if(a&&a.key.every((e,t)=>e===n[t]))return a.frame;for(const e of a?.frame.views??[])T.delete(e.strip);const d=e._config?.icon_size??2.5,c=N({space:t,devices:e._renderDevices,hass:e._renderPlanHass,virtualLights:e._virtualLights,defaultColor:e._fillColors.glow_light.c,paletteAlpha:e._fillColors.glow_light.a,cellCm:e._cellCm,gridPitch:e._gridPitch,iconPct:d>8?2.5:d,scene:i,polygons:o,glowFor:e=>l(s,e),inRoom:(t,s)=>e._pointInRoom(t,s),showHidden:"devices"===e._mode&&e._showAll});return!1!==e.isConnected&&q.set(e,{key:n,frame:c}),c}function W(e,t,s,o){const i=O(e,t,s),n=e._stageEl?.clientWidth,a="iso"===e._renderProjection&&"view"===e._mode,r=a?i.d*c:i.d,l="theme-dark"===p(e._renderPlanHass)?"dark":"light",m=!!e._isoLightFloors?.size,v=u(l,m),g=G({views:i.views,d:r,iso:a?{lift:f.lift*r,depth:f.depth*r,edge:h(E,l,m),shadow:{dx:v.dx*r,dy:v.dy*r,sigma:v.sigma*r,opacity:v.opacityWhite}}:null,faces:i.faces,perUnit:n&&o.w?n/o.w:1,handlers:"view"===e._mode?{click:(t,s)=>e._clickDevice(t,s),keydown:(t,s)=>e._keyDevice(t,s),contextmenu:(t,s)=>e._ctxDevice(t,s),pointerdown:(t,s)=>e._pointerDown(t,s),pointermove:(t,s)=>{const o=e._pointerMove(t,s);o&&e._showDeviceTip(t,o)},pointerup:(t,s)=>e._pointerUp(t,s),pointercancel:(t,s)=>e._pointerCancel(t,s),pointerover:(t,s)=>e._showDeviceTip(t,s),pointerleave:()=>e._clearPointerHover(),focus:(t,s)=>e._showDeviceFocusTip(t,s),blur:t=>e._hideDeviceFocusTip(t.id),label:e=>e.name}:null});return"plan"===e._mode||"decor"===e._mode?d`<g class="led-passive" opacity="0.45" pointer-events="none">${g}</g>`:g}function z(e,t,s){if(!1===e.isConnected)return d``;const o=O(e,t,s),i=o.scene&&(D(o.views)||L?.hasLedField(e))?L||x(t.id,()=>!1!==e.isConnected&&e.requestUpdate()):null;return i?i.renderLedField({views:o.views,scene:o.scene,polygons:o.polygons,faces:o.faces,spaceId:t.id,owner:e,requestUpdate:()=>e.requestUpdate(),isConnected:()=>!1!==e.isConnected}):d``}function Y(e){const t=e.space.rooms.flatMap(e=>{const t=r(e);return t?[{room:e,poly:t}]:[]}),s=N({space:e.space,devices:e.devices,hass:e.hass,virtualLights:e.virtualLights,defaultColor:e.defaultColor,paletteAlpha:e.paletteAlpha,cellCm:e.cellCm,gridPitch:e.gridPitch,iconPct:e.iconPct,scene:e.scene,polygons:t,glowFor:e.glowFor,inRoom:e.inRoom,showHidden:!1}),o=e.live?s.views:s.views.map(e=>({...e,state:"off",appearance:null,glow:!1})),i=A({masonryGeometry:e.bodies.masonryGeometry,opaqueBodies:e.bodies.opaqueBodies},_/e.cellCm*e.gridPitch),n=e.isConnected()&&e.scene&&e.live&&(D(o)||L?.hasLedField(e.owner))?x(e.space.id,()=>e.isConnected()&&e.ready()):null;return n||L?.releaseLedField(e.owner),d`${n?n.renderLedField({views:o,scene:e.scene,polygons:t,faces:i,spaceId:e.space.id,owner:e.owner,requestUpdate:e.ready,isConnected:e.isConnected}):m}${G({views:o,d:s.d,faces:i,perUnit:e.perUnit,handlers:null})}`}export{M as LED_RUNTIME_FINGERPRINT,A as faceContext,x as ledField,N as ledFrame,O as ledFrameFor,S as ledStats,I as ledStripView,j as ledStripePath,B as releaseLed,z as renderLedFieldFor,W as renderLedLayerFor,G as renderLedStripes,Y as renderStaticLed,H as stripRoom};
@@ -0,0 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f";import{eR as e,eS as n,eG as a}from"./houseplan-card-DpMO8ZtV.js";function o(a,o){return new e([{code:"en",dictionary:a},{code:"ru",loadDictionary:o.ru},{code:"de",loadDictionary:o.de},{code:"fr",loadDictionary:o.fr}],"1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f",console.warn,n)}function r(e){return function(e,n){return{state:a=>{const o=e.state(a);return"pending"!==o&&n.some(e=>"pending"===e.state(a))?"pending":o},dictionary:n=>e.dictionary(n),ensure:a=>Promise.all([e,...n].map(e=>e.ensure(a))).then(()=>{})}}(a,e)}export{o as n,r as s};
@@ -1 +0,0 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";import{eQ as a,eR as e,eF as n}from"./houseplan-card-CDzf9V5z.js";function c(n,c){return new a([{code:"en",dictionary:n},{code:"ru",loadDictionary:c.ru},{code:"de",loadDictionary:c.de},{code:"fr",loadDictionary:c.fr}],"fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac",console.warn,e)}function o(a){return function(a,e){return{state:n=>{const c=a.state(n);return"pending"!==c&&e.some(a=>"pending"===a.state(n))?"pending":c},dictionary:e=>a.dictionary(e),ensure:n=>Promise.all([a,...e].map(a=>a.ensure(n))).then(()=>{})}}(n,a)}export{c as n,o as s};
@@ -1,6 +1,6 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";import{aG as e,l as t,aJ as s,A as a,eE as o,eF as i,eG as n,E as c,eP as l,c as r}from"./houseplan-card-CDzf9V5z.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id}))}catch{this._spaces=[]}finally{this._spacesLoading=!1}}}get _lang(){return t(this.hass,this._config?.language)}get _schema(){const e=this._spaces||[];return[e.length?{name:"space",selector:{select:{mode:"dropdown",options:e}}}:{name:"space",selector:{text:{}}},{name:"title",selector:{text:{}}},{name:"fit",selector:{select:{mode:"dropdown",options:[{value:"content",label:s(this._lang,"editor.fit_content")},{value:"house",label:s(this._lang,"editor.fit_house")}]}}},{name:"show_button",selector:{boolean:{}}},{name:"button_label",selector:{text:{}}},{name:"button_target",selector:{text:{}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"light_pools",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}}]}render(){if(!this.hass||!this._config)return a;const e=o(this,i,t(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return c;this._loadSpaces();const h=this._lang,_={space:s(h,"editor.space"),title:s(h,"editor.title"),fit:s(h,"editor.framing"),show_button:s(h,"editor.show_button"),button_label:s(h,"editor.button_label"),button_target:s(h,"editor.button_target"),icon_size:s(h,"editor.icon_size"),show_temperature:s(h,"editor.show_temperature"),live_states:s(h,"editor.live_states"),light_pools:s(h,"editor.light_pools"),show_signal:s(h,"editor.show_signal")};return r`<ha-form
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f";import{aG as e,l as t,aJ as s,A as a,eF as o,eG as i,eH as n,E as l,eQ as c,c as r}from"./houseplan-card-DpMO8ZtV.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id}))}catch{this._spaces=[]}finally{this._spacesLoading=!1}}}get _lang(){return t(this.hass,this._config?.language)}get _schema(){const e=this._spaces||[];return[e.length?{name:"space",selector:{select:{mode:"dropdown",options:e}}}:{name:"space",selector:{text:{}}},{name:"title",selector:{text:{}}},{name:"fit",selector:{select:{mode:"dropdown",options:[{value:"content",label:s(this._lang,"editor.fit_content")},{value:"house",label:s(this._lang,"editor.fit_house")}]}}},{name:"show_button",selector:{boolean:{}}},{name:"button_label",selector:{text:{}}},{name:"button_target",selector:{text:{}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"light_pools",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}}]}render(){if(!this.hass||!this._config)return a;const e=o(this,i,t(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return l;this._loadSpaces();const h=this._lang,_={space:s(h,"editor.space"),title:s(h,"editor.title"),fit:s(h,"editor.framing"),show_button:s(h,"editor.show_button"),button_label:s(h,"editor.button_label"),button_target:s(h,"editor.button_target"),icon_size:s(h,"editor.icon_size"),show_temperature:s(h,"editor.show_temperature"),live_states:s(h,"editor.live_states"),light_pools:s(h,"editor.light_pools"),show_signal:s(h,"editor.show_signal")};return r`<ha-form
.hass=${this.hass}
.data=${{...this._config,fit:l(this._config.fit)}}
.data=${{...this._config,fit:c(this._config.fit)}}
.schema=${this._schema}
.computeLabel=${e=>_[e.name]||e.name}
@value-changed=${this._valueChanged}
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";import{c as a,A as s}from"./houseplan-card-CDzf9V5z.js";import{s as e,n as t,a as l,m as r,b as o,c as i,d as u}from"./summary-panel-runtime-loaded-BcDAIp5L.js";import"./form-kit.styles-Dq1Y4tz1.js";const m=m=>{const{host:c,dialog:d,problems:n,t:b}=m,y=n.find(a=>"error"===a.kind),$=d.localShow!==d.baseLocalShow||!d.localOnly&&!e(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(s=>s.path===a),h=a=>a?b(`summary.problem.${a.code}`):"",k=()=>m.close(),g=a`<label class="summary-switch" for="summary-local-show">
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f";import{c as a,A as e}from"./houseplan-card-DpMO8ZtV.js";import{s,n as t,a as l,m as r,b as o,c as i,d as u}from"./summary-panel-runtime-loaded-C7G0wFcw.js";import"./form-kit.styles-C2rEYmUr.js";const m=m=>{const{host:c,dialog:d,problems:n,t:b}=m,y=n.find(a=>"error"===a.kind),$=d.localShow!==d.baseLocalShow||!d.localOnly&&!s(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(e=>e.path===a),h=a=>a?b(`summary.problem.${a.code}`):"",k=()=>m.close(),g=a`<label class="summary-switch" for="summary-local-show">
<span class="summary-switch-caption"><strong>${b("summary.show_local")}</strong>
<small id="summary-local-show-hint">${b("summary.show_local_hint")}</small></span>
<input id="summary-local-show" data-summary-local-show type="checkbox"
@@ -10,31 +10,31 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="fd4a405e9c5a21035258c45feca26dca03d5
dismiss-on-scrim aria-busy=${String(d.busy)}
@hp-close=${k}>
<div class="body summary-editor" @click=${()=>m.closeSource()}>
${d.localOnly?a`<p class="summary-local-hint">${b(d.localOnlyHint)}</p>`:s}
${d.localOnly?a`<p class="summary-local-hint">${b(d.localOnlyHint)}</p>`:e}
<section class="summary-general" aria-labelledby="summary-general-title">
<h3 id="summary-general-title">${b("summary.general_settings")}</h3>
<div class="summary-general-grid">
${d.localOnly?s:a`<div class="summary-field">
${d.localOnly?e:a`<div class="summary-field">
<label for="summary-panel-title">${b("summary.panel_title")}</label>
<input id="summary-panel-title" type="text" .value=${d.draft.title}
?disabled=${d.busy}
data-summary-error=${String(d.attempted&&"title"===y?.path)}
aria-invalid=${"error"===v("title")?.kind?"true":"false"}
@input=${a=>m.mutate(s=>{s.title=a.target.value})} />
${v("title")?a`<div class="summary-problem error">${h(v("title"))}</div>`:s}
@input=${a=>m.mutate(e=>{e.title=a.target.value})} />
${v("title")?a`<div class="summary-problem error">${h(v("title"))}</div>`:e}
</div>`}
${g}
${d.localOnly?s:a`<label class="summary-switch" for="summary-mobile-show">
${d.localOnly?e:a`<label class="summary-switch" for="summary-mobile-show">
<span class="summary-switch-caption"><strong>${b("summary.show_mobile")}</strong>
<small id="summary-mobile-show-hint">${b("summary.show_mobile_hint")}</small></span>
<input id="summary-mobile-show" data-summary-mobile-show type="checkbox"
.checked=${d.draft.show_on_mobile} ?disabled=${!d.localShow||d.busy}
aria-label=${b("summary.show_mobile")} aria-describedby="summary-mobile-show-hint"
@change=${a=>m.mutate(s=>{s.show_on_mobile=a.target.checked})} /></label>`}
@change=${a=>m.mutate(e=>{e.show_on_mobile=a.target.checked})} /></label>`}
</div>
${m.storageUnavailable?a`<div class="summary-problem warning">${b("summary.storage_unavailable")}</div>`:s}
${m.storageUnavailable?a`<div class="summary-problem warning">${b("summary.storage_unavailable")}</div>`:e}
</section>
${d.localOnly?s:a`
${d.localOnly?e:a`
<section class="summary-blocks-card" aria-labelledby="summary-blocks-title">
<header class="summary-blocks-heading">
<div><h3 id="summary-blocks-title">${b("summary.blocks")}</h3>
@@ -42,7 +42,7 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="fd4a405e9c5a21035258c45feca26dca03d5
<span class="summary-block-count">${b("summary.block_count").replace("{count}",String(d.draft.blocks.length)).replace("{limit}","10")}</span>
</header>
<div class="summary-editor-blocks">
${d.draft.blocks.map((e,t)=>{const u=`blocks.${t}`,n=v(`${u}.scope`);return a`<article class="summary-editor-block"
${d.draft.blocks.map((s,t)=>{const u=`blocks.${t}`,n=v(`${u}.scope`);return a`<article class="summary-editor-block"
@dragover=${a=>a.preventDefault()}
@drop=${a=>m.drop(a,`block:${t}`)}>
<div class="summary-block-head">
@@ -57,40 +57,40 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="fd4a405e9c5a21035258c45feca26dca03d5
?disabled=${t===d.draft.blocks.length-1||d.busy}
@click=${()=>m.mutate(a=>{a.blocks=r(a.blocks,t,t+1)})}>${l("down")}</button>
</div>
<input class="summary-block-title" type="text" .value=${e.title}
<input class="summary-block-title" type="text" .value=${s.title}
placeholder=${b("summary.block_title")} aria-label=${b("summary.block_title")}
?disabled=${d.busy}
data-summary-error=${String(d.attempted&&y?.path===`${u}.title`)}
aria-invalid=${"error"===v(`${u}.title`)?.kind?"true":"false"}
@input=${a=>m.mutate(s=>{s.blocks[t].title=a.target.value})} />
@input=${a=>m.mutate(e=>{e.blocks[t].title=a.target.value})} />
<button class="summary-icon-button summary-visibility" type="button"
?disabled=${d.busy} aria-pressed=${String(e.visible)}
title=${b(e.visible?"summary.hide_block":"summary.show_block")}
aria-label=${b(e.visible?"summary.hide_block":"summary.show_block")}
@click=${()=>m.mutate(a=>{a.blocks[t].visible=!a.blocks[t].visible})}>${l(e.visible?"eye":"eyeOff")}</button>
${v(`${u}.title`)?a`<div class="summary-problem error summary-block-title-error">${h(v(`${u}.title`))}</div>`:s}
?disabled=${d.busy} aria-pressed=${String(s.visible)}
title=${b(s.visible?"summary.hide_block":"summary.show_block")}
aria-label=${b(s.visible?"summary.hide_block":"summary.show_block")}
@click=${()=>m.mutate(a=>{a.blocks[t].visible=!a.blocks[t].visible})}>${l(s.visible?"eye":"eyeOff")}</button>
${v(`${u}.title`)?a`<div class="summary-problem error summary-block-title-error">${h(v(`${u}.title`))}</div>`:e}
<div class="summary-scope">
<select .value=${e.scope.type} ?disabled=${d.busy}
<select .value=${s.scope.type} ?disabled=${d.busy}
aria-label=${b("summary.scope")}
@change=${a=>m.mutate(s=>{s.blocks[t].scope="space"===a.target.value?{type:"space",space_id:c._space}:{type:"all"}})}>
<option value="all" ?selected=${"all"===e.scope.type}>${b("summary.scope_all")}</option>
<option value="space" ?selected=${"space"===e.scope.type}>${b("summary.scope_space")}</option>
@change=${a=>m.mutate(e=>{e.blocks[t].scope="space"===a.target.value?{type:"space",space_id:c._space}:{type:"all"}})}>
<option value="all" ?selected=${"all"===s.scope.type}>${b("summary.scope_all")}</option>
<option value="space" ?selected=${"space"===s.scope.type}>${b("summary.scope_space")}</option>
</select>
${"space"===e.scope.type?a`<select .value=${e.scope.space_id}
${"space"===s.scope.type?a`<select .value=${s.scope.space_id}
?disabled=${d.busy} aria-label=${b("summary.scope_space")}
data-summary-error=${String(d.attempted&&y?.path===`${u}.scope`)}
aria-invalid=${"error"===n?.kind?"true":"false"}
@change=${a=>m.mutate(s=>{const e=s.blocks[t].scope;"space"===e.type&&(e.space_id=a.target.value)})}>
${c._model.some(a=>a.id===e.scope.space_id)?s:a`<option value=${e.scope.space_id} selected>${e.scope.space_id}</option>`}
${c._model.map(s=>a`<option value=${s.id}
?selected=${s.id===e.scope.space_id}>${s.title}</option>`)}
</select>`:s}
@change=${a=>m.mutate(e=>{const s=e.blocks[t].scope;"space"===s.type&&(s.space_id=a.target.value)})}>
${c._model.some(a=>a.id===s.scope.space_id)?e:a`<option value=${s.scope.space_id} selected>${s.scope.space_id}</option>`}
${c._model.map(e=>a`<option value=${e.id}
?selected=${e.id===s.scope.space_id}>${e.title}</option>`)}
</select>`:e}
</div>
${n?a`<div class="summary-problem summary-scope-problem ${n.kind}">${h(n)}</div>`:s}
${n?a`<div class="summary-problem summary-scope-problem ${n.kind}">${h(n)}</div>`:e}
</div>
<div class="summary-block-body">
<div class="summary-editor-values">
${e.values.map((i,c)=>{const n=`${u}.values.${c}`,$=v(`${n}.source`),p=m.sourceToken(i.source),k=d.activeSource?.blockId===e.id&&d.activeSource.valueId===i.id,g="system"===i.source.type?b(`summary.system.${i.source.key}`):i.source.entity_id?m.entityIndex.labels.get(i.source.entity_id)||i.source.entity_id:b("summary.select_source"),_="system"===i.source.type?b("summary.system_source"):i.source.entity_id,f=k?o(m.entityIndex,d.entityFilter):null,w="entity"===i.source.type&&!!i.source.entity_id&&!m.entityIndex.labels.has(i.source.entity_id),S=`${e.id}\n${i.id}`;return a`<div class="summary-editor-value"
${s.values.map((i,c)=>{const n=`${u}.values.${c}`,$=v(`${n}.source`),p=m.sourceToken(i.source),k=d.activeSource?.blockId===s.id&&d.activeSource.valueId===i.id,g="system"===i.source.type?b(`summary.system.${i.source.key}`):i.source.entity_id?m.entityIndex.labels.get(i.source.entity_id)||i.source.entity_id:b("summary.select_source"),_="system"===i.source.type?b("summary.system_source"):i.source.entity_id,f=k?o(m.entityIndex,d.entityFilter):null,w="entity"===i.source.type&&!!i.source.entity_id&&!m.entityIndex.labels.has(i.source.entity_id),S=`${s.id}\n${i.id}`;return a`<div class="summary-editor-value"
@dragover=${a=>{a.preventDefault(),a.stopPropagation()}}
@drop=${a=>m.drop(a,`value:${t}:${c}`)}>
<span class="summary-drag" draggable=${String(!d.busy)} title=${b("summary.drag")}
@@ -101,7 +101,7 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="fd4a405e9c5a21035258c45feca26dca03d5
@click=${()=>m.mutate(a=>{a.blocks[t].values=r(a.blocks[t].values,c,c-1)})}>${l("up")}</button>
<button class="summary-icon-button" type="button" title=${b("summary.down")}
aria-label=${b("summary.down")}
?disabled=${c===e.values.length-1||d.busy}
?disabled=${c===s.values.length-1||d.busy}
@click=${()=>m.mutate(a=>{a.blocks[t].values=r(a.blocks[t].values,c,c+1)})}>${l("down")}</button>
</div>
<div class="summary-value-label">
@@ -109,8 +109,8 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="fd4a405e9c5a21035258c45feca26dca03d5
placeholder=${b("summary.value_name")} aria-label=${b("summary.value_name")}
data-summary-error=${String(d.attempted&&y?.path===`${n}.label`)}
aria-invalid=${"error"===v(`${n}.label`)?.kind?"true":"false"}
@input=${a=>m.mutate(s=>{s.blocks[t].values[c].label=a.target.value})} />
${v(`${n}.label`)?a`<div class="summary-problem error">${h(v(`${n}.label`))}</div>`:s}
@input=${a=>m.mutate(e=>{e.blocks[t].values[c].label=a.target.value})} />
${v(`${n}.label`)?a`<div class="summary-problem error">${h(v(`${n}.label`))}</div>`:e}
</div>
<div class="summary-source-field">
<button class="summary-source" type="button"
@@ -119,9 +119,9 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="fd4a405e9c5a21035258c45feca26dca03d5
data-summary-error=${String(d.attempted&&y?.path===`${n}.source`)}
aria-invalid=${"error"===$?.kind?"true":"false"}
aria-haspopup="listbox" aria-expanded=${k?"true":"false"}
@click=${a=>{a.stopPropagation(),k?m.closeSource():m.openSource(e.id,i.id)}}>
@click=${a=>{a.stopPropagation(),k?m.closeSource():m.openSource(s.id,i.id)}}>
<span class="summary-source-caption"><strong>${g}</strong>
${_?a`<small>${_}</small>`:s}</span>
${_?a`<small>${_}</small>`:e}</span>
${l("chevron")}
</button>
${k&&f?a`<div class="summary-source-picker"
@@ -135,39 +135,39 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="fd4a405e9c5a21035258c45feca26dca03d5
<div class="summary-source-results" role="listbox"
aria-label=${b("summary.select_source")}>
<div class="summary-source-group">${b("summary.system_group")}</div>
${["device_count","total_area","datetime"].map(s=>a`
${["device_count","total_area","datetime"].map(e=>a`
<button type="button" role="option"
?disabled=${d.busy}
aria-selected=${p===`system:${s}`?"true":"false"}
@click=${()=>m.setSource(e.id,i.id,`system:${s}`)}>
${b(`summary.system.${s}`)}
aria-selected=${p===`system:${e}`?"true":"false"}
@click=${()=>m.setSource(s.id,i.id,`system:${e}`)}>
${b(`summary.system.${e}`)}
</button>`)}
${w?a`<div class="summary-source-group">${b("summary.current_source")}</div>
<button type="button" role="option" class="broken" aria-selected="true"
?disabled=${d.busy}
@click=${()=>m.setSource(e.id,i.id,p)}>
@click=${()=>m.setSource(s.id,i.id,p)}>
${g}
</button>`:s}
</button>`:e}
<div class="summary-source-group">${b("summary.entities_group")}</div>
${f.entries.map(s=>a`<button type="button" role="option"
${f.entries.map(e=>a`<button type="button" role="option"
?disabled=${d.busy}
aria-selected=${p===`entity:${s.id}`?"true":"false"}
@click=${()=>m.setSource(e.id,i.id,`entity:${s.id}`)}>
<span>${s.label}</span><small>${s.id}</small>
aria-selected=${p===`entity:${e.id}`?"true":"false"}
@click=${()=>m.setSource(s.id,i.id,`entity:${e.id}`)}>
<span>${e.label}</span><small>${e.id}</small>
</button>`)}
${f.total?s:a`<div class="summary-empty">${b("summary.no_search_results")}</div>`}
${f.truncated?a`<div class="summary-refine">${b("summary.refine_search")}</div>`:s}
${f.total?e:a`<div class="summary-empty">${b("summary.no_search_results")}</div>`}
${f.truncated?a`<div class="summary-refine">${b("summary.refine_search")}</div>`:e}
</div>
</div>`:s}
${$?a`<div class="summary-problem ${$.kind}">${h($)}</div>`:s}
</div>`:e}
${$?a`<div class="summary-problem ${$.kind}">${h($)}</div>`:e}
</div>
<button class="summary-icon-button summary-value-remove" type="button"
title=${b("btn.delete")} aria-label=${b("btn.delete")} ?disabled=${d.busy}
@click=${()=>m.mutate(a=>{a.blocks[t].values.splice(c,1)})}>${l("close")}</button>
</div>`})}
<button class="summary-add summary-add-value" type="button"
?disabled=${e.values.length>=20||d.busy}
title=${e.values.length>=20?b("summary.limit_values"):""}
?disabled=${s.values.length>=20||d.busy}
title=${s.values.length>=20?b("summary.limit_values"):""}
@click=${()=>m.mutate(a=>{a.blocks[t].values.push(i())})}>
${l("plus")}${b("summary.add_value")}
</button>
@@ -186,11 +186,11 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="fd4a405e9c5a21035258c45feca26dca03d5
${l("plus")}${b("summary.add_block")}
</button>
</section>
${d.error?a`<div class="summary-problem error" role="alert">${d.error}</div>`:s}
${d.error?a`<div class="summary-problem error" role="alert">${d.error}</div>`:e}
${d.conflict?a`<button class="btn ghost summary-reload" type="button"
?disabled=${d.busy} @click=${()=>m.reload()}>
<ha-icon icon="mdi:reload"></ha-icon>${b("summary.reload_current")}
</button>`:s}
</button>`:e}
`}
</div>
<div class="row summary-editor-footer" slot="footer">
@@ -0,0 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f";import{e$ as e,O as t,b5 as n,M as i,af as o,ad as r,cf as s,f0 as a,ce as l,b4 as c,b3 as d,b6 as u,f1 as f,f2 as m,ch as g,f3 as v}from"./houseplan-card-DpMO8ZtV.js";function y(e){if(!e.registry.authoritative)return null;const t=new Set,n=u(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const o=String(i.binding||"").indexOf(":");if(o<1)continue;const r=i.binding.slice(0,o),s=i.binding.slice(o+1),a="device"===r?e.registry.devices?.[s]:null,l="entity"===r?e.registry.entities?.[s]:null,c="device"===r?s:l?.device_id,d="device"===r?a?.area_id:l?.area_id||c&&e.registry.devices?.[c]?.area_id,u="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||d||"",f=u&&e.areaToSpace[u]||i.space||e.firstSpaceId;c&&e.registry.devices?.[c]&&e.spaceIds.has(f)&&(!n.devices.has(c)||"entity"===r&&n.liveEntities.has(s))&&t.add(c)}return t}function _(e,t){return e?.length?t?.length?v(e,t):e:t}function b(e,t){const n=c(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,o,r);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:d(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*h(c,d,u=b){try{let f=0;for(const m of d){const d=c.spaces.find(e=>String(e?.id)===m.id);if(!d)continue;const g=e(d,m),v=u(m,g);let y=null;for(const e of m.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const l=n(m.rooms,e.id,g.walls,g.openCuts,i,g.cellCm,o,r,v.roomGeom,v.multiWallNodes)||a;y=_(y,s(l,g.physicalBodies)),yield}const b=a(y||[],m.stairs);let h=b.next();for(;!h.done;)yield,h=b.next();y=h.value;const p=g.cellCm/o;f+=l(y)*p*p/1e4}return f}catch{return null}}function p(e,t,n=b){const i=h(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function S(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:g(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function C(e,t){const n=e?.states?.[t];if(!n)return null;const i=f(e,t);return i?m(i,String(n.attributes?.unit_of_measurement||"")):null}export{h as cleanFloorAreaSteps,y as representedHaDeviceIds,b as spaceWallGeometry,C as summaryEntityValue,S as summarySystemValue,p as totalCleanFloorAreaM2};
@@ -1 +0,0 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";import{e_ as e,O as t,b5 as n,M as i,af as o,ad as r,ce as s,e$ as a,cd as c,b4 as l,b3 as d,b6 as u,f0 as f,f1 as m,cg as g,f2 as v}from"./houseplan-card-CDzf9V5z.js";function y(e){if(!e.registry.authoritative)return null;const t=new Set,n=u(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const o=String(i.binding||"").indexOf(":");if(o<1)continue;const r=i.binding.slice(0,o),s=i.binding.slice(o+1),a="device"===r?e.registry.devices?.[s]:null,c="entity"===r?e.registry.entities?.[s]:null,l="device"===r?s:c?.device_id,d="device"===r?a?.area_id:c?.area_id||l&&e.registry.devices?.[l]?.area_id,u="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||d||"",f=u&&e.areaToSpace[u]||i.space||e.firstSpaceId;l&&e.registry.devices?.[l]&&e.spaceIds.has(f)&&(!n.devices.has(l)||"entity"===r&&n.liveEntities.has(s))&&t.add(l)}return t}function _(e,t){return e?.length?t?.length?v(e,t):e:t}function h(e,t){const n=l(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,o,r);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:d(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*p(l,d,u=h){try{let f=0;for(const m of d){const d=l.spaces.find(e=>String(e?.id)===m.id);if(!d)continue;const g=e(d,m),v=u(m,g);let y=null;for(const e of m.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const c=n(m.rooms,e.id,g.walls,g.openCuts,i,g.cellCm,o,r,v.roomGeom,v.multiWallNodes)||a;y=_(y,s(c,g.physicalBodies)),yield}const h=a(y||[],m.stairs);let p=h.next();for(;!p.done;)yield,p=h.next();y=p.value;const b=g.cellCm/o;f+=c(y)*b*b/1e4}return f}catch{return null}}function b(e,t,n=h){const i=p(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function S(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:g(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function C(e,t){const n=e?.states?.[t];if(!n)return null;const i=f(e,t);return i?m(i,String(n.attributes?.unit_of_measurement||"")):null}export{p as cleanFloorAreaSteps,y as representedHaDeviceIds,h as spaceWallGeometry,C as summaryEntityValue,S as summarySystemValue,b as totalCleanFloorAreaM2};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";var e={"furn.title":"Möbelbibliothek","furn.symbol":"Symbol","furn.group_furniture":"Möbel","furn.group_appliance":"Geräte","furn.group_sanitary":"Sanitär","furn.group_other":"Sonstiges","furn.width":"Breite","furn.depth":"Tiefe","furn.back_to_categories":"Alle Kategorien","furn.pick_hint":"Wählen Sie eine Kategorie und dann ein Symbol.","furn.place_hint":"Klicken Sie auf den Plan — das Element wird an der nächsten Wand platziert. Mit Shift wird es frei platziert.","furn.cat_air_conditioner":"Klimaanlagen","furn.cat_armchair":"Sessel","furn.cat_bathtub":"Badewannen","furn.cat_bed":"Betten","furn.cat_bidet":"Bidets","furn.cat_boiler":"Warmwasserbereiter","furn.cat_chair":"Stühle","furn.cat_coffee_table":"Couchtische","furn.cat_computer":"Computer","furn.cat_cooktop":"Kochfelder","furn.cat_dining_table":"Esstische","furn.cat_dishwasher":"Geschirrspüler","furn.cat_dryer":"Wäschetrockner","furn.cat_exercise":"Fitnessgerät","furn.cat_fireplace":"Kamine","furn.cat_fridge":"Kühlschränke","furn.cat_hood":"Dunstabzugshaube","furn.cat_kitchen_cabinet":"Küchenschränke","furn.cat_kitchen_sink":"Küchenspülen","furn.cat_nightstand":"Schränke","furn.cat_oven":"Backofen","furn.cat_plant":"Pflanzen","furn.cat_rug":"Teppiche","furn.cat_shelving":"Regale","furn.cat_shower":"Duschen","furn.cat_sink":"Waschbecken","furn.cat_sofa":"Sofas","furn.cat_stairs":"Treppen","furn.cat_toilet":"Toiletten","furn.cat_tv":"Fernseher","furn.cat_wardrobe":"Kleiderschränke","furn.cat_washer":"Waschmaschinen","furn.cat_work_table":"Schreibtische","furn.sym_exercise":"Fitnessgerät","furn.sym_computer":"Computer","furn.sym_hood":"Dunstabzugshaube","furn.sym_oven":"Backofen","furn.sym_sofa":"Zweisitzer-Sofa","furn.sym_sofa_three_seat":"Dreisitzer-Sofa","furn.sym_sofa_corner_right":"Ecksofa rechts","furn.sym_armchair":"Polstersessel","furn.sym_armchair_office":"Bürostuhl","furn.sym_coffee_table":"Rechteckiger Couchtisch","furn.sym_coffee_table_round":"Runder Couchtisch","furn.sym_coffee_table_oval":"Ovaler Couchtisch","furn.sym_coffee_table_rounded":"Abgerundeter Couchtisch","furn.sym_table_dining":"Rechteckiger Esstisch","furn.sym_table_round":"Rundtisch","furn.sym_table_dining_oval":"Ovaler Esstisch","furn.sym_table_dining_rounded":"Abgerundeter Esstisch","furn.sym_chair":"Stuhl","furn.sym_chair_bar":"Barhocker","furn.sym_desk":"Rechteckiger Schreibtisch","furn.sym_desk_corner":"Eckschreibtisch","furn.sym_bed_double":"Doppelbett","furn.sym_bed_single":"Einzelbett","furn.sym_nightstand":"Nachttisch","furn.sym_cabinet_tv":"TV-Schrank","furn.sym_cabinet_shoe":"Schuhschrank","furn.sym_cabinet_sink":"Waschtischunterschrank","furn.sym_wardrobe":"Kleiderschrank","furn.sym_bookshelf":"Bücherschrank","furn.sym_wall_unit":"Schrankwand","furn.sym_kitchen_floor":"Küchen-Unterschrank","furn.sym_kitchen_floor_corner":"Küchen-Eckunterschrank","furn.sym_kitchen_wall":"Küchen-Hängeschrank","furn.sym_kitchen_wall_corner":"Küchen-Eckhängeschrank","furn.sym_shelf_floor":"Standregal","furn.sym_shelf_wall":"Wandregal","furn.sym_fridge":"Kühlschrank","furn.sym_stove":"Vierflammiges Kochfeld","furn.sym_cooktop_two":"Zweiflammiges Kochfeld","furn.sym_dishwasher":"Geschirrspüler","furn.sym_washer":"Waschmaschine","furn.sym_dryer":"Wäschetrockner","furn.sym_tv":"Fernseher mit Standfuß","furn.sym_tv_wall":"Wandfernseher","furn.sym_ac":"Klimaanlage","furn.sym_water_heater":"Wassererhitzer","furn.sym_toilet":"Stand-WC","furn.sym_toilet_built_in":"Wand-WC","furn.sym_bathtub":"Rechteckige Badewanne","furn.sym_bathtub_corner":"Eckbadewanne","furn.sym_shower":"Dusche","furn.sym_sink":"Waschbecken","furn.sym_kitchen_sink":"Einzel-Küchenspüle","furn.sym_kitchen_sink_double":"Doppel-Küchenspüle","furn.sym_bidet":"Stand-Bidet","furn.sym_bidet_built_in":"Wand-Bidet","furn.sym_stairs":"Treppe","furn.sym_fireplace":"Kamin","furn.sym_plant":"Pflanze","furn.sym_rug":"Teppich"};const r="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";export{e as dictionary,r as fingerprint};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f";var e={"furn.title":"Möbelbibliothek","furn.symbol":"Symbol","furn.group_furniture":"Möbel","furn.group_appliance":"Geräte","furn.group_sanitary":"Sanitär","furn.group_other":"Sonstiges","furn.width":"Breite","furn.depth":"Tiefe","furn.back_to_categories":"Alle Kategorien","furn.pick_hint":"Wählen Sie eine Kategorie und dann ein Symbol.","furn.place_hint":"Klicken Sie auf den Plan — das Element wird an der nächsten Wand platziert. Mit Shift wird es frei platziert.","furn.cat_air_conditioner":"Klimaanlagen","furn.cat_armchair":"Sessel","furn.cat_bathtub":"Badewannen","furn.cat_bed":"Betten","furn.cat_bidet":"Bidets","furn.cat_boiler":"Warmwasserbereiter","furn.cat_chair":"Stühle","furn.cat_coffee_table":"Couchtische","furn.cat_computer":"Computer","furn.cat_cooktop":"Kochfelder","furn.cat_dining_table":"Esstische","furn.cat_dishwasher":"Geschirrspüler","furn.cat_dryer":"Wäschetrockner","furn.cat_exercise":"Fitnessgerät","furn.cat_fireplace":"Kamine","furn.cat_fridge":"Kühlschränke","furn.cat_hood":"Dunstabzugshaube","furn.cat_kitchen_cabinet":"Küchenschränke","furn.cat_kitchen_sink":"Küchenspülen","furn.cat_nightstand":"Schränke","furn.cat_oven":"Backofen","furn.cat_plant":"Pflanzen","furn.cat_rug":"Teppiche","furn.cat_shelving":"Regale","furn.cat_shower":"Duschen","furn.cat_sink":"Waschbecken","furn.cat_sofa":"Sofas","furn.cat_stairs":"Treppen","furn.cat_toilet":"Toiletten","furn.cat_tv":"Fernseher","furn.cat_wardrobe":"Kleiderschränke","furn.cat_washer":"Waschmaschinen","furn.cat_work_table":"Schreibtische","furn.sym_exercise":"Fitnessgerät","furn.sym_computer":"Computer","furn.sym_hood":"Dunstabzugshaube","furn.sym_oven":"Backofen","furn.sym_sofa":"Zweisitzer-Sofa","furn.sym_sofa_three_seat":"Dreisitzer-Sofa","furn.sym_sofa_corner_right":"Ecksofa rechts","furn.sym_armchair":"Polstersessel","furn.sym_armchair_office":"Bürostuhl","furn.sym_coffee_table":"Rechteckiger Couchtisch","furn.sym_coffee_table_round":"Runder Couchtisch","furn.sym_coffee_table_oval":"Ovaler Couchtisch","furn.sym_coffee_table_rounded":"Abgerundeter Couchtisch","furn.sym_table_dining":"Rechteckiger Esstisch","furn.sym_table_round":"Rundtisch","furn.sym_table_dining_oval":"Ovaler Esstisch","furn.sym_table_dining_rounded":"Abgerundeter Esstisch","furn.sym_chair":"Stuhl","furn.sym_chair_bar":"Barhocker","furn.sym_desk":"Rechteckiger Schreibtisch","furn.sym_desk_corner":"Eckschreibtisch","furn.sym_bed_double":"Doppelbett","furn.sym_bed_single":"Einzelbett","furn.sym_nightstand":"Nachttisch","furn.sym_cabinet_tv":"TV-Schrank","furn.sym_cabinet_shoe":"Schuhschrank","furn.sym_cabinet_sink":"Waschtischunterschrank","furn.sym_wardrobe":"Kleiderschrank","furn.sym_bookshelf":"Bücherschrank","furn.sym_wall_unit":"Schrankwand","furn.sym_kitchen_floor":"Küchen-Unterschrank","furn.sym_kitchen_floor_corner":"Küchen-Eckunterschrank","furn.sym_kitchen_wall":"Küchen-Hängeschrank","furn.sym_kitchen_wall_corner":"Küchen-Eckhängeschrank","furn.sym_shelf_floor":"Standregal","furn.sym_shelf_wall":"Wandregal","furn.sym_fridge":"Kühlschrank","furn.sym_stove":"Vierflammiges Kochfeld","furn.sym_cooktop_two":"Zweiflammiges Kochfeld","furn.sym_dishwasher":"Geschirrspüler","furn.sym_washer":"Waschmaschine","furn.sym_dryer":"Wäschetrockner","furn.sym_tv":"Fernseher mit Standfuß","furn.sym_tv_wall":"Wandfernseher","furn.sym_ac":"Klimaanlage","furn.sym_water_heater":"Wassererhitzer","furn.sym_toilet":"Stand-WC","furn.sym_toilet_built_in":"Wand-WC","furn.sym_bathtub":"Rechteckige Badewanne","furn.sym_bathtub_corner":"Eckbadewanne","furn.sym_shower":"Dusche","furn.sym_sink":"Waschbecken","furn.sym_kitchen_sink":"Einzel-Küchenspüle","furn.sym_kitchen_sink_double":"Doppel-Küchenspüle","furn.sym_bidet":"Stand-Bidet","furn.sym_bidet_built_in":"Wand-Bidet","furn.sym_stairs":"Treppe","furn.sym_fireplace":"Kamin","furn.sym_plant":"Pflanze","furn.sym_rug":"Teppich"};const r="1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f";export{e as dictionary,r as fingerprint};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";var e={"furn.title":"Bibliothèque de mobilier","furn.symbol":"Symbole","furn.group_furniture":"Mobilier","furn.group_appliance":"Électroménager","furn.group_sanitary":"Sanitaires","furn.group_other":"Autre","furn.width":"Largeur","furn.depth":"Profondeur","furn.back_to_categories":"Toutes les catégories","furn.pick_hint":"Choisissez un symbole, puis cliquez sur le plan.","furn.place_hint":"Cliquez sur le plan — le meuble se place contre le mur le plus proche. Maj permet un placement libre.","furn.cat_air_conditioner":"Climatiseurs","furn.cat_armchair":"Fauteuils","furn.cat_bathtub":"Baignoires","furn.cat_bed":"Lits","furn.cat_bidet":"Bidets","furn.cat_boiler":"Chauffe-eau","furn.cat_chair":"Chaises","furn.cat_coffee_table":"Tables basses","furn.cat_computer":"Ordinateur","furn.cat_cooktop":"Plaques de cuisson","furn.cat_dining_table":"Tables à manger","furn.cat_dishwasher":"Lave-vaisselle","furn.cat_dryer":"Sèche-linge","furn.cat_exercise":"Équipement de sport","furn.cat_fireplace":"Cheminées","furn.cat_fridge":"Réfrigérateurs","furn.cat_hood":"Hotte","furn.cat_kitchen_cabinet":"Meubles de cuisine","furn.cat_kitchen_sink":"Éviers de cuisine","furn.cat_nightstand":"Meubles","furn.cat_oven":"Four","furn.cat_plant":"Plantes","furn.cat_rug":"Tapis","furn.cat_shelving":"Étagères","furn.cat_shower":"Douches","furn.cat_sink":"Lavabos","furn.cat_sofa":"Canapés","furn.cat_stairs":"Escaliers","furn.cat_toilet":"Toilettes","furn.cat_tv":"Téléviseurs","furn.cat_wardrobe":"Armoires","furn.cat_washer":"Lave-linge","furn.cat_work_table":"Bureaux","furn.sym_exercise":"Équipement de sport","furn.sym_computer":"Ordinateur","furn.sym_hood":"Hotte","furn.sym_oven":"Four","furn.sym_sofa":"Canapé","furn.sym_sofa_three_seat":"Canapé trois places","furn.sym_sofa_corner_right":"Canapé d'angle droit","furn.sym_armchair":"Fauteuil","furn.sym_armchair_office":"Chaise de bureau","furn.sym_coffee_table":"Table basse","furn.sym_coffee_table_round":"Table basse ronde","furn.sym_coffee_table_oval":"Table basse ovale","furn.sym_coffee_table_rounded":"Table basse arrondie","furn.sym_table_dining":"Table à manger","furn.sym_table_round":"Table ronde","furn.sym_table_dining_oval":"Table à manger ovale","furn.sym_table_dining_rounded":"Table à manger arrondie","furn.sym_chair":"Chaise","furn.sym_chair_bar":"Tabouret de bar","furn.sym_desk":"Bureau","furn.sym_desk_corner":"Bureau d'angle","furn.sym_bed_double":"Lit double","furn.sym_bed_single":"Lit simple","furn.sym_nightstand":"Table de chevet","furn.sym_cabinet_tv":"Meuble TV","furn.sym_cabinet_shoe":"Meuble à chaussures","furn.sym_cabinet_sink":"Meuble sous lavabo","furn.sym_wardrobe":"Armoire","furn.sym_bookshelf":"Bibliothèque","furn.sym_wall_unit":"Élément mural","furn.sym_kitchen_floor":"Module de cuisine bas","furn.sym_kitchen_floor_corner":"Module de cuisine bas d'angle","furn.sym_kitchen_wall":"Module de cuisine haut","furn.sym_kitchen_wall_corner":"Module de cuisine haut d'angle","furn.sym_shelf_floor":"Étagère au sol","furn.sym_shelf_wall":"Étagère murale","furn.sym_fridge":"Réfrigérateur","furn.sym_stove":"Cuisinière","furn.sym_cooktop_two":"Plaque à deux feux","furn.sym_dishwasher":"Lave-vaisselle","furn.sym_washer":"Lave-linge","furn.sym_dryer":"Sèche-linge","furn.sym_tv":"Téléviseur","furn.sym_tv_wall":"Téléviseur mural","furn.sym_ac":"Climatiseur","furn.sym_water_heater":"Chauffe-eau","furn.sym_toilet":"Toilettes","furn.sym_toilet_built_in":"Toilettes suspendues","furn.sym_bathtub":"Baignoire","furn.sym_bathtub_corner":"Baignoire d'angle","furn.sym_shower":"Douche","furn.sym_sink":"Lavabo","furn.sym_kitchen_sink":"Évier de cuisine","furn.sym_kitchen_sink_double":"Évier de cuisine double","furn.sym_bidet":"Bidet","furn.sym_bidet_built_in":"Bidet suspendu","furn.sym_stairs":"Escalier","furn.sym_fireplace":"Cheminée","furn.sym_plant":"Plante","furn.sym_rug":"Tapis"};const r="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";export{e as dictionary,r as fingerprint};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f";var e={"furn.title":"Bibliothèque de mobilier","furn.symbol":"Symbole","furn.group_furniture":"Mobilier","furn.group_appliance":"Électroménager","furn.group_sanitary":"Sanitaires","furn.group_other":"Autre","furn.width":"Largeur","furn.depth":"Profondeur","furn.back_to_categories":"Toutes les catégories","furn.pick_hint":"Choisissez un symbole, puis cliquez sur le plan.","furn.place_hint":"Cliquez sur le plan — le meuble se place contre le mur le plus proche. Maj permet un placement libre.","furn.cat_air_conditioner":"Climatiseurs","furn.cat_armchair":"Fauteuils","furn.cat_bathtub":"Baignoires","furn.cat_bed":"Lits","furn.cat_bidet":"Bidets","furn.cat_boiler":"Chauffe-eau","furn.cat_chair":"Chaises","furn.cat_coffee_table":"Tables basses","furn.cat_computer":"Ordinateur","furn.cat_cooktop":"Plaques de cuisson","furn.cat_dining_table":"Tables à manger","furn.cat_dishwasher":"Lave-vaisselle","furn.cat_dryer":"Sèche-linge","furn.cat_exercise":"Équipement de sport","furn.cat_fireplace":"Cheminées","furn.cat_fridge":"Réfrigérateurs","furn.cat_hood":"Hotte","furn.cat_kitchen_cabinet":"Meubles de cuisine","furn.cat_kitchen_sink":"Éviers de cuisine","furn.cat_nightstand":"Meubles","furn.cat_oven":"Four","furn.cat_plant":"Plantes","furn.cat_rug":"Tapis","furn.cat_shelving":"Étagères","furn.cat_shower":"Douches","furn.cat_sink":"Lavabos","furn.cat_sofa":"Canapés","furn.cat_stairs":"Escaliers","furn.cat_toilet":"Toilettes","furn.cat_tv":"Téléviseurs","furn.cat_wardrobe":"Armoires","furn.cat_washer":"Lave-linge","furn.cat_work_table":"Bureaux","furn.sym_exercise":"Équipement de sport","furn.sym_computer":"Ordinateur","furn.sym_hood":"Hotte","furn.sym_oven":"Four","furn.sym_sofa":"Canapé","furn.sym_sofa_three_seat":"Canapé trois places","furn.sym_sofa_corner_right":"Canapé d'angle droit","furn.sym_armchair":"Fauteuil","furn.sym_armchair_office":"Chaise de bureau","furn.sym_coffee_table":"Table basse","furn.sym_coffee_table_round":"Table basse ronde","furn.sym_coffee_table_oval":"Table basse ovale","furn.sym_coffee_table_rounded":"Table basse arrondie","furn.sym_table_dining":"Table à manger","furn.sym_table_round":"Table ronde","furn.sym_table_dining_oval":"Table à manger ovale","furn.sym_table_dining_rounded":"Table à manger arrondie","furn.sym_chair":"Chaise","furn.sym_chair_bar":"Tabouret de bar","furn.sym_desk":"Bureau","furn.sym_desk_corner":"Bureau d'angle","furn.sym_bed_double":"Lit double","furn.sym_bed_single":"Lit simple","furn.sym_nightstand":"Table de chevet","furn.sym_cabinet_tv":"Meuble TV","furn.sym_cabinet_shoe":"Meuble à chaussures","furn.sym_cabinet_sink":"Meuble sous lavabo","furn.sym_wardrobe":"Armoire","furn.sym_bookshelf":"Bibliothèque","furn.sym_wall_unit":"Élément mural","furn.sym_kitchen_floor":"Module de cuisine bas","furn.sym_kitchen_floor_corner":"Module de cuisine bas d'angle","furn.sym_kitchen_wall":"Module de cuisine haut","furn.sym_kitchen_wall_corner":"Module de cuisine haut d'angle","furn.sym_shelf_floor":"Étagère au sol","furn.sym_shelf_wall":"Étagère murale","furn.sym_fridge":"Réfrigérateur","furn.sym_stove":"Cuisinière","furn.sym_cooktop_two":"Plaque à deux feux","furn.sym_dishwasher":"Lave-vaisselle","furn.sym_washer":"Lave-linge","furn.sym_dryer":"Sèche-linge","furn.sym_tv":"Téléviseur","furn.sym_tv_wall":"Téléviseur mural","furn.sym_ac":"Climatiseur","furn.sym_water_heater":"Chauffe-eau","furn.sym_toilet":"Toilettes","furn.sym_toilet_built_in":"Toilettes suspendues","furn.sym_bathtub":"Baignoire","furn.sym_bathtub_corner":"Baignoire d'angle","furn.sym_shower":"Douche","furn.sym_sink":"Lavabo","furn.sym_kitchen_sink":"Évier de cuisine","furn.sym_kitchen_sink_double":"Évier de cuisine double","furn.sym_bidet":"Bidet","furn.sym_bidet_built_in":"Bidet suspendu","furn.sym_stairs":"Escalier","furn.sym_fireplace":"Cheminée","furn.sym_plant":"Plante","furn.sym_rug":"Tapis"};const r="1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f";export{e as dictionary,r as fingerprint};
@@ -1 +0,0 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";var e={title:"Zigbee-Verbindungen",toggle:"Zigbee-Verbindungen beim Darüberfahren über ein Gerät anzeigen",hint:"Es werden nur beobachtete direkte Nachbarn angezeigt. Beim Darüberfahren werden keine Daten abgerufen.",help:"Zeigt, mit welchen Zigbee-Geräten jedes Gerät direkt verbunden ist. Die Linienfarbe ist die Verbindungsqualität (LQI) auf derselben Skala wie der LQI-Wert des Geräts: rot bei 40 und darunter, grün bei 180 und darüber. Eine gestrichelte Linie bedeutet, dass die Qualität nicht gemeldet wurde. Ein Pfeil zeigt auf das nächste Gerät auf dem Weg zum Koordinator: ein Pfeil führt hinaus, eingehende Pfeile sind die Geräte, die über dieses Gerät routen. Eine Linie ohne Pfeil ist ein Ersatznachbar. Das ist der Routenbaum, den House Plan bildet, nicht der Weg eines Pakets in diesem Moment: eine Beschriftung am Pfeilende bedeutet, dass das Ziel nicht auf diesem Plan liegt, und ein fehlender Pfeil, dass die Route unbekannt ist. Die Daten stammen aus dem letzten Laden und veralten; Verbindungen sind nur mit der Maus sichtbar.",help_aria:"Hilfe: Zigbee-Verbindungen",admin_only:"Topologiedaten sind nur für Home-Assistant-Administratoren verfügbar.",save_first:"Speichere diese Einstellung, bevor Topologiedaten geladen werden.",zha:"ZHA",zha_read:"ZHA-Daten lesen",zha_hint:"Liest den ZHA-Topologiecache; es wird kein Funkscan gestartet.",z2m:"Zigbee2MQTT",z2m_topics:"Basistopics (eines pro Zeile)",z2m_update:"Karte aktualisieren",z2m_warning:"Ein Netzwerkscan kann 10 Sekunden bis 2 Minuten dauern und Zigbee vorübergehend verlangsamen.",status_idle:"Daten nicht geladen",status_loading:"Wird geladen…",status_ready:"Empfangen: {time}",status_stale:"Empfangen: {time} · veraltet",status_partial:"Empfangen: {time} · einige Knoten fehlen",status_no_links:"Empfangen: {time} · keine beobachteten Verbindungen gefunden",error_permission:"Administratorrechte sind erforderlich.",error_unsupported:"Dieser Anbieter oder die Home-Assistant-API ist nicht verfügbar.",error_timeout:"Der Anbieter hat nicht rechtzeitig geantwortet.",error_invalid_topic:"Prüfe das Zigbee2MQTT-Basistopic.",error_invalid_payload:"Der Anbieter hat nicht unterstützte Topologiedaten geliefert.",error_provider:"Topologiedaten konnten nicht geladen werden.",remote_count:"+{n} in anderen Bereichen",route_device_not_on_plan:"Gerät ist nicht im Plan",route_coordinator_not_on_plan:"Koordinator ist nicht im Plan",route_other_space:"anderer Bereich"};const n="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";export{e as dictionary,n as fingerprint};
@@ -0,0 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f";var e={title:"Zigbee-Verbindungen",toggle:"Zigbee-Verbindungen beim Darüberfahren über ein Gerät anzeigen",hint:"Zeigt Eltern und nächste Hops laut Integration. Beim Darüberfahren werden keine Daten abgerufen.",help:"Zeigt den Elternknoten eines Endgeräts oder den aktiven nächsten Hop eines Routers zum Koordinator laut Integration. Es gibt höchstens einen ausgehenden Pfeil; eingehende Pfeile zeigen Geräte, die über diesen Knoten routen. Gewöhnliche Nachbarn werden ausgeblendet. Alle Linien sind durchgezogen. Linie und Pfeil verwenden LQI 0–255: rot bei 0, gelb bei 128, grün bei 255. Ohne LQI sind sie grau mit schwarzer Kontur. Eine Beschriftung am Pfeilende nennt ein Ziel in einem anderen Bereich oder außerhalb des Plans. Keine Routendaten bedeutet fehlende eindeutige Angaben, nicht dass das Gerät offline ist. Dies sind zuletzt empfangene Integrationsdaten, keine Live-Paketverfolgung oder Garantie des gesamten Pfads. Der ZHA-Cache kann beim Lesen bereits alt sein; veraltete und unvollständige Daten werden markiert. Verbindungen sind nur mit der Maus sichtbar.",help_aria:"Hilfe: Zigbee-Verbindungen",admin_only:"Topologiedaten sind nur für Home-Assistant-Administratoren verfügbar.",save_first:"Speichere diese Einstellung, bevor Topologiedaten geladen werden.",zha:"ZHA",zha_read:"ZHA-Daten lesen",zha_hint:"Liest den ZHA-Topologiecache; es wird kein Funkscan gestartet.",z2m:"Zigbee2MQTT",z2m_topics:"Basistopics (eines pro Zeile)",z2m_update:"Karte aktualisieren",z2m_warning:"Ein Netzwerkscan mit Routen kann mehrere Minuten dauern. House Plan wartet bis zu 10 Minuten. Der Scan kann Zigbee vorübergehend verlangsamen.",status_idle:"Daten nicht geladen",status_loading:"Wird geladen…",status_ready:"Empfangen: {time}",status_stale:"Empfangen: {time} · veraltet",status_partial:"Empfangen: {time} · unvollständige Daten",status_no_links:"Empfangen: {time} · keine bestätigten Routen",error_permission:"Administratorrechte sind erforderlich.",error_unsupported:"Dieser Anbieter oder die Home-Assistant-API ist nicht verfügbar.",error_timeout:"Der Anbieter hat nicht rechtzeitig geantwortet.",error_invalid_topic:"Prüfe das Zigbee2MQTT-Basistopic.",error_invalid_payload:"Der Anbieter hat nicht unterstützte Topologiedaten geliefert.",error_provider:"Topologiedaten konnten nicht geladen werden.",remote_count:"+{n} in anderen Bereichen",route_device_not_on_plan:"Gerät ist nicht im Plan",route_coordinator_not_on_plan:"Koordinator ist nicht im Plan",route_other_space:"anderer Bereich",route_device_not_on_plan_named:"Gerät ist nicht im Plan ({name})",route_unknown:"Keine Routendaten",route_stale:"Veraltete Daten",route_partial:"Unvollständige Daten",status_cache:"Integrationscache; Zeitpunkt des Funkscans unbekannt"};const n="1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f";export{e as dictionary,n as fingerprint};
@@ -0,0 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f";var e={title:"Liens Zigbee",toggle:"Afficher les liens Zigbee au survol d’un appareil",hint:"Affiche les parents et prochains sauts signalés par l’intégration. Le survol ne lance aucune requête.",help:"Affiche le parent d’un appareil terminal ou le prochain saut actif d’un routeur vers le coordinateur selon l’intégration. Il y a au plus une flèche sortante ; les flèches entrantes indiquent les appareils passant par ce nœud. Les simples voisins sont masqués. Toutes les lignes sont continues. Ligne et flèche utilisent le LQI 0–255 : rouge à 0, jaune à 128, vert à 255. Sans LQI, elles sont grises avec un contour noir. Une étiquette au bout de la flèche nomme une cible dans un autre espace ou absente du plan. Aucune donnée de route indique l’absence d’information univoque, pas un appareil hors ligne. Il s’agit des derniers relevés de l’intégration, pas du trajet des paquets en direct ni d’une garantie du chemin entier. Le cache ZHA peut déjà être ancien à la lecture ; les données anciennes et incomplètes sont signalées. Les liens ne sont visibles qu’à la souris.",help_aria:"Aide : liens Zigbee",admin_only:"Les données de topologie sont réservées aux administrateurs Home Assistant.",save_first:"Enregistrez ce réglage avant de charger les données de topologie.",zha:"ZHA",zha_read:"Lire les données ZHA",zha_hint:"Lit la topologie en cache de ZHA sans lancer d’analyse radio.",z2m:"Zigbee2MQTT",z2m_topics:"Topics de base (un par ligne)",z2m_update:"Actualiser la carte",z2m_warning:"L’analyse de la carte réseau avec les routes peut prendre plusieurs minutes. House Plan attend jusqu’à 10 minutes. L’analyse peut réduire temporairement la réactivité de Zigbee.",status_idle:"Données non chargées",status_loading:"Chargement…",status_ready:"Reçu : {time}",status_stale:"Reçu : {time} · obsolète",status_partial:"Reçu : {time} · données incomplètes",status_no_links:"Reçu : {time} · aucune route confirmée",error_permission:"Les droits administrateur sont requis.",error_unsupported:"Ce fournisseur ou l’API Home Assistant n’est pas disponible.",error_timeout:"Le fournisseur n’a pas répondu à temps.",error_invalid_topic:"Vérifiez le topic de base Zigbee2MQTT.",error_invalid_payload:"Le fournisseur a renvoyé des données de topologie non prises en charge.",error_provider:"Impossible de charger les données de topologie.",remote_count:"+{n} dans d’autres espaces",route_device_not_on_plan:"appareil absent du plan",route_coordinator_not_on_plan:"coordinateur absent du plan",route_other_space:"autre espace",route_device_not_on_plan_named:"Appareil absent du plan ({name})",route_unknown:"Aucune donnée de route",route_stale:"Données anciennes",route_partial:"Données incomplètes",status_cache:"Cache de l’intégration ; date de l’analyse radio inconnue"};const n="1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f";export{e as dictionary,n as fingerprint};
@@ -1 +0,0 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";var e={title:"Liens Zigbee",toggle:"Afficher les liens Zigbee au survol d’un appareil",hint:"Seuls les voisins directs observés sont affichés. Le survol ne lance aucune requête.",help:"Montre avec quels appareils Zigbee chaque appareil communique directement. La couleur de la ligne est la qualité du lien (LQI) sur la même échelle que l'indicateur LQI de l'appareil : rouge à 40 et en dessous, vert à 180 et au-dessus. Une ligne pointillée signifie que la qualité n'a pas été communiquée. Une flèche pointe vers l'appareil suivant sur le chemin du coordinateur : une flèche part, les flèches entrantes sont les appareils qui passent par celui-ci. Une ligne sans flèche est un voisin de secours. C'est l'arbre de routes que construit House Plan, pas le trajet d'un paquet à cet instant : une étiquette au bout d'une flèche signifie que sa cible n'est pas sur ce plan, et l'absence de flèche que la route est inconnue. Les données proviennent du dernier chargement et vieillissent ; les liens ne sont visibles qu'à la souris.",help_aria:"Aide : liens Zigbee",admin_only:"Les données de topologie sont réservées aux administrateurs Home Assistant.",save_first:"Enregistrez ce réglage avant de charger les données de topologie.",zha:"ZHA",zha_read:"Lire les données ZHA",zha_hint:"Lit la topologie en cache de ZHA sans lancer d’analyse radio.",z2m:"Zigbee2MQTT",z2m_topics:"Topics de base (un par ligne)",z2m_update:"Actualiser la carte",z2m_warning:"L’analyse de la carte réseau peut durer de 10 secondes à 2 minutes et réduire temporairement la réactivité de Zigbee.",status_idle:"Données non chargées",status_loading:"Chargement…",status_ready:"Reçu : {time}",status_stale:"Reçu : {time} · obsolète",status_partial:"Reçu : {time} · certains nœuds sont omis",status_no_links:"Reçu : {time} · aucun lien observé trouvé",error_permission:"Les droits administrateur sont requis.",error_unsupported:"Ce fournisseur ou l’API Home Assistant n’est pas disponible.",error_timeout:"Le fournisseur n’a pas répondu à temps.",error_invalid_topic:"Vérifiez le topic de base Zigbee2MQTT.",error_invalid_payload:"Le fournisseur a renvoyé des données de topologie non prises en charge.",error_provider:"Impossible de charger les données de topologie.",remote_count:"+{n} dans d’autres espaces",route_device_not_on_plan:"appareil absent du plan",route_coordinator_not_on_plan:"coordinateur absent du plan",route_other_space:"autre espace"};const s="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";export{e as dictionary,s as fingerprint};
@@ -1 +0,0 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";var e={title:"Связи Zigbee",toggle:"Показывать связи Zigbee при наведении на устройство",hint:"Показываются только наблюдаемые прямые соседи. Наведение ничего не запрашивает.",help:"Показывает, с какими устройствами Zigbee каждое связано напрямую. Цвет линии — качество связи (LQI) по той же шкале, что у показателя LQI устройства: красный при 40 и ниже, зелёный при 180 и выше. Пунктир — качество не сообщено. Стрелка ведёт к следующему устройству по пути к координатору: исходящая одна, входящие — те, кто ходит через это устройство. Линия без стрелки — запасной сосед. Это дерево маршрутов, которое строит House Plan, а не путь пакета в эту секунду: подпись на конце стрелки значит, что цель не на этом плане, а отсутствие стрелки — что путь неизвестен. Данные из последней загрузки и устаревают, связи видны только при работе мышью.",help_aria:"Справка: связи Zigbee",admin_only:"Данные топологии доступны только администраторам Home Assistant.",save_first:"Сохраните настройку перед загрузкой данных топологии.",zha:"ZHA",zha_read:"Прочитать данные ZHA",zha_hint:"Читает сохранённую топологию ZHA и не запускает радио-сканирование.",z2m:"Zigbee2MQTT",z2m_topics:"Базовые топики (по одному в строке)",z2m_update:"Обновить карту",z2m_warning:"Сканирование карты сети занимает от 10 секунд до 2 минут и временно может снизить отзывчивость Zigbee.",status_idle:"Данные не загружены",status_loading:"Загрузка…",status_ready:"Получено: {time}",status_stale:"Получено: {time} · данные устарели",status_partial:"Получено: {time} · часть узлов не показана",status_no_links:"Получено: {time} · наблюдаемые связи не найдены",error_permission:"Нужны права администратора.",error_unsupported:"Провайдер или API Home Assistant недоступен.",error_timeout:"Провайдер не ответил вовремя.",error_invalid_topic:"Проверьте базовый топик Zigbee2MQTT.",error_invalid_payload:"Провайдер вернул неподдерживаемые данные топологии.",error_provider:"Не удалось загрузить данные топологии.",remote_count:"+{n} в других пространствах",route_device_not_on_plan:"устройства нет на плане",route_coordinator_not_on_plan:"координатора нет на плане",route_other_space:"другое пространство"};const a="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";export{e as dictionary,a as fingerprint};
@@ -0,0 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f";var e={title:"Связи Zigbee",toggle:"Показывать связи Zigbee при наведении на устройство",hint:"Показываются родители и следующие узлы по сведениям интеграции. Наведение ничего не запрашивает.",help:"Показывает родителя конечного устройства или активный следующий узел роутера к координатору по данным интеграции. Исходящая стрелка не более одной, входящие — устройства, идущие через этот узел. Обычные соседи скрыты. Все линии сплошные. Цвет линии и стрелки — LQI 0–255: красный при 0, жёлтый при 128, зелёный при 255. Без LQI они серые с чёрной обводкой. Подпись на конце стрелки указывает цель на другом пространстве или не на плане. «Нет данных о маршруте» означает отсутствие однозначных сведений об исходящем маршруте, а не недоступность устройства. Это последние записи интеграции, не путь пакета в реальном времени и не гарантия всей цепочки. Кеш ZHA может быть старым уже при чтении; устаревшие и неполные данные отмечаются. Связи видны только при работе мышью.",help_aria:"Справка: связи Zigbee",admin_only:"Данные топологии доступны только администраторам Home Assistant.",save_first:"Сохраните настройку перед загрузкой данных топологии.",zha:"ZHA",zha_read:"Прочитать данные ZHA",zha_hint:"Читает сохранённую топологию ZHA и не запускает радио-сканирование.",z2m:"Zigbee2MQTT",z2m_topics:"Базовые топики (по одному в строке)",z2m_update:"Обновить карту",z2m_warning:"Сканирование карты сети с маршрутами может занять несколько минут. House Plan ждёт до 10 минут. Сканирование временно может снизить отзывчивость Zigbee.",status_idle:"Данные не загружены",status_loading:"Загрузка…",status_ready:"Получено: {time}",status_stale:"Получено: {time} · данные устарели",status_partial:"Получено: {time} · неполные данные",status_no_links:"Получено: {time} · подтверждённые маршруты не найдены",error_permission:"Нужны права администратора.",error_unsupported:"Провайдер или API Home Assistant недоступен.",error_timeout:"Провайдер не ответил вовремя.",error_invalid_topic:"Проверьте базовый топик Zigbee2MQTT.",error_invalid_payload:"Провайдер вернул неподдерживаемые данные топологии.",error_provider:"Не удалось загрузить данные топологии.",remote_count:"+{n} в других пространствах",route_device_not_on_plan:"Устройства нет на плане",route_coordinator_not_on_plan:"координатора нет на плане",route_other_space:"другое пространство",route_device_not_on_plan_named:"Устройства нет на плане ({name})",route_unknown:"Нет данных о маршруте",route_stale:"Данные устарели",route_partial:"Неполные данные",status_cache:"Кеш интеграции; время радиосканирования неизвестно"};const t="1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f";export{e as dictionary,t as fingerprint};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f";import{n as t,d as n,e}from"./zigbee-topology-DkIGuBlK.js";import{aP as o}from"./houseplan-card-DpMO8ZtV.js";import"./namespace-language-B3Q_Y8Lh.js";const i=new WeakMap;function r(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=i.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},i.set(n,e)),e}function a(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function c(t){return Object.assign(new Error(t),{code:t})}function l(t,n,e){const o=t.inflight.get(n);if(o)return o;const i=t.states[n],r=void 0===i?.obtainedAt?{}:{obtainedAt:i.obtainedAt,partial:i.partial,stale:i.stale};a(t,n,{...r,phase:"loading"});const l=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw c("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],a(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{a(t,n,{...r,...void 0===r.obtainedAt?{}:{stale:!0},phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,l),l}function u(t){const n=r(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function f(t,n){const e=r(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function p(t){if(!0!==t?.user?.is_admin)throw c("permission")}function d(n){const e=r(n);return e?l(e,"zha",async()=>{if(p(n),"function"!=typeof n?.callWS)throw c("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function h(t){return null!==t&&"object"==typeof t?t:null}function m(t){const n=h(t),o=n?.payload??t;if("string"!=typeof o)return o;if(o.length>e)return null;try{return JSON.parse(o)}catch{return null}}async function g(t,n){if(n<=0)throw t.catch(()=>{}),c("timeout");let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(c("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function w(t,e,i=6e5){const a=r(t);if(!a)return Promise.resolve();const s=o(e);return l(a,`z2m:${s||String(e)}`,async()=>{if(p(t),!s)throw c("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw c("unsupported");const r=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),a=Date.now()+Math.max(1,i);let l=!1,u=!1,f=null,d=null,w=null;const y=new Promise(t=>{f=t}),b=new Promise((t,n)=>{d=t,w=n});b.catch(()=>{});const v=[],_=t=>{try{t()}catch{}},S=()=>!l&&Date.now()<a,D=async(t,n)=>{if(!S())throw c("timeout");const i=o.call(e,n,{type:"mqtt/subscribe",topic:`${s}/${t}`}).then(t=>{"function"==typeof t&&(l?_(t):v.push(t))});await g(i,Math.min(1e4,a-Date.now()))};try{if(await D("bridge/info",t=>{S()&&!0===h(t)?.retain&&m(t)&&f?.()}),await D("bridge/response/networkmap",t=>{if(!S()||!u||!0===h(t)?.retain)return;const n=m(t);null!==n?n&&function(t){const n=h(t),e=n?.transaction??h(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===r&&d?.(n):w?.(c("invalid_payload"))}),await g(y,Math.min(4e3,a-Date.now())),!S())throw c("timeout");u=!0;const e=t.callService("mqtt","publish",{topic:`${s}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!0,transaction:r}),qos:0,retain:!1}),[,o]=await g(Promise.all([g(e,Math.min(1e4,a-Date.now())),b]),a-Date.now());if(!S())throw c("timeout");const i=h(o)?.status;if(i&&"ok"!==i)throw c("provider");return n(o,s)}finally{l=!0,u=!1;for(const t of v)_(t)}})}export{d as readZhaTopology,w as refreshZ2mTopology,f as subscribeZigbeeTopology,u as zigbeeTopologyRuntimeSnapshot};
@@ -1 +0,0 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";import{n as t,c as n}from"./zigbee-topology-Co7YPeRf.js";import{aP as e}from"./houseplan-card-CDzf9V5z.js";import"./namespace-language-BPjMJUHI.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function f(t){if(!0!==t?.user?.is_admin)throw a("permission")}function p(n){const e=i(n);return e?c(e,"zha",async()=>{if(f(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function m(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function g(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function h(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(f(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,p=null,h=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,h=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&m(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const f=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=m(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&p?.(n):c&&h?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await g(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await g(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{p as readZhaTopology,h as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";try{await import("./houseplan-assets/houseplan-card-CDzf9V5z.js")}catch(e){if(!customElements.get("houseplan-card")){const l=String(navigator.language||"en").toLowerCase();const m=l.startsWith("ru")?"House Plan обновился — перезагрузите страницу (Ctrl+F5).":l.startsWith("de")?"House Plan wurde aktualisiert — bitte laden Sie die Seite neu (Strg+F5).":l.startsWith("fr")?"House Plan a été mis à jour — veuillez recharger la page (Ctrl+F5).":"House Plan was updated — please reload the page (Ctrl+F5).";customElements.define("houseplan-card",class extends HTMLElement{setConfig(){}getCardSize(){return 1}connectedCallback(){this.style.cssText="display:block;box-sizing:border-box;padding:16px;border:1px solid var(--divider-color,#e0e0e0);border-radius:var(--ha-card-border-radius,12px);background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);font:14px/1.4 var(--paper-font-body1_-_font-family,sans-serif)";this.textContent=m}})}console.error("[houseplan] stale houseplan-card.js: the implementation chunk is unavailable",e)}
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f";try{await import("./houseplan-assets/houseplan-card-DpMO8ZtV.js")}catch(e){if(!customElements.get("houseplan-card")){const l=String(navigator.language||"en").toLowerCase();const m=l.startsWith("ru")?"House Plan обновился — перезагрузите страницу (Ctrl+F5).":l.startsWith("de")?"House Plan wurde aktualisiert — bitte laden Sie die Seite neu (Strg+F5).":l.startsWith("fr")?"House Plan a été mis à jour — veuillez recharger la page (Ctrl+F5).":"House Plan was updated — please reload the page (Ctrl+F5).";customElements.define("houseplan-card",class extends HTMLElement{setConfig(){}getCardSize(){return 1}connectedCallback(){this.style.cssText="display:block;box-sizing:border-box;padding:16px;border:1px solid var(--divider-color,#e0e0e0);border-radius:var(--ha-card-border-radius,12px);background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);font:14px/1.4 var(--paper-font-body1_-_font-family,sans-serif)";this.textContent=m}})}console.error("[houseplan] stale houseplan-card.js: the implementation chunk is unavailable",e)}
File diff suppressed because one or more lines are too long
+3 -2
View File
@@ -2,7 +2,8 @@
"domain": "houseplan",
"name": "House Plan",
"after_dependencies": [
"lovelace"
"lovelace",
"mqtt"
],
"codeowners": [
"@Matysh"
@@ -20,5 +21,5 @@
"issue_tracker": "https://github.com/Matysh/houseplan-card/issues",
"requirements": [],
"single_config_entry": true,
"version": "1.79.0-beta.4"
"version": "1.80.0-beta.2"
}
+2
View File
@@ -112,6 +112,8 @@ class HouseplanData:
junction_baseline: tuple[int, dict[str, dict[str, int]]] | None = None
# Runtime-only #485 authority; never serialized by HouseplanStore.
radar_coordinator: Any | None = None
# #800: MQTT jobs and last-good maps live only for this loaded entry.
zigbee_coordinator: Any | None = None
HouseplanConfigEntry = ConfigEntry[HouseplanData]
@@ -258,6 +258,7 @@ async def _resolved_write_pair(
def async_register(hass: HomeAssistant) -> None:
"""Register the WS commands."""
from .radar_websocket import async_register as async_register_radar
from .zigbee_websocket import async_register as async_register_zigbee
websocket_api.async_register_command(hass, ws_layout_get)
websocket_api.async_register_command(hass, ws_trail_get)
@@ -288,6 +289,7 @@ def async_register(hass: HomeAssistant) -> None:
websocket_api.async_register_command(hass, ws_support_preview_discard)
websocket_api.async_register_command(hass, ws_support_submit)
async_register_radar(hass)
async_register_zigbee(hass)
def _runtime(hass: HomeAssistant, connection, msg_id: int) -> HouseplanData | None:
@@ -1481,6 +1483,8 @@ async def ws_config_get(hass: HomeAssistant, connection, msg: dict[str, Any]) ->
"decor_assets_api": DECOR_ASSETS_API_VERSION,
"summary_panel_api": SUMMARY_PANEL_API_VERSION,
**({"radar_stage1_api": 1} if rt.radar_coordinator is not None else {}),
**({"zigbee_scan_api": 1} if rt.zigbee_coordinator is not None
and not rt.zigbee_coordinator.closed else {}),
},
)
@@ -0,0 +1,441 @@
"""Bounded, entry-owned Zigbee2MQTT requests; never a polling radio scanner."""
from __future__ import annotations
import asyncio
import json
import logging
import math
import re
from collections.abc import Awaitable, Callable
from dataclasses import dataclass, field
from time import monotonic, time
from typing import Any
from uuid import uuid4
from homeassistant.components import mqtt
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant, callback
MAX_TOPICS = 8
MAX_LISTENERS = 32
MAX_PAYLOAD_BYTES = 2 * 1024 * 1024
MAX_NODES = 1000
MAX_LINKS = 6000
CANCEL_AFTER_MS = 600_000
TRANSPORT_TIMEOUT = 10.0
INFO_TIMEOUT = 4.0
_LOGGER = logging.getLogger(__name__)
class ZigbeeScanError(Exception):
"""A stable, already localized WebSocket command refusal."""
def __init__(self, code: str) -> None:
super().__init__(code)
self.code = code
def normalize_base_topic(value: object) -> str:
"""Match the frontend's exact-topic normalization, without a saved-topic gate."""
if not isinstance(value, str):
raise ZigbeeScanError("invalid_data")
topic = re.sub(r"/{2,}", "/", value.strip().strip("/"))
# JS counts UTF-16 code units; reject lone surrogates as invalid MQTT UTF-8.
try:
length = len(topic.encode("utf-16-le")) // 2
topic.encode("utf-8")
except UnicodeError as err:
raise ZigbeeScanError("invalid_data") from err
if not topic or length > 180 or re.search(r"[#+\x00-\x1f\x7f]", topic):
raise ZigbeeScanError("invalid_data")
return topic
def _parse_payload(payload: object) -> dict[str, Any] | None:
"""Bound bytes before decoding; uncorrelatable garbage must not end a job."""
try:
if isinstance(payload, str):
payload = payload.encode("utf-8")
if not isinstance(payload, bytes) or len(payload) > MAX_PAYLOAD_BYTES:
return None
value = json.loads(payload)
if not isinstance(value, dict):
return None
pending = [(value, 0)]
inspected = 0
while pending:
item, depth = pending.pop()
inspected += 1
if depth > 32 or inspected > 100_000:
return None
if isinstance(item, dict):
pending.extend((child, depth + 1) for child in item.values())
elif isinstance(item, list):
pending.extend((child, depth + 1) for child in item)
elif isinstance(item, float) and not math.isfinite(item):
return None
return value
except (ValueError, UnicodeError, RecursionError):
return None
def _valid_map(message: dict[str, Any]) -> bool:
"""Check the raw-map shape, not routing evidence (that remains TypeScript)."""
data = message.get("data")
value = data.get("value", data) if isinstance(data, dict) else data
if value is None:
value = message.get("value", message)
if isinstance(value, str):
value = _parse_payload(value)
if not isinstance(value, dict):
return False
nodes, links = value.get("nodes"), value.get("links")
if not isinstance(nodes, list) or len(nodes) > MAX_NODES:
return False
if not isinstance(links, list) or len(links) > MAX_LINKS:
return False
for node in nodes:
if not isinstance(node, dict):
return False
ieee = node.get("ieeeAddr", node.get("ieee_address", node.get("ieee")))
if not isinstance(ieee, str) or not re.fullmatch(
r"(?:0x)?[0-9a-fA-F]{16}|(?:[0-9a-fA-F]{2}[:-]){7}[0-9a-fA-F]{2}", ieee,
):
return False
routes_count = 0
for link in links:
if not isinstance(link, dict):
return False
for side in ("source", "target"):
endpoint = link.get(f"{side}IeeeAddr", link.get(side))
if isinstance(endpoint, bool) or not isinstance(endpoint, (dict, str, int)):
return False
if not endpoint and endpoint != 0:
return False
routes = link.get("routes", [])
if not isinstance(routes, list) or any(not isinstance(route, dict) for route in routes):
return False
routes_count += len(routes)
if routes_count > MAX_LINKS:
return False
return True
@dataclass
class _Job:
topic: str
job_id: str
started_at: int
started: float
info: asyncio.Future[None]
phase: str = "loading"
stage: str = "connecting"
finished: float | None = None
error: str | None = None
stale: bool = False
result: dict[str, Any] | None = None
obtained_at: int | None = None
response_active: bool = False
task: asyncio.Task[None] | None = None
cleanups: list[Callable[[], None]] = field(default_factory=list)
class ZigbeeScanCoordinator:
"""One in-memory slot per topic, shared by all browsers of the HA entry."""
def __init__(self, hass: HomeAssistant, entry: ConfigEntry) -> None:
self.hass = hass
self.entry = entry
self.session_id = str(uuid4())
self.revision = 0
self.closed = False
self._jobs: dict[str, _Job] = {}
self._listeners: set[Callable[[dict[str, Any]], None]] = set()
self._operations: set[asyncio.Task] = set()
def _active(self, job: _Job) -> bool:
return not self.closed and self._jobs.get(job.topic) is job and job.phase == "loading"
def _state(self, job: _Job) -> dict[str, Any]:
provider: dict[str, Any] = {
"topic": job.topic, "job_id": job.job_id, "phase": job.phase,
"stage": job.stage, "started_at": job.started_at,
"elapsed_ms": max(0, int(((job.finished if job.finished is not None else monotonic()) - job.started) * 1000)),
"cancel_after_ms": CANCEL_AFTER_MS,
}
if job.error is not None:
provider["error"] = job.error
if job.result is not None:
provider["result"] = job.result
provider["obtained_at"] = job.obtained_at
provider["stale"] = job.stale
return {"kind": "state", "session_id": self.session_id,
"revision": self.revision, "provider": provider}
def snapshot(self, topic: str) -> dict[str, Any]:
"""Current public state; no MQTT work, no timestamp reset."""
if self.closed:
raise ZigbeeScanError("not_ready")
job = self._jobs.get(normalize_base_topic(topic))
if job is None:
raise ZigbeeScanError("invalid_data")
return self._state(job)
def initial_events(self) -> list[dict[str, Any]]:
"""Bound each event to one map; never aggregate eight maps into one frame."""
return [{"kind": "reset", "session_id": self.session_id,
"revision": self.revision, "topics": list(self._jobs)},
*(self._state(job) for job in self._jobs.values())]
def add_listener(self, listener: Callable[[dict[str, Any]], None]) -> Callable[[], None]:
if self.closed:
raise ZigbeeScanError("not_ready")
if len(self._listeners) >= MAX_LISTENERS:
raise ZigbeeScanError("capacity_exceeded")
self._listeners.add(listener)
return lambda: self._listeners.discard(listener)
def _emit(self, event: dict[str, Any]) -> None:
for listener in tuple(self._listeners):
try:
listener(event)
except Exception: # noqa: BLE001 - one disconnected UI must not interrupt a shared job
self._listeners.discard(listener)
def _changed(self, job: _Job) -> None:
self.revision += 1
self._emit(self._state(job))
def start(self, base_topic: str) -> dict[str, Any]:
"""Reserve before creating any task: concurrent WS clients join one job."""
if self.closed:
raise ZigbeeScanError("not_ready")
topic = normalize_base_topic(base_topic)
previous = self._jobs.get(topic)
if previous is not None and previous.phase == "loading":
return self._state(previous)
# A transport which acknowledges cancellation late still owns a bounded
# slot until its cleanup returns; repeated failed starts cannot grow it.
if len(self._operations) >= MAX_TOPICS:
raise ZigbeeScanError("capacity_exceeded")
if previous is None and len(self._jobs) >= MAX_TOPICS:
candidate = next((item for item in self._jobs.values() if item.phase != "loading"), None)
if candidate is None:
raise ZigbeeScanError("capacity_exceeded")
del self._jobs[candidate.topic]
self.revision += 1
self._emit({"kind": "removed", "session_id": self.session_id,
"revision": self.revision, "topic": candidate.topic})
job = _Job(topic, f"houseplan-{uuid4()}", int(time() * 1000), monotonic(),
self.hass.loop.create_future(),
stale=previous.stale if previous else False,
result=previous.result if previous else None,
obtained_at=previous.obtained_at if previous else None)
self._jobs.pop(topic, None)
self._jobs[topic] = job
job.task = self.entry.async_create_background_task(
self.hass, self._run(job), "House Plan Zigbee map", eager_start=False,
)
self._changed(job)
return self._state(job)
def cancel(self, base_topic: str, job_id: str) -> dict[str, Any]:
if self.closed:
raise ZigbeeScanError("not_ready")
topic = normalize_base_topic(base_topic)
job = self._jobs.get(topic)
if job is None or job.job_id != job_id:
raise ZigbeeScanError("conflict")
# A repeated cancellation or a success/cancel race never rolls back a final state.
if job.phase != "loading":
return self._state(job)
if (monotonic() - job.started) * 1000 < CANCEL_AFTER_MS:
raise ZigbeeScanError("conflict")
self._finish(job, "cancelled")
return self._state(job)
@staticmethod
def _cleanup(cleanup: Callable[[], None]) -> None:
try:
cleanup()
except Exception: # noqa: BLE001 - cleanup remains idempotent across unload and transport failure
_LOGGER.debug("House Plan Zigbee transport cleanup failed")
def _add_cleanup(self, job: _Job, cleanup: Callable[[], None]) -> None:
if self._active(job):
job.cleanups.append(cleanup)
else:
self._cleanup(cleanup)
def _release(self, job: _Job) -> None:
job.response_active = False
cleanups, job.cleanups = job.cleanups, []
for cleanup in cleanups:
self._cleanup(cleanup)
if not job.info.done():
job.info.cancel()
def _finish(self, job: _Job, phase: str, error: str | None = None,
result: dict[str, Any] | None = None) -> None:
if not self._active(job):
return
job.phase, job.error, job.finished = phase, error, monotonic()
if result is not None:
job.result, job.obtained_at = result, int(time() * 1000)
job.stale = False
elif job.result is not None:
job.stale = True
self._release(job)
# Including when called synchronously inside publish: a terminal provider
# reply must not wait another ten seconds for the publish acknowledgement.
if job.task is not None and not job.task.done():
job.task.cancel()
self._changed(job)
async def _operation(self, job: _Job, action: Callable[[], Awaitable],
seconds: float, *, subscription: bool = False):
"""Bound transport even if a cancelled subscribe later returns an unsubscribe."""
async def perform():
result = await action()
if subscription and callable(result):
self._add_cleanup(job, result)
return result
task = self.entry.async_create_background_task(
self.hass, perform(), "House Plan Zigbee transport", eager_start=False,
)
self._operations.add(task)
@callback
def settled(done: asyncio.Task) -> None:
self._operations.discard(done)
if not done.cancelled():
done.exception() # consume a late transport exception after the job ended
task.add_done_callback(settled)
try:
done, _pending = await asyncio.wait({task}, timeout=max(0, seconds))
if not done:
raise TimeoutError
return task.result()
finally:
if not task.done():
task.cancel()
async def _subscribe(self, job: _Job, topic: str, handler: Callable) -> None:
deadline = self.hass.loop.time() + TRANSPORT_TIMEOUT
await self._operation(job, lambda: mqtt.async_subscribe(
self.hass, topic, handler, qos=0, encoding=None,
), TRANSPORT_TIMEOUT, subscription=True)
# Optional on the declared HA floor (2024.6). This acknowledges HA's
# processing of subscriptions, not provider acceptance or radio progress.
processed = getattr(mqtt, "async_on_subscribe_done", None)
if callable(processed) and self._active(job):
ready = self.hass.loop.create_future()
@callback
def on_ready() -> None:
if not ready.done():
ready.set_result(None)
remove = processed(self.hass, topic, 0, on_ready)
self._add_cleanup(job, remove)
async with asyncio.timeout(max(0, deadline - self.hass.loop.time())):
await ready
async def _run(self, job: _Job) -> None:
try:
if not mqtt.mqtt_config_entry_enabled(self.hass):
self._finish(job, "error", "unsupported")
return
if not mqtt.is_connected(self.hass):
self._finish(job, "error", "connection")
return
@callback
def connection_changed(connected: bool) -> None:
if not connected:
self._finish(job, "error", "connection")
self._add_cleanup(job, mqtt.async_subscribe_connection_status(
self.hass, connection_changed,
))
response_topic = f"{job.topic}/bridge/response/networkmap"
info_topic = f"{job.topic}/bridge/info"
@callback
def receive_response(message) -> None:
if (not self._active(job) or not job.response_active
or message.topic != response_topic or message.retain):
return
value = _parse_payload(message.payload)
if value is None:
return
data = value.get("data")
transaction = value.get("transaction", data.get("transaction") if isinstance(data, dict) else None)
if transaction != job.job_id:
return
if value.get("status") not in (None, "ok"):
self._finish(job, "error", "provider")
elif not _valid_map(value):
self._finish(job, "error", "invalid_payload")
else:
self._finish(job, "ready", result=value)
@callback
def receive_info(message) -> None:
if (self._active(job) and message.topic == info_topic and message.retain
and not job.info.done() and _parse_payload(message.payload) is not None):
job.info.set_result(None)
# Response first also improves the old-HA retained-info preflight;
# retained info alone is not claimed to be a strict broker SUBACK.
await self._subscribe(job, response_topic, receive_response)
await self._subscribe(job, info_topic, receive_info)
async with asyncio.timeout(INFO_TIMEOUT):
await job.info
if not self._active(job):
return
job.response_active = True
await self._operation(job, lambda: mqtt.async_publish(
self.hass, f"{job.topic}/bridge/request/networkmap",
json.dumps({"type": "raw", "routes": True, "transaction": job.job_id}),
qos=0, retain=False,
), TRANSPORT_TIMEOUT)
if self._active(job):
job.stage = "waiting"
self._changed(job)
# Only MQTT, explicit cancel, transport loss or entry teardown
# ends this wait. 600 seconds is a cancel threshold, not a deadline.
await self.hass.loop.create_future()
except asyncio.CancelledError:
if self._active(job):
self._finish(job, "error", "connection")
raise
except TimeoutError:
self._finish(job, "error", "timeout")
except Exception: # noqa: BLE001 - contain optional MQTT errors without logging network payloads
self._finish(job, "error", "connection")
finally:
self._release(job)
async def async_close(self) -> None:
"""Stop entry-owned work, clear volatile maps, never restart a radio scan."""
if self.closed:
return
self.closed = True
# Reload does not disconnect HA WebSockets. Tell their observers that
# this session and its volatile cache are gone before dropping them.
self.revision += 1
self._emit({"kind": "closed", "session_id": self.session_id,
"revision": self.revision})
tasks = [job.task for job in self._jobs.values() if job.task is not None]
for job in self._jobs.values():
self._release(job)
for task in (*tasks, *self._operations):
if not task.done():
task.cancel()
if tasks:
await asyncio.gather(*tasks, return_exceptions=True)
self._jobs.clear()
self._listeners.clear()
@@ -0,0 +1,91 @@
"""Admin-only WebSocket observers and explicit actions for background Z2M jobs."""
from __future__ import annotations
from typing import Any
import voluptuous as vol
from homeassistant.components import websocket_api
from homeassistant.core import HomeAssistant, callback
from .store import get_data
from .zigbee_topology import ZigbeeScanCoordinator, ZigbeeScanError
def _coordinator(hass: HomeAssistant, connection, msg_id: int) -> ZigbeeScanCoordinator | None:
runtime = get_data(hass)
coordinator = getattr(runtime, "zigbee_coordinator", None)
if not isinstance(coordinator, ZigbeeScanCoordinator) or coordinator.closed:
connection.send_error(msg_id, "not_ready", "not_ready")
return None
return coordinator
@callback
def async_register(hass: HomeAssistant) -> None:
websocket_api.async_register_command(hass, ws_zigbee_subscribe)
websocket_api.async_register_command(hass, ws_zigbee_start)
websocket_api.async_register_command(hass, ws_zigbee_cancel)
@websocket_api.websocket_command({vol.Required("type"): "houseplan/zigbee/subscribe"})
@websocket_api.require_admin
def ws_zigbee_subscribe(hass: HomeAssistant, connection, msg: dict[str, Any]) -> None:
coordinator = _coordinator(hass, connection, msg["id"])
if coordinator is None:
return
@callback
def publish(event: dict[str, Any]) -> None:
# Permission can be revoked during a long-lived browser session.
if connection.user is None or not connection.user.is_admin:
remove()
connection.subscriptions.pop(msg["id"], None)
return
connection.send_event(msg["id"], event)
try:
remove = coordinator.add_listener(publish)
except ZigbeeScanError as err:
connection.send_error(msg["id"], err.code, err.code)
return
# HA calls this on unsubscribe/disconnect. It never cancels the shared job.
connection.subscriptions[msg["id"]] = remove
connection.send_result(msg["id"], {"session_id": coordinator.session_id,
"revision": coordinator.revision})
for event in coordinator.initial_events():
publish(event)
@websocket_api.websocket_command({
vol.Required("type"): "houseplan/zigbee/start",
vol.Required("base_topic"): vol.All(str, vol.Length(min=1, max=1024)),
})
@websocket_api.require_admin
def ws_zigbee_start(hass: HomeAssistant, connection, msg: dict[str, Any]) -> None:
coordinator = _coordinator(hass, connection, msg["id"])
if coordinator is None:
return
try:
result = coordinator.start(msg["base_topic"])
except ZigbeeScanError as err:
connection.send_error(msg["id"], err.code, err.code)
return
connection.send_result(msg["id"], result)
@websocket_api.websocket_command({
vol.Required("type"): "houseplan/zigbee/cancel",
vol.Required("base_topic"): vol.All(str, vol.Length(min=1, max=1024)),
vol.Required("job_id"): vol.All(str, vol.Length(min=1, max=80)),
})
@websocket_api.require_admin
def ws_zigbee_cancel(hass: HomeAssistant, connection, msg: dict[str, Any]) -> None:
coordinator = _coordinator(hass, connection, msg["id"])
if coordinator is None:
return
try:
result = coordinator.cancel(msg["base_topic"], msg["job_id"])
except ZigbeeScanError as err:
connection.send_error(msg["id"], err.code, err.code)
return
connection.send_result(msg["id"], result)
+44 -14
View File
@@ -21,11 +21,17 @@
* profile's camera scenario, benchmark_large_house.mjs) and the longest Long
* Task of the camera — the scenario and the 100-step series, retained heap
* after 20 A→B→C→A cycles over a warm cycle (same GC protocol).
* #789 additionally observes cameraFullCycleLongTaskMaxMs continuously through
* full-quality restoration, immediate restart and a 500 ms tail, with the same
* camera ceiling. Historical camera windows remain unchanged; each row retains
* raw full-cycle Long Tasks and phase boundaries for audit.
*
* Counters (exact, every sample): geometry/visibility recomputes over 100
* unrelated HA ticks, 100 pan/zoom steps and a colour-only change (0); the
* three LED caches of the shown space — shapes ≤ 50, visibility ≤ 50,
* retained per-emitter fans ≤ 2500 — identical after every cycle (growth 0);
* compact visibility paths ≤ 2500 and retained path text ≤ 4 Mi characters
* (≤ 8 MiB UTF-16) — identical after every cycle (growth 0). The true fan
* count remains diagnostic: #788 removed lossy endpoint/vertex thinning;
* after disconnect 0 retained entries and 0 live LED timers/observers; a
* late import after disconnect restores nothing (one extra cold run with the
* runtime response delayed); LED chunk requests (none without strips, never
@@ -41,6 +47,8 @@ import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';
import { dirname, resolve } from 'node:path';
import { launch } from './serve.mjs';
import { makeLedStripsFixture } from './performance/led-strips-fixture.mjs';
import { ledChunkRequestName } from './performance/led-chunk-request.mjs';
import { cameraCycleFailures, cameraCycleSampleFailures, finishLedCameraCycle } from './performance/led-camera-cycle.mjs';
const valueArg = (name) => process.argv.find((arg) => arg.startsWith(`--${name}=`))?.slice(name.length + 3);
const warmupOnly = process.argv.includes('--warmup-only');
@@ -115,6 +123,7 @@ function installLedLifecycleTracker() {
/** The page side of one mount: the same fixture host as before, shared by the sample and the late-import run. */
function pageHost() {
return `
window.__finishLedCameraCycle = ${finishLedCameraCycle.toString()};
window.__ledHost = (fixture) => {
const card = document.createElement('houseplan-card');
card.setConfig({ type: 'custom:houseplan-card', title: 'LED strips', icon_size: 3.4 });
@@ -145,7 +154,7 @@ function pageHost() {
window.__ledStats = async (card) => {
const url = performance.getEntriesByType('resource').map((entry) => entry.name)
.find((name) => /led-strip-runtime-[^/]+\\.js/.test(name));
if (!url) return { shapes: 0, visibility: 0, sources: 0, recomputes: 0, loaded: false };
if (!url) return { shapes: 0, visibility: 0, sources: 0, visibilityPaths: 0, pathChars: 0, recomputes: 0, loaded: false };
const runtime = await import(url);
return { ...runtime.ledStats(card), loaded: true };
};
@@ -163,8 +172,8 @@ async function sample() {
await page.emulateMedia({ reducedMotion: 'reduce' });
const requests = [];
page.on('request', (request) => {
const name = request.url().replace(/.*\//, '').replace(/\?.*$/, '');
if (/^led-strip-(runtime|field|editor)-/.test(name)) requests.push(name.replace(/-[^-]+\.js$/, ''));
const name = ledChunkRequestName(request.url());
if (name) requests.push(name);
});
try {
await page.evaluate(installLedLifecycleTracker);
@@ -179,7 +188,7 @@ async function sample() {
await sleep(5);
}
};
const longTasks = () => {
const longTasks = (onEntries) => {
const entries = [];
const observer = new PerformanceObserver((list) => entries.push(...list.getEntries()));
observer.observe({ type: 'longtask', buffered: false });
@@ -187,6 +196,7 @@ async function sample() {
await sleep(0);
entries.push(...observer.takeRecords());
observer.disconnect();
onEntries?.(entries.map(({ startTime, duration }) => ({ startTime, duration })));
return Number(Math.max(0, ...entries.map((entry) => entry.duration)).toFixed(2));
};
};
@@ -247,6 +257,10 @@ async function sample() {
const wheel = (deltaY) => stage.dispatchEvent(new WheelEvent('wheel', {
deltaY, clientX: rect.left + rect.width / 2, clientY: rect.top + rect.height / 2, bubbles: true, cancelable: true,
}));
// Keep the old pan/series windows intact. This separate observer also
// covers the first quality switch, both restores and the quick restart.
const cameraFullCycle = { startTime: performance.now(), entries: [], phases: {} };
const stopFullCycle = longTasks(entries => { cameraFullCycle.entries = entries; });
const stopPan = longTasks();
const panStarted = performance.now();
wheel(-120);
@@ -263,6 +277,14 @@ async function sample() {
}
await frame();
const cameraSeriesLongTaskMaxMs = await stopSeries();
cameraFullCycle.phases.seriesEnd = performance.now();
Object.assign(cameraFullCycle.phases, await window.__finishLedCameraCycle({
fullQuality: () => !card.hasAttribute('data-led-zoom-quality'),
input: async () => { wheel(-60); await card.updateComplete; },
frame, now: () => performance.now(), sleep,
}));
const cameraFullCycleLongTaskMaxMs = await stopFullCycle();
cameraFullCycle.endTime = performance.now();
const afterCamera = await stats();
// A colour-only change rebuilds no geometry or visibility.
host.setStates({ ...host.states, ...Object.fromEntries(floorLights.map((id) => [id,
@@ -279,8 +301,8 @@ async function sample() {
if (strips) await until(() => ledStable());
}
await frame();
const { shapes, visibility, sources } = await stats();
return { shapes, visibility, sources };
const { shapes, visibility, sources, visibilityPaths, pathChars } = await stats();
return { shapes, visibility, sources, visibilityPaths, pathChars };
};
await cycle();
await gc();
@@ -295,9 +317,10 @@ async function sample() {
await sleep(600);
const afterDisconnect = await stats();
const liveAfterDisconnect = window.__ledLiveCounts();
const key = (entry) => `${entry.shapes}/${entry.visibility}/${entry.sources}`;
const key = (entry) => `${entry.shapes}/${entry.visibility}/${entry.sources}/${entry.visibilityPaths}/${entry.pathChars}`;
return {
firstStableRenderMs, warmSpaceReadyMs, stateUpdateMs, panZoomMs, panZoomLongTaskMaxMs, cameraSeriesLongTaskMaxMs,
cameraFullCycleLongTaskMaxMs, cameraFullCycle,
retainedHeapBytes: heapBefore == null || heapAfter == null ? null : Math.max(0, heapAfter - heapBefore),
counters: strips ? {
recomputesOnHaTicks: afterTicks.recomputes - before.recomputes,
@@ -306,10 +329,13 @@ async function sample() {
shapes: Math.max(...cycleStats.map((entry) => entry.shapes)),
visibility: Math.max(...cycleStats.map((entry) => entry.visibility)),
sources: Math.max(...cycleStats.map((entry) => entry.sources)),
visibilityPaths: Math.max(...cycleStats.map((entry) => entry.visibilityPaths)),
pathChars: Math.max(...cycleStats.map((entry) => entry.pathChars)),
cacheGrowthOverCycles: new Set(cycleStats.map(key)).size - 1,
} : null,
disconnect: {
retained: afterDisconnect.shapes + afterDisconnect.visibility + afterDisconnect.sources,
retained: afterDisconnect.shapes + afterDisconnect.visibility + afterDisconnect.sources
+ afterDisconnect.visibilityPaths + afterDisconnect.pathChars,
liveBefore: liveBeforeDisconnect,
live: liveAfterDisconnect.timers + liveAfterDisconnect.frames + liveAfterDisconnect.observers,
},
@@ -359,7 +385,7 @@ async function lateImport() {
// The chunk the card asked for, by its URL: the same module instance.
const late = await page.evaluate(async (url) => {
const runtime = url ? await import(url) : null;
return { stats: runtime ? { ...runtime.ledStats(window.__lateCard), loaded: true } : { shapes: 0, visibility: 0, sources: 0, loaded: false },
return { stats: runtime ? { ...runtime.ledStats(window.__lateCard), loaded: true } : { shapes: 0, visibility: 0, sources: 0, visibilityPaths: 0, pathChars: 0, loaded: false },
live: window.__ledLiveCounts() };
}, runtimeUrl);
return { ...result, ...late, held };
@@ -404,7 +430,7 @@ const metric = (name) => {
return { median: values.length ? at(0.5) : null, p95: values.length ? at(0.95) : null, samples: values };
};
const METRICS = ['firstStableRenderMs', 'warmSpaceReadyMs', 'stateUpdateMs', 'panZoomMs', 'panZoomLongTaskMaxMs',
'cameraSeriesLongTaskMaxMs', 'retainedHeapBytes'];
'cameraSeriesLongTaskMaxMs', 'cameraFullCycleLongTaskMaxMs', 'retainedHeapBytes'];
const report = {
profile: PROFILE, size, strips: STRIPS, points: POINTS, sourceSha, chromium,
samples: rows.length, warmups: discarded, cycles: CYCLES, viewport: { width: 1440, height: 1000 }, dpr: 1,
@@ -423,6 +449,8 @@ if (!partial && (report.samples < MIN_SAMPLES || report.warmups < 1)) {
failures.push(`${report.samples} samples after ${report.warmups} warmups: the profile needs ≥ ${MIN_SAMPLES} after ≥ 1`);
}
const limits = budgets.sizes[size] || {};
failures.push(...cameraCycleSampleFailures(rows));
failures.push(...cameraCycleFailures(report.metrics.cameraFullCycleLongTaskMaxMs, limits.cameraSeriesLongTaskMaxMs));
for (const [name, limit] of Object.entries(limits)) {
for (const stat of ['median', 'p95']) {
const value = report.metrics[name]?.[stat];
@@ -440,14 +468,16 @@ if (STRIPS) {
for (const key of ['recomputesOnHaTicks', 'recomputesOnCamera', 'recomputesOnColour', 'cacheGrowthOverCycles']) {
if (counters[key] !== 0) failures.push(`${key} = ${counters[key]}, expected 0`);
}
for (const key of ['shapes', 'visibility', 'sources']) {
if (counters[key] > caches[key]) failures.push(`${key} cache ${counters[key]} > ${caches[key]}`);
for (const key of ['shapes', 'visibility', 'visibilityPaths', 'pathChars']) {
if (!Number.isFinite(counters[key])) failures.push(`${key} cache metric missing`);
else if (counters[key] > caches[key]) failures.push(`${key} cache ${counters[key]} > ${caches[key]}`);
}
}
if (late) {
if (!late.held || !late.stats.loaded) failures.push('late import: the runtime response was never held or never landed');
if (late.stripesAfterLoad !== late.stripesBeforeLoad) failures.push('late import rendered the gone card');
const retained = late.stats.shapes + late.stats.visibility + late.stats.sources;
const retained = late.stats.shapes + late.stats.visibility + late.stats.sources
+ late.stats.visibilityPaths + late.stats.pathChars;
if (retained) failures.push(`late import restored ${retained} cache entries`);
if (late.live.timers + late.live.frames + late.live.observers) failures.push('late import left LED timers/observers');
} else if (!skipLateImport) failures.push('late import not measured');
+10 -3
View File
@@ -1,13 +1,14 @@
/** #54: bounded provider normalization and incident-only hover performance. */
import { performance } from 'node:perf_hooks';
import { mapTopologies, normalizeZhaTopology, resolveMappedTopologyHover } from '../test-build/zigbee-topology.js';
import { mapTopologies, normalizeZhaTopology, resolveMappedTopologyHover, resolveProviderUplinks } from '../test-build/zigbee-topology.js';
const NODES = 500;
const SAMPLES = 9;
const BUDGETS = { normalizeMs: 80, mapMs: 160, firstHoverMs: 180, repeatedHoverMs: 120 };
const hex = (index) => index.toString(16).padStart(16, '0');
const rows = Array.from({ length: NODES }, (_, index) => ({
ieee: hex(index + 1), device_reg_id: `d${index}`, device_type: index ? 'Router' : 'Coordinator',
ieee: hex(index + 1), nwk: index, device_reg_id: `d${index}`, device_type: index ? 'Router' : 'Coordinator',
routes: index ? [{ dest_nwk: '0x0000', next_hop: index - 1, route_status: 'Active' }] : [],
neighbors: [1, 2, 3, 4, 5, 6].flatMap((offset) => {
const other = index + offset;
return other < NODES ? [{ ieee: hex(other + 1), lqi: (index * 17 + offset * 13) % 256 }] : [];
@@ -39,7 +40,13 @@ const firstHoverMs = measured(() => resolveMappedTopologyHover(mapped, 'main', '
const repeatedHoverMs = measured(() => {
for (let i = 1; i <= 20; i++) resolveMappedTopologyHover(mapped, 'main', `m${i}`);
});
const result = { nodes: topology.nodes.length, links: topology.links.length,
const confirmedRoutes = [...resolveProviderUplinks(topology).values()].filter((route) => route.kind === 'known').length;
const witness = resolveMappedTopologyHover(mapped, 'main', 'm1');
if (confirmedRoutes !== NODES - 1 || witness.outgoing !== 'known'
|| witness.parentTargets.length !== 1 || witness.lines.length !== 1) {
throw new Error('benchmark must exercise a nonempty provider-confirmed graph, outgoing remote target and incoming edge');
}
const result = { nodes: topology.nodes.length, links: topology.links.length, confirmedRoutes,
normalizeMs, mapMs, firstHoverMs, repeatedHoverMs };
console.log(JSON.stringify(result, null, 2));
for (const [name, budget] of Object.entries(BUDGETS)) {
+18 -16
View File
@@ -1,8 +1,8 @@
{
"schema": 3,
"matrixVersion": 71,
"acceptedAt": "2026-10-03T11:12:25.641Z",
"sourceFingerprint": "bd2d69a226767a942448f6dd0c0ddfe1557e8da1f6441569f6784c0f9aefd960",
"acceptedAt": "2026-10-05T12:14:58.027Z",
"sourceFingerprint": "14a902be33654296da3bbc915dcdd2c5b918936f24526ddc7a2e4b45a73afe25",
"chromium": "151.0.7922.34",
"capturedOn": "linux",
"acceptedOn": "linux",
@@ -10,20 +10,20 @@
"platform": "linux",
"arch": "x64",
"chromium": "151.0.7922.34",
"buildFingerprint": "bd2d69a226767a942448f6dd0c0ddfe1557e8da1f6441569f6784c0f9aefd960",
"buildFingerprint": "14a902be33654296da3bbc915dcdd2c5b918936f24526ddc7a2e4b45a73afe25",
"ci": null
},
"localAttestation": {
"schema": "houseplan-golden-wsl/v1",
"sha256": "c30cae622673c0e45a45de8a63d12e8c0f7cc5cc1ff5bf147450849a7158e35e",
"artifactSha256": "bae4cdf11dd282aca4f645a3d54815379c66260c8c810cf1897fa60e00a6dcba",
"createdAt": "2026-10-03T11:12:05.784Z",
"sha256": "c0d5ed83d3bf2591a21fff465403ce4ab71c10df781a78736cf690a578a5df52",
"artifactSha256": "5d2082d6a19c7f4ecce6ea5bdb40da9ec76d804052847b9863f770213dd0b0c0",
"createdAt": "2026-10-05T12:14:24.651Z",
"source": {
"repository": "Matysh/houseplan-card",
"branch": "issue/785-led-glow-continuity",
"commit": "4c7e9815f356d2a1cefc9b9e73e5aab96880360e",
"tree": "1465472f8f27ef4b77db90a8c7a351bac9f373e0",
"remoteSha": "4c7e9815f356d2a1cefc9b9e73e5aab96880360e",
"branch": "issue/798-provider-zigbee-routes",
"commit": "22828495bb3ca3c038a87b68327d068e60874d9d",
"tree": "0959cf050c960f44d6ada12c31e76335dd380430",
"remoteSha": "22828495bb3ca3c038a87b68327d068e60874d9d",
"clean": true,
"status": ""
},
@@ -44,7 +44,7 @@
},
"foreignCapture": null,
"witnesses": {
"count": 98,
"count": 107,
"floor": 10
},
"scenarios": {
@@ -220,7 +220,7 @@
"device-help-popover-light-ru": "7645a419f8214dacc6b97be894643d12b2a0486342e568b0b3ee42d74b8cf878",
"decor-color-popover-mobile-ru": "bdf90e0e265d41d032db948a737eeedd6e60cdacc9f85c9356aa809894654960",
"decor-color-popover-desktop-en": "46b38745da10d4467b510c5a257102395a797e0d3229e7ce8c89e4bbf3b937e7",
"general-color-popover-desktop-en": "b54ef50909c2e7b667d321457b17205d5de38dd39b219eef05bee5ef8fb6bef2",
"general-color-popover-desktop-en": "8ffdaaff5c859539985cf77304ee0acd4044d8b13eae0d80ea9b5ce1ef9f346f",
"settings-help-zoom-200-en-light": "5539d8df2691eee0b8e90fa1fe086380870eeca5d945a34bb71e65f18bb3c22f",
"settings-help-zoom-200-ru-dark": "7be1e0c156ae3a8f71d6b55fc75e5a20e5a4404efee674fa4bebdb82004daa80",
"support-desktop-empty-light-en": "55ffd7a63b8e4d65b8cb695a7b166e0c4bb2e719ce925b8d28b8e8595897750d",
@@ -241,10 +241,12 @@
"card-editor-invalid-default-floor-light-en": "dbf251ece014cfee252e0dcb2d7c00eda66aa4b5bd125e4c83e248d4319d24b3",
"card-editor-invalid-default-floor-dark-ru": "422b74bb391b87e383350247ef1bc1f10ca48c8f6fe418f75bde94e62e3b8bc0",
"led-strip-design-reference-off-light": "1a558111dbeb1962b10f47baad20b4689248a347510261152f0d6196906044fd",
"led-strip-design-reference-on-light": "16bfb46f2a90c57e95f1307e375e04e5809d41ae677e3b1e1eb56d7e0bc1d8ec",
"lighting-led-strip-glow-dark": "254fe1e39c5bb7bbb7e67527f69c767c8bdb6ed959986a8085b18adb152001d6",
"led-strip-long-zigzag-glow-light": "cd0847c03b6b397c93fa923dcd06b30d7d4a8f6c6db2f006b9f3e20de0e66e91",
"led-strip-design-reference-on-light": "1d6b4c2cfac2e1aeb9ce17ae2b3ddb62707e3f46c2ad3967b3669712a8e577fd",
"lighting-led-strip-glow-dark": "e6cdec5a16fde53bd1eca255eff554a5923f710d2b6e24904e46e39d8e5ab4ab",
"led-strip-long-zigzag-glow-light": "342749c29bac93a9a53f58921a40a10731fbcfdfff4345e71af81ce4de4dfa61",
"led-strip-endcaps-zoom-light": "468293d57b96b4b17f61027467c7c43b25d5a0f91972ba0451998cdc61ea3980",
"led-strip-rectangle-door-zoom-light": "00e8d937924bff957ef413f5d8b7c6964e44c96e90b9209ea24158217328b2ac",
"led-strip-off-light": "cbb4f4794c871d592917653e8b5713d87a6be6dfe470b2161da760c2bb3cebdc",
"iso-led-strip-dark": "572728e34f77f911f0ece247c5b7de6653e9c0dfafe04a0ab198b88644081a58"
"iso-led-strip-dark": "6605a62b15a47da09920743793b5c7f8cb2768610b6d57b739fa91eeef883676"
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 107 KiB

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 260 KiB

After

Width:  |  Height:  |  Size: 258 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 41 KiB

+14
View File
@@ -1333,6 +1333,20 @@ export const GOLDEN_SCENARIOS = Object.freeze([
// #785 the active visibility clip kept only the wall fans and dropped both
// free diagonals because SVG clip paths ignore open-path strokes.
ledStripOverride: { points: [[0.12, 0.15], [0.551667, 0.35], [0.551667, 0.55], [0.16, 0.45]] }, ...stage },
{ id: 'led-strip-endcaps-zoom-light', fixture: 'visual', ledStrips: true, space: 'golden-led',
mode: 'view', fillMode: 'none', language: 'en', theme: 'light', viewport: { width: 1000, height: 760 },
// #786: at 4× the free end and the end inside one Glow radius of masonry
// must keep the same smooth circular rim; the wall still clips its side.
zoom: 4, zoomCenter: [500, 380],
ledStripOverride: { points: [[0.43, 0.35], [0.535, 0.35]] }, ...stage },
{ id: 'led-strip-rectangle-door-zoom-light', fixture: 'visual', ledStrips: true, space: 'golden-led',
mode: 'view', fillMode: 'none', language: 'en', theme: 'light', viewport: { width: 1000, height: 760 },
// #787: four stored corners must remain four straight visible sides. The
// right side crosses led-door: the opening is optically open, but neither
// the stripe nor its emitter line may step back to the wall axis there.
zoom: 1.15, zoomCenter: [310, 350],
ledStripOverride: { points: [[0.068333, 0.088333], [0.551667, 0.088333],
[0.551667, 0.611667], [0.068333, 0.611667], [0.068333, 0.088333]] }, ...stage },
{ id: 'led-strip-off-light', fixture: 'visual', ledStrips: true, space: 'golden-led',
mode: 'view', fillMode: 'none', stateOverrides: LED_STRIPS_OFF, language: 'en', theme: 'light',
viewport: { width: 1000, height: 760 }, ...stage },
+141
View File
@@ -0,0 +1,141 @@
/** Browser-side #789 witnesses. No product imports or private state writes.
* The reference freezes the d8949cff full48 mask construction (led-strip-field
* lines 433–465). Geometry/visibility are deliberately shared with the actual
* DOM; smoke_led_strip_field's independent distance oracle covers those.
* Actual raster styles are resolved on the connected node, so a leaked host
* coarse selector cannot disappear merely because the clone left its host.
*/
export function installLedZoomOracle() {
const NS = 'http://www.w3.org/2000/svg';
const root = card => card.shadowRoot;
const bands = field => [...field.querySelectorAll('mask > g > path')];
const fields = card => [...root(card).querySelectorAll('[data-led-field]')];
const attrs = node => [...node.attributes].map(a => [a.name, a.value]);
const visibleThroughHost = (node, card) => {
for (let current = node; current;) {
const css = getComputedStyle(current);
if (css.display === 'none' || css.visibility !== 'visible' || !(Number(css.opacity) > 0)) return false;
if (current === card) return true;
current = current.parentElement || current.getRootNode()?.host || null;
}
return false;
};
const stops = [[0, 1], [45, .88], [70, .62], [86, .32], [100, 0]];
const grey = fraction => {
const at = fraction * 100;
for (let i = 1; i < stops.length; i++) {
const [a, va] = stops[i - 1], [b, vb] = stops[i];
if (at <= b) {
const v = Math.round((va + (vb - va) * (at - a) / (b - a)) * 255);
return `rgb(${v}, ${v}, ${v})`;
}
}
return 'rgb(0, 0, 0)';
};
const snapshot = card => {
const nodes = [...root(card).querySelectorAll('.led-fields, .led-fields *, [data-led-strip], [data-led-strip] *, [data-glow-source], [data-glow-source] *')];
return { nodes, attributes: nodes.map(attrs), cache: [...root(card).querySelectorAll('.led-fields')]
.map(n => [n.dataset.ledCache, n.dataset.ledRecomputes]) };
};
const unchanged = (card, before) => {
const after = snapshot(card);
const hitWidthChanges = [];
const stable = before.nodes.length === after.nodes.length && before.nodes.every((node, i) => {
if (node !== after.nodes[i]) return false;
const old = before.attributes[i], now = after.attributes[i];
if (!node.matches('.led-hit')) return JSON.stringify(old) === JSON.stringify(now);
const oldWidth = old.find(([key]) => key === 'stroke-width')?.[1];
const newWidth = now.find(([key]) => key === 'stroke-width')?.[1];
if (oldWidth !== newWidth) hitWidthChanges.push({ oldWidth, newWidth });
return JSON.stringify(old.filter(([key]) => key !== 'stroke-width'))
=== JSON.stringify(now.filter(([key]) => key !== 'stroke-width'));
});
return { stable, hitWidthChanges, cacheStable: JSON.stringify(before.cache) === JSON.stringify(after.cache) };
};
const quality = card => ({
coarse: card.getAttribute('data-led-zoom-quality') === 'coarse',
ordinary: [...root(card).querySelectorAll('[data-glow-source]')].map(field => ({
visible: visibleThroughHost(field, card),
})),
fields: fields(card).map(field => {
const paths = bands(field);
const painted = paths.filter(path => getComputedStyle(path).display !== 'none');
const pool = field.querySelector('.led-pool');
return { id: field.dataset.ledField, retained: paths.length, painted: painted.length,
visible: visibleThroughHost(field, card) && Number(pool.getAttribute('fill-opacity')) > 0,
correct24: paths.length === 48 && paths.every((path, k) => k % 2
? getComputedStyle(path).display === 'none'
: getComputedStyle(path).display !== 'none' && getComputedStyle(path).stroke === grey(1 - (k + 1) / 48)),
fill: pool.getAttribute('fill'), alpha: pool.getAttribute('fill-opacity'),
};
}),
});
const clone = (card, frozen48) => {
const original = root(card).querySelector('.led-fields');
if (!original) throw new Error('LED raster oracle: no field');
const copy = original.cloneNode(true);
fields(card).forEach((field, i) => {
const target = copy.querySelectorAll('[data-led-field]')[i];
target.style.opacity = getComputedStyle(field).opacity;
target.style.visibility = getComputedStyle(field).visibility;
target.style.mixBlendMode = getComputedStyle(field).mixBlendMode;
const actualPaths = bands(field), targetPaths = bands(target);
if (actualPaths.length !== 48) throw new Error(`LED raster oracle: expected retained48, got ${actualPaths.length}`);
if (frozen48) {
const group = targetPaths[0].parentNode;
const d = actualPaths[0].getAttribute('d');
const radius = Number(actualPaths[0].getAttribute('stroke-width')) / 2;
group.replaceChildren();
for (let k = 0; k < 48; k++) {
const path = document.createElementNS(NS, 'path');
const outer = 1 - k / 48, inner = 1 - (k + 1) / 48;
for (const [name, value] of Object.entries({ d, fill: 'none', stroke: grey((outer + inner) / 2),
'stroke-width': 2 * outer * radius, 'stroke-linecap': 'round', 'stroke-linejoin': 'round' })) {
path.setAttribute(name, String(value));
}
group.appendChild(path);
}
} else actualPaths.forEach((path, k) => {
const css = getComputedStyle(path);
targetPaths[k].style.stroke = css.stroke;
targetPaths[k].style.display = css.display;
targetPaths[k].style.visibility = css.visibility;
});
});
return copy;
};
const raster = async (source, box, scale, background) => {
const [x, y, w, h] = box;
const xml = `<svg xmlns="${NS}" width="${w * scale}" height="${h * scale}" viewBox="${box.join(' ')}"><rect x="${x}" y="${y}" width="${w}" height="${h}" fill="${background}"/>${new XMLSerializer().serializeToString(source)}</svg>`;
const img = new Image(); img.src = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(xml)}`;
await img.decode();
const canvas = document.createElement('canvas'); canvas.width = w * scale; canvas.height = h * scale;
const context = canvas.getContext('2d'); context.drawImage(img, 0, 0);
return { data: context.getImageData(0, 0, canvas.width, canvas.height).data, canvas };
};
const full48 = async (card, { scales = [1, 2, 4], background = '#868d94', images = false } = {}) => {
const pools = [...root(card).querySelectorAll('.led-pool')];
const rects = pools.map(p => ['x', 'y', 'width', 'height'].map(a => Number(p.getAttribute(a))));
const x = Math.floor(Math.min(...rects.map(r => r[0]))) - 2;
const y = Math.floor(Math.min(...rects.map(r => r[1]))) - 2;
const box = [x, y, Math.ceil(Math.max(...rects.map(r => r[0] + r[2]))) - x + 2,
Math.ceil(Math.max(...rects.map(r => r[1] + r[3]))) - y + 2];
const actual = clone(card, false), expected = clone(card, true), rows = [];
for (const scale of scales) {
const a = await raster(actual, box, scale, background), b = await raster(expected, box, scale, background);
let differentPixels = 0, maxDelta = 0;
for (let i = 0; i < a.data.length; i += 4) {
let different = false;
for (let c = 0; c < 4; c++) {
const delta = Math.abs(a.data[i + c] - b.data[i + c]);
maxDelta = Math.max(maxDelta, delta); different ||= delta !== 0;
}
if (different) differentPixels++;
}
rows.push({ scale, pixels: a.data.length / 4, differentPixels, maxDelta,
...(images ? { actualPng: a.canvas.toDataURL(), expectedPng: b.canvas.toDataURL() } : {}) });
}
return rows;
};
window.__ledZoomOracle = { snapshot, unchanged, quality, full48 };
}
+25 -2
View File
@@ -442,7 +442,8 @@ scenario and of a 100-step series, one wheel step per frame — retained heap
after 20 A→B→C→A cycles 64 MiB — and on exact counters: zero field geometry
recomputes over 100 unrelated HA ticks, 100 camera steps and a colour-only
change; the three caches of the shown space (`ledStats` of the runtime chunk)
— shapes ≤ 50, visibility ≤ 50, retained per-emitter fans ≤ 2500 — identical
— shapes ≤ 50, visibility ≤ 50, compact visibility batches ≤ 2500 and
retained SVG path text ≤ 4 Mi characters — identical
after every cycle; after disconnect 0 retained entries and 0 live LED
timers/frames/observers (tracked by creation stack in the page); one extra
cold run holds the runtime response, removes the card meanwhile and requires
@@ -455,4 +456,26 @@ samples after one warm-up enforced on the merged set. Base predates the
strips, so there is no relative comparison; the zero-LED View remains judged
by the relative `large-house-interaction-v1` profile. Exact-SHA Linux output
of the full performance workflow (`led-strips` matrix entry) is the gate
evidence; a local report is diagnostic.
evidence; a local report is diagnostic. Since #788 the actual emitter-fan
count remains reported but is not capped by dropping required endpoints or
corners: that old limit hid visible holes. Five fans are retained per compact
batch; all batches render as one positive-winding clip path per strip. The
4 Mi-character bound (at most 8 MiB UTF-16 text) explicitly measures cached
paths, excluding the joined Lit/DOM clip string. Timing and the 64 MiB
warm-cycle heap-growth limit are unchanged; that is not an absolute browser
or GPU memory bound.
Issue #789 retains every historical window and budget, and adds
`cameraFullCycleLongTaskMaxMs`: one continuous observer starting before the
first camera wheel, spanning the original scenario and 100-step series, full
quality restoration, two animation frames, an immediate wheel restart, a second
restoration and two frames, then at least 500 ms of tail. Raw Long Task entries
and phase timestamps are saved in each sample's `cameraFullCycle`. The new
metric inherits the existing 150 ms camera ceiling for median and p95; missing
observations or quality that fails to restore within 1000 ms fail closed. Two
frames are a paint opportunity, not proof of compositor presentation. The
original `cameraSeriesLongTaskMaxMs` still ends at its original boundary. This
addition prevents deferred restoration work from escaping all judged windows;
it does not turn local timing into canonical evidence. Issue #789's acceptance
additionally requires a 10% task margin (warm p95 ≤1350 ms and both camera-series
and full-cycle p95 ≤135 ms), without changing the shared budget JSON.
+3 -2
View File
@@ -1,11 +1,12 @@
{
"profile": "led-strips-v1",
"issue": 780,
"note": "ТЗ #780 §13.2: absolute limits applied to median and p95; 10x5 rests on the interaction profile's absolute ceilings, 50x50 are the acceptance bounds set in the ТЗ. The no-strip control is judged by the existing interaction profile against base. Caches of the shown space (ТЗ §13.2): 50 shapes, 50 visibility entries, 2500 retained per-emitter fans; 0 after disconnect.",
"note": "#780 timing/heap limits unchanged. #788: preserve every end/vertex; compact positive-winding fans into paths without discarding geometry. Bound actual retained representation: 50 shapes/entries, 2500 compact clip paths, 4 Mi SVG characters (at most 8 MiB UTF-16, one eighth of the unchanged 64 MiB heap budget). Actual fan count is still reported, never relabelled as path count. No growth/recomputes, zero after disconnect.",
"caches": {
"shapes": 50,
"visibility": 50,
"sources": 2500
"visibilityPaths": 2500,
"pathChars": 4194304
},
"sizes": {
"10x5": {
+71
View File
@@ -0,0 +1,71 @@
/** Additional #789 window: do not let deferred quality restoration escape
* the existing camera observer. Dependencies are passed explicitly so this
* exact function runs in the page and has a deterministic Node witness.
* Two rAFs are a paint opportunity, never proof of compositor presentation. */
export async function finishLedCameraCycle({ fullQuality, input, frame, now, sleep }) {
const marks = {};
const restored = async (name) => {
const started = now();
marks[`${name}RestoreStart`] = started;
while (!fullQuality()) {
if (now() - started >= 1000) throw new Error('LED zoom quality did not restore within 1000 ms');
await sleep(5);
}
marks[`${name}FullQuality`] = now();
await frame();
if (!fullQuality()) throw new Error('LED zoom quality changed during the final paint opportunity');
marks[`${name}PaintOpportunity`] = now();
};
await restored('first');
marks.restartInput = now();
await input();
await frame();
marks.restartSettled = now();
await restored('final');
await sleep(500);
await frame();
if (!fullQuality()) throw new Error('LED zoom quality regressed in the restore tail');
marks.tailEnd = now();
return marks;
}
/** The new full-cycle metric inherits, never relaxes, the old camera limit.
* Missing/nonfinite observations are failures even in a partial local run. */
export function cameraCycleFailures(metrics, limit) {
const failures = [];
for (const stat of ['median', 'p95']) {
const value = metrics?.[stat];
if (!Number.isFinite(value)) failures.push(`cameraFullCycleLongTaskMaxMs ${stat} missing`);
else if (Number.isFinite(limit) && value > limit) failures.push(`cameraFullCycleLongTaskMaxMs ${stat} ${value} > ${limit}`);
}
return failures;
}
/** Check every raw sample before aggregation: filtering missing values out of
* a median/p95 must not make a partial or old report pass --merge. */
export function cameraCycleSampleFailures(rows) {
const failures = [];
const phases = ['seriesEnd', 'firstRestoreStart', 'firstFullQuality', 'firstPaintOpportunity',
'restartInput', 'restartSettled', 'finalRestoreStart', 'finalFullQuality',
'finalPaintOpportunity', 'tailEnd'];
rows.forEach((row, index) => {
const cycle = row?.cameraFullCycle;
const times = [cycle?.startTime, ...phases.map(key => cycle?.phases?.[key]), cycle?.endTime];
const invalidTimes = times.some((time, i) => !Number.isFinite(time) || (i > 0 && time < times[i - 1]));
const entries = cycle?.entries;
if (invalidTimes || !Array.isArray(entries)
|| entries.some(entry => !Number.isFinite(entry.startTime) || !Number.isFinite(entry.duration) || entry.duration < 0)
|| !Number.isFinite(row.cameraFullCycleLongTaskMaxMs)) {
failures.push(`sample ${index}: missing or invalid camera full-cycle evidence`);
return;
}
if (cycle.phases.tailEnd - cycle.phases.finalPaintOpportunity < 500) {
failures.push(`sample ${index}: camera full-cycle tail shorter than 500 ms`);
}
const maximum = Number(Math.max(0, ...entries.map(entry => entry.duration)).toFixed(2));
if (row.cameraFullCycleLongTaskMaxMs !== maximum) {
failures.push(`sample ${index}: camera full-cycle maximum differs from raw Long Tasks`);
}
});
return failures;
}
+7
View File
@@ -0,0 +1,7 @@
/** Stable LED chunk identity for request accounting, independent of its hash. */
export function ledChunkRequestName(url) {
const name = url.replace(/[?#].*$/, '').replace(/.*\//, '');
// Rollup's base64url hashes may themselves contain '-' (even first).
// Capture the known prefix instead of removing a last-hyphen suffix.
return /^(led-strip-(?:runtime|field|editor))-[\w-]+\.js$/.exec(name)?.[1] ?? null;
}
+205
View File
@@ -0,0 +1,205 @@
/** #788: test the painted light, not SVG node counts. The card renders each
* synthetic strip through the ordinary config event. Rasterise its actual
* field DOM at several pixel densities and compare unobstructed floor pixels
* with the independently calculated distance to the stored polyline. This
* catches missing end/vertex emitters, winding cancellation and hard rims.
* Household exports are deliberately NOT fixtures in this public test.
*/
import { launch, check, finish } from './serve.mjs';
import { installLedZoomOracle } from './helpers/led-zoom-oracle.mjs';
import { mkdir, writeFile } from 'node:fs/promises';
import { join } from 'node:path';
const { page, browser } = await launch({ width: 1000, height: 820 }, 1);
await page.evaluate(installLedZoomOracle);
const exactResults = [];
const outputDir = process.env.HP_LED_ZOOM_OUTPUT || 'artifacts/led-zoom-quality';
async function exact48(label, capture = false) {
// This is a CSS/raster contract, not the input/controller witness. The latter
// is exercised with trusted wheel/touch in smoke_led_zoom_quality.mjs.
const result = await page.evaluate(async capture => {
const card = window.__card, oracle = window.__ledZoomOracle;
if (card.hasAttribute('data-led-zoom-quality')) throw new Error('exact48 requires a rested owner');
const before = oracle.snapshot(card);
const idle = await oracle.full48(card);
let active, coarseRaster;
try {
card.setAttribute('data-led-zoom-quality', 'coarse');
active = oracle.quality(card);
if (capture) coarseRaster = await oracle.full48(card, { scales: [2], images: true });
} finally { card.removeAttribute('data-led-zoom-quality'); }
const restored = await oracle.full48(card);
return { idle, active, restored, invariants: oracle.unchanged(card, before), coarseRaster };
}, capture);
for (const phase of ['idle', 'restored']) for (const row of result[phase]) {
check(`#789 ${label} ${phase} full48 scale=${row.scale}: every pixel equals frozen pre-change48`, row.differentPixels, 0);
}
check(`#789 ${label}: coarse paints exactly even24 midpoint bands and keeps light visible`,
result.active.fields.length > 0 && result.active.fields.every(f => f.retained === 48 && f.painted === 24 && f.correct24 && f.visible));
check(`#789 ${label}: quality alone preserves all DOM, attributes and cache counters`,
result.invariants.stable && result.invariants.cacheStable);
if (capture) {
await mkdir(outputDir, { recursive: true });
for (const row of result.coarseRaster) {
// Negative witness: a leaked coarse mode must not pass the full48 oracle.
check(`#789 ${label}: full48 oracle rejects unrecovered24`, row.differentPixels > 0);
for (const [kind, key] of [['active24', 'actualPng'], ['full48', 'expectedPng']]) {
await writeFile(join(outputDir, `${label.replace(/[^a-z0-9-]/gi, '-')}-${kind}.png`), Buffer.from(row[key].split(',')[1], 'base64'));
}
delete row.actualPng; delete row.expectedPng;
}
}
exactResults.push({ label, ...result });
}
const cases = [
{ name: 'short residual end', points: [[0.25, 0.35], [0.36225, 0.35]] },
{ name: 'diagonal residual end', points: [[0.25, 0.3], [0.341, 0.365625]] },
{ name: 'acute outer turn', points: [[0.3, 0.25], [0.32, 0.38], [0.35, 0.25]] },
{ name: 'reflected acute turn', points: [[0.3, 0.48], [0.32, 0.35], [0.35, 0.48]] },
{ name: 'decimal closed loop', points: [[0.2301, 0.2202], [0.3803, 0.2202], [0.3803, 0.4204], [0.2301, 0.4204], [0.2301, 0.2202]] },
{ name: 'intersecting path', points: [[0.3, 0.25], [0.4, 0.45], [0.3, 0.45], [0.4, 0.25]] },
{ name: 'mixed free and blocked fans', points: [[0.35, 0.35], [0.585, 0.45]], wall: true },
];
const results = [];
for (const scenario of cases) {
for (const radiusCm of [30, 60, 120]) {
for (const reversed of [false, true]) {
const points = reversed ? [...scenario.points].reverse() : scenario.points;
await page.evaluate(async ({ points, wall, radiusCm }) => {
await window.__hpTest.setServerConfig(cfg => ({ ...cfg,
spaces: [{ id: 'led-oracle', title: 'LED field oracle', cell_cm: 5,
rooms: [{ id: 'room', name: 'Room', poly: [[0.08, 0.08], [0.92, 0.08], [0.92, 0.72], [0.08, 0.72]] }],
partitions: wall ? [{ id: 'barrier', a: [0.6, 0.1], b: [0.6, 0.7], cm: 12 }] : [],
wall_segments: [], openings: [], decor: [], wall_columns: [],
settings: { glow_enabled: true, fill_mode: 'none' },
led_strips: [{ id: 'oracle', marker: 'oracle-light', points }] }],
markers: [{ id: 'oracle-light', binding: 'virtual', is_light: true,
space: 'led-oracle', room_id: 'room', glow_radius_cm: radiusCm,
glow_color: { c: '#ffffff', bri: 1 } }],
}));
}, { points, wall: scenario.wall, radiusCm });
await page.waitForFunction(() => window.__card.shadowRoot.querySelector('[data-led-field="oracle"]'));
await page.waitForTimeout(550);
await exact48(`${scenario.name}-r${radiusCm}-${reversed ? 'reverse' : 'forward'}`,
radiusCm === 60 && !reversed && ['acute outer turn', 'mixed free and blocked fans'].includes(scenario.name));
const raster = await page.evaluate(async ({ points, wall, radiusCm }) => {
const source = window.__card.shadowRoot.querySelector('.led-fields').cloneNode(true);
// Isolate geometry/falloff from colour/brightness/animation, whose
// user-facing lifecycle is independently covered by smoke_led_strip_glow.
source.querySelectorAll('.led-pool').forEach(el => {
el.setAttribute('fill', '#ffffff'); el.setAttribute('fill-opacity', '1');
});
const path = points.map(p => p.map(v => v * 1000));
const r = radiusCm / 5 * (1000 / 240); // documented physical scale, not read from implementation.
const minX = Math.floor(Math.min(...path.map(p => p[0])) - r - 2);
const minY = Math.floor(Math.min(...path.map(p => p[1])) - r - 2);
const w = Math.ceil(Math.max(...path.map(p => p[0])) + r + 2 - minX);
const h = Math.ceil(Math.max(...path.map(p => p[1])) + r + 2 - minY);
const distance = (x, y) => Math.min(...path.slice(1).map((b, i) => {
const a = path[i], dx = b[0] - a[0], dy = b[1] - a[1];
const t = Math.max(0, Math.min(1, ((x - a[0]) * dx + (y - a[1]) * dy) / (dx * dx + dy * dy)));
return Math.hypot(x - a[0] - t * dx, y - a[1] - t * dy);
}));
// The documented shared five-stop brightness contract, not a source import.
const stops = [[0, 1], [0.45, 0.88], [0.70, 0.62], [0.86, 0.32], [1, 0]];
const expectedAt = d => {
const f = d / r;
if (f >= 1) return 0;
for (let i = 1; i < stops.length; i++) {
if (f <= stops[i][0]) {
const [x0, y0] = stops[i - 1], [x1, y1] = stops[i];
return y0 + (y1 - y0) * (f - x0) / (x1 - x0);
}
}
return 0;
};
const output = [];
for (const scale of [1, 2, 4]) {
const xml = `<svg xmlns="http://www.w3.org/2000/svg" width="${w * scale}" height="${h * scale}" viewBox="${minX} ${minY} ${w} ${h}"><rect x="${minX}" y="${minY}" width="${w}" height="${h}" fill="black"/>${new XMLSerializer().serializeToString(source)}</svg>`;
const image = new Image();
image.src = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(xml)}`;
await image.decode();
const canvas = document.createElement('canvas'); canvas.width = w * scale; canvas.height = h * scale;
const ctx = canvas.getContext('2d'); ctx.drawImage(image, 0, 0);
const data = ctx.getImageData(0, 0, canvas.width, canvas.height).data;
let worst = 0, bad = 0, checked = 0, witness = null;
for (let py = 2; py < canvas.height - 2; py += 3) {
for (let px = 2; px < canvas.width - 2; px += 3) {
const x = minX + (px + 0.5) / scale, y = minY + (py + 0.5) / scale;
// Left of the long opaque wall every source has clear sight. On
// the far side every source is occluded (no wall ends in this ROI).
if (wall && Math.abs(x - 595) < 2) continue;
const expected = wall && x > 595 ? 0 : expectedAt(distance(x, y));
const actual = data[(py * canvas.width + px) * 4] / 255;
const error = Math.abs(expected - actual);
checked++;
if (error > worst) { worst = error; witness = [x, y, expected, actual]; }
if (error > 0.06) bad++;
}
}
output.push({ scale, checked, bad, worst, witness });
}
return output;
}, { points, wall: scenario.wall, radiusCm });
for (const row of raster) check(`${scenario.name}, radius=${radiusCm}cm, reverse=${reversed}, raster=${row.scale}: smooth field and opaque wall`, row.bad, 0);
results.push({ name: scenario.name, radiusCm, reversed, raster });
}
}
}
// Additional complete-pixel cases: colour/alpha are NOT overwritten to white,
// and overlap is composited over the same grey in reference and actual images.
for (const extra of ['closed-door', 'colour-alpha', 'overlap']) {
await page.evaluate(async extra => {
const points = extra === 'closed-door'
? [[.2, .22], [.55, .22], [.55, .5], [.2, .5], [.2, .22]]
: [[.22, .3], [.5, .3], [.5, .45]];
await window.__hpTest.setServerConfig(cfg => ({ ...cfg,
spaces: [{ id: 'led-oracle', title: 'Colour and door oracle', cell_cm: 5,
rooms: [{ id: 'room', name: 'Room', poly: [[.08, .08], [.92, .08], [.92, .72], [.08, .72]] }],
partitions: extra === 'closed-door' ? [{ id: 'barrier', a: [.6, .1], b: [.6, .7], cm: 12 }] : [],
openings: extra === 'closed-door' ? [{ id: 'door', type: 'door', x: .6, y: .36, angle: 90, length: .14,
host: { kind: 'partition', id: 'barrier', t: 13 / 30 } }] : [],
wall_segments: [], decor: [], wall_columns: [], settings: { glow_enabled: true, fill_mode: 'none' },
led_strips: [{ id: 'oracle', marker: 'oracle-light', points }, ...(extra === 'overlap'
? [{ id: 'overlap', marker: 'overlap-light', points: [[.3, .35], [.52, .35]] }] : [])] }],
markers: [{ id: 'oracle-light', binding: 'virtual', is_light: true, space: 'led-oracle', room_id: 'room',
glow_radius_cm: 120, glow_color: { c: '#75c52a', bri: .43 } },
...(extra === 'overlap' ? [{ id: 'overlap-light', binding: 'virtual', is_light: true, space: 'led-oracle',
room_id: 'room', glow_radius_cm: 120, glow_color: { c: '#b552dd', bri: .37 } }] : [])],
}));
}, extra);
await page.waitForTimeout(550);
if (extra === 'closed-door') {
const doorWitness = await page.evaluate(async () => {
const read = () => {
const field = window.__card.shadowRoot.querySelector('[data-led-field="oracle"]');
return { closed: field.dataset.closed,
clip: field.querySelector('clipPath path').getAttribute('d') };
};
const withDoor = read();
await window.__hpTest.setServerConfig(cfg => { cfg.spaces[0].openings = []; return cfg; });
const withoutDoor = read();
await window.__hpTest.setServerConfig(cfg => {
cfg.spaces[0].openings = [{ id: 'door', type: 'door', x: .6, y: .36, angle: 90, length: .14,
host: { kind: 'partition', id: 'barrier', t: 13 / 30 } }];
return cfg;
});
const restoredDoor = read();
return { closed: withDoor.closed === 'true',
openingActuallyChangesVisibility: withDoor.clip !== withoutDoor.clip,
restoredVisibility: withDoor.clip === restoredDoor.clip };
});
for (const [key, value] of Object.entries(doorWitness)) check(`#789 closed rectangle/door fixture: ${key}`, value);
}
// Explicit alpha .43 is a raster-composition fixture, independent of the
// product's brightness→alpha mapping (covered by the live HA smoke).
await page.evaluate(() => {
const pools = window.__card.shadowRoot.querySelectorAll('.led-pool');
pools[0].setAttribute('fill', '#75c52a'); pools[0].setAttribute('fill-opacity', '0.43');
if (pools[1]) pools[1].setAttribute('fill-opacity', '0.37');
});
await exact48(extra, true);
}
check('#789: original seven × three radii × two directions × three scales × two idle phases are covered',
exactResults.slice(0, 42).reduce((n, r) => n + r.idle.length + r.restored.length, 0), 252);
await finish(browser, { distanceOracle: results, full48Oracle: exactResults });
+502 -14
View File
@@ -3,8 +3,8 @@
* the View and on the static card. No LED chunk without a displayed active
* strip (a hidden shape or an unbound strip loads nothing); an active bound
* strip replaces the icon, paints the two-stroke stripe and — with Glow — the
* linear field; off/unavailable have no field, unavailable is dashed; without
* Glow the core takes the source colour. The whole length is one target: a
* linear field; off/unavailable have no field, unavailable is dashed. The on
* core takes the source colour with or without Glow. The whole length is one target: a
* click toggles once, a touch pan calls nothing. A hidden marker or an
* HA-disabled device loads no chunk (r1 M4); the value badge stays at the
* anchor, passive (r1 M1). The static card is passive in all four
@@ -12,6 +12,8 @@
*/
import { launch, check, finish } from './serve.mjs';
import { installHpTestOnPage } from './helpers/hp-test.mjs';
import { mkdir } from 'node:fs/promises';
import { join } from 'node:path';
const { page, browser } = await launch({ width: 1000, height: 820 }, 1);
const ledRequests = [];
@@ -48,6 +50,18 @@ const stripe = (marker) => evaluate((marker) => {
coreWidth: Number(g.querySelector('.led-core')?.getAttribute('stroke-width')) } : null;
}, marker);
const field = () => evaluate(() => window.__card.shadowRoot.querySelectorAll('[data-led-field]').length);
const painted = () => evaluate(() => {
const root = window.__card.shadowRoot;
const core = root.querySelector('[data-marker="d_light1"] .led-core');
const pool = root.querySelector('[data-led-field="ceiling"] .led-pool');
return { core: core?.getAttribute('stroke'), field: pool?.getAttribute('fill'),
coreOpacity: core ? getComputedStyle(core).strokeOpacity : null,
fieldOpacity: Number(pool?.getAttribute('fill-opacity')),
geometry: ['.led-outline', '.led-core', '.led-hit'].map(selector => {
const path = root.querySelector(`[data-marker="d_light1"] ${selector}`);
return [path?.getAttribute('d'), path?.getAttribute('stroke-width')];
}) };
});
await settle();
check('no strips: no LED chunk requested', ledRequests.length, 0);
@@ -82,9 +96,68 @@ check('unbound strip is absent from the View', await evaluate(() => window.__car
check('no round pool at the anchor: the strip is the source', await evaluate(() =>
!window.__card.shadowRoot.querySelector('[data-glow-source="light.ceiling"]')));
check('no auto-slot reserved for the strip’s marker', await evaluate(() => !('d_light1' in (window.__card._defPos || {}))));
await setState('light.ceiling', 'on', { rgb_color: [128, 213, 255], brightness: 64 });
await settle();
const onStripe = await stripe('d_light1');
check('on with Glow: white core and a field', JSON.stringify([onStripe?.state, onStripe?.core, onStripe?.dash, await field() > 0]),
JSON.stringify(['on', '#FFFFFF', null, true]));
check('on with Glow: source-coloured core and a field', [onStripe?.state, onStripe?.core, onStripe?.dash, await field() > 0],
['on', '#80d5ff', null, true]);
const firstPaint = await painted();
check('#790: rendered core and field share the resolved RGB colour', [firstPaint.core, firstPaint.field], ['#80d5ff', '#80d5ff']);
await setState('light.ceiling', 'on', { rgb_color: [225, 70, 35] });
await settle();
const rgbPaint = await painted();
check('#790: HA RGB update changes the existing core and field', [rgbPaint.core, rgbPaint.field], ['#e14623', '#e14623']);
check('#790: a colour update changes no outline, core or hit geometry', rgbPaint.geometry, firstPaint.geometry);
await setState('light.ceiling', 'on', { rgb_color: null, color_temp_kelvin: 3000 });
await settle();
const warmPaint = await painted();
check('#790: colour temperature uses the same resolved field colour', warmPaint.core === warmPaint.field
&& warmPaint.core !== '#FFFFFF' && warmPaint.core !== rgbPaint.core);
await setStrips(ceilingStrip, { glow_enabled: true }, { d_light1: { glow_color: { c: '#d837a6', bri: 0.2 } } });
await settle();
const manualPaint = await painted();
check('#790: saved manual colour updates core and field', [manualPaint.core, manualPaint.field], ['#d837a6', '#d837a6']);
check('#790: field brightness never becomes core opacity', manualPaint.coreOpacity === '1' && manualPaint.fieldOpacity < 1);
check('#790: manual colour changes no physical geometry', manualPaint.geometry, firstPaint.geometry);
// AC3: the same public HA/config path in both themes, Flat/2.5D and on/off.
// Optional local review captures are not golden baselines or release files.
const captureDir = process.env.HP_LED_COLOR_SCREENSHOTS;
if (captureDir) await mkdir(captureDir, { recursive: true });
await setStrips(ceilingStrip, { glow_enabled: true });
for (const dark of [false, true]) for (const iso of [false, true]) {
await evaluate(async dark => {
const card = window.__card;
card.hass = { ...card.hass, themes: { ...(card.hass.themes || {}), darkMode: dark } };
document.documentElement.style.colorScheme = dark ? 'dark' : 'light';
await window.__hpTest.settled();
}, dark);
await evaluate(iso => window.__hpTest.setVolumetricView(iso), iso);
let onGeometry;
for (const state of ['on', 'off']) {
await setState('light.ceiling', state, { rgb_color: [128, 213, 255] });
await page.waitForTimeout(600);
const actual = await painted();
const label = `#790: ${dark ? 'dark' : 'light'}, ${iso ? '2.5D' : 'Flat'}, ${state}`;
check(`${label}: core colour`, actual.core, state === 'on' ? '#80d5ff' : '#FFFFFF');
if (state === 'on') onGeometry = actual.geometry;
else check(`${label}: geometry stays unchanged`, actual.geometry, onGeometry);
if (captureDir) {
const box = await page.locator('[data-led-strip="ceiling"] .led-outline').boundingBox();
const x = Math.max(0, box.x - 30), y = Math.max(0, box.y - 30);
await page.screenshot({ path: join(captureDir, `${dark ? 'dark' : 'light'}-${iso ? 'iso' : 'flat'}-${state}.png`),
clip: { x, y, width: Math.min(1000 - x, box.width + 60), height: Math.min(820 - y, box.height + 60) } });
}
}
}
await evaluate(async () => {
const card = window.__card;
card.hass = { ...card.hass, themes: { ...(card.hass.themes || {}), darkMode: false } };
document.documentElement.style.colorScheme = 'light';
await window.__hpTest.setVolumetricView(false);
});
await setState('light.ceiling', 'on', { rgb_color: [128, 213, 255] });
await settle();
// r1 M1 (ТЗ §5): the strip keeps the device's value badge, passive, at the
// half-length anchor — the icon core, pulse and slot stay suppressed.
@@ -186,8 +259,13 @@ await settle();
await setState('light.ceiling', 'unavailable');
await settle();
const unavailable = await stripe('d_light1');
check('unavailable: dashed, no field', JSON.stringify([unavailable?.state, !!unavailable?.dash, await field()]),
JSON.stringify(['unavailable', true, 0]));
check('unavailable: dashed grey, no field', [unavailable?.state, unavailable?.core, !!unavailable?.dash, await field()],
['unavailable', '#9e9e9e', true, 0]);
await setState('light.ceiling', 'unknown');
await settle();
const unknown = await stripe('d_light1');
check('#790: unknown keeps the grey dashed unavailable presentation',
[unknown?.state, unknown?.core, !!unknown?.dash, await field()], ['unavailable', '#9e9e9e', true, 0]);
await setState('light.ceiling', 'on', { rgb_color: [128, 213, 255] });
await setStrips(await evaluate(() => window.__card._serverCfg.spaces[0].led_strips), { glow_enabled: false });
await settle();
@@ -197,8 +275,23 @@ await settle();
// finish before asserting the stable no-Glow contract.
await page.waitForFunction(() => !window.__card.shadowRoot.querySelector('[data-led-field]'));
const colored = await stripe('d_light1');
check('on without Glow: coloured core, no field', JSON.stringify([colored?.state, colored?.core !== '#FFFFFF', await field()]),
JSON.stringify(['on', true, 0]));
check('on without Glow: source-coloured core, no field', [colored?.state, colored?.core, await field()],
['on', '#80d5ff', 0]);
await evaluate(async () => {
await window.__hpTest.setServerConfig(cfg => {
cfg.spaces[0].settings.glow_enabled = true;
const room = cfg.spaces[0].rooms.find(room => room.id === 'r1');
room.settings = { ...(room.settings || {}), glow: false };
});
});
await settle();
check('#790: room Glow override changes no live core colour',
[(await stripe('d_light1'))?.core, await field()], ['#80d5ff', 0]);
await evaluate(async () => {
await window.__hpTest.setServerConfig(cfg => {
cfg.spaces[0].rooms.find(room => room.id === 'r1').settings.glow = null;
});
});
// The static card (ТЗ §8, AC14, r1 M6): the full light_pools × live_states
// matrix. Passive in all four: no hit path, no focus, a click calls nothing.
@@ -235,7 +328,7 @@ const matrix = await evaluate(async () => {
target?.dispatchEvent(new MouseEvent('click', { bubbles: true, composed: true }));
}
out[key] = {
state: g?.dataset.state, white: core?.getAttribute('stroke') === '#FFFFFF',
state: g?.dataset.state, core: core?.getAttribute('stroke'),
field: !!sr.querySelector('[data-led-field]'),
passive: !sr.querySelector('.led-hit, [data-led-strip] [role], [data-led-strip] [tabindex]'),
badge: !!sr.querySelector('[data-led-badge="d_light1"] .value-badge'),
@@ -245,16 +338,350 @@ const matrix = await evaluate(async () => {
return out;
});
check('static live_states:false + light_pools:false — neutral, no field, passive', JSON.stringify(matrix['pools=false,live=false']),
JSON.stringify({ state: 'off', white: true, field: false, passive: true, badge: true }));
JSON.stringify({ state: 'off', core: '#FFFFFF', field: false, passive: true, badge: true }));
check('static live_states:true + light_pools:false — source colour in the core, no field, passive', JSON.stringify(matrix['pools=false,live=true']),
JSON.stringify({ state: 'on', white: false, field: false, passive: true, badge: true }));
JSON.stringify({ state: 'on', core: '#80d5ff', field: false, passive: true, badge: true }));
check('static live_states:false + light_pools:true — neutral, no field, passive', JSON.stringify(matrix['pools=true,live=false']),
JSON.stringify({ state: 'off', white: true, field: false, passive: true, badge: true }));
check('static live_states:true + light_pools:true — white core and the field, passive', JSON.stringify(matrix['pools=true,live=true']),
JSON.stringify({ state: 'on', white: true, field: true, passive: true, badge: true }));
JSON.stringify({ state: 'off', core: '#FFFFFF', field: false, passive: true, badge: true }));
check('static live_states:true + light_pools:true — source colour and the field, passive', JSON.stringify(matrix['pools=true,live=true']),
JSON.stringify({ state: 'on', core: '#80d5ff', field: true, passive: true, badge: true }));
check('a click on any static stripe toggles nothing', await evaluate(() => window.__card.hass.states['light.ceiling'].state), 'on');
// #789 AC2: real transition events, not merely the declared CSS duration.
// Do not read computed style/layout between insertion and its entering rAF:
// that flush can manufacture the initial opacity and hide a lost fade.
await page.emulateMedia({ reducedMotion: 'no-preference' });
await evaluate(async () => {
const main = window.__card;
const host = document.createElement('div');
host.style.width = '700px'; document.body.appendChild(host);
const stat = document.createElement('houseplan-space-card');
stat.setConfig({ type: 'custom:houseplan-space-card', space: 'f1', light_pools: true, live_states: true });
stat.hass = main.hass; host.appendChild(stat);
await stat.updateComplete;
const proof = window.__ledFadeProof = {
cards: [main, stat], host, savedHass: main.hass, log: [], listeners: [],
selectors: ['[data-led-field="ceiling"]', '[data-glow-source="light.floor_lamp"]'],
parent: main.parentNode, next: main.nextSibling, updates: [0, 0], late: [], descriptors: [],
};
proof.nodes = () => proof.cards.map(card => proof.selectors.map(selector => card.shadowRoot.querySelector(selector)));
proof.set = async state => {
const states = { ...main.hass.states };
for (const eid of ['light.ceiling', 'light.floor_lamp']) states[eid] = { ...states[eid], state };
const hass = { ...main.hass, states };
for (const card of proof.cards) card.hass = hass;
await Promise.all(proof.cards.map(card => card.updateComplete));
};
for (const [cardIndex, card] of proof.cards.entries()) {
const listener = event => {
if (event.propertyName !== 'opacity') return;
const kind = proof.selectors.findIndex(selector => event.target.matches(selector));
if (kind >= 0) proof.log.push({ card: cardIndex, kind, event: event.type, elapsed: event.elapsedTime });
};
for (const name of ['transitionrun', 'transitionend']) card.shadowRoot.addEventListener(name, listener);
proof.listeners.push(listener);
}
await proof.set('off');
});
try {
await page.waitForFunction(() => window.__ledFadeProof.cards.every(card =>
card.shadowRoot.querySelector('[data-led-strip]')));
await page.waitForTimeout(650);
check('#789: both kinds start absent on both surfaces', await evaluate(() =>
window.__ledFadeProof.nodes().every(nodes => nodes.every(node => !node))), true);
const fadeSet = state => evaluate(async state => {
const proof = window.__ledFadeProof; proof.log = []; await proof.set(state);
}, state);
const fadeSnapshot = () => evaluate(() => {
const proof = window.__ledFadeProof;
return { log: proof.log, nodes: proof.nodes().map(nodes => nodes.map(node => node ? {
opacity: Number(getComputedStyle(node).opacity), leaving: node.classList.contains('is-leaving'),
entering: node.classList.contains('is-entering'),
} : null)) };
});
const checkFadeEvents = (phase, result, cards = [0, 1], kinds = [0, 1]) => {
for (const card of cards) for (const kind of kinds) {
const events = result.log.filter(event => event.card === card && event.kind === kind);
const label = `#789: ${card ? 'static' : 'main'} ${kind ? 'ordinary' : 'LED'} ${phase}`;
check(`${label} actually starts an opacity transition`, events.some(event => event.event === 'transitionrun'), true);
check(`${label} completes the unchanged 500 ms transition`, events.some(event =>
event.event === 'transitionend' && Math.abs(event.elapsed - 0.5) < 0.01), true);
}
};
await fadeSet('on');
await page.waitForTimeout(750);
const fadeOn = await fadeSnapshot();
checkFadeEvents('on', fadeOn);
check('#789: all four fields finish on at full opacity', fadeOn.nodes.every(nodes =>
nodes.every(node => node?.opacity === 1 && !node.leaving)), true);
// Observe the real bundled call graph, without wrapping private methods or
// inferring render-pass wiring from source text. Coverage is not timing data.
const coverageSession = await page.context().newCDPSession(page);
try {
await coverageSession.send('Profiler.enable');
await coverageSession.send('Profiler.startPreciseCoverage', { callCount: true, detailed: true });
for (const pass of [1, 2]) {
await coverageSession.send('Profiler.takePreciseCoverage');
await evaluate(async () => {
const card = window.__card;
card.requestUpdate();
for (let attempt = 0; attempt < 10; attempt++) {
const complete = await card.updateComplete;
if (complete !== false && !card.isUpdatePending) return;
}
throw new Error('#789: observed main render did not settle');
});
const result = await coverageSession.send('Profiler.takePreciseCoverage');
const functions = result.result.flatMap(script => script.functions);
const calls = name => functions.filter(fn => fn.functionName === name)
.reduce((sum, fn) => sum + (fn.ranges[0]?.count || 0), 0);
const counts = { render: calls('_renderLightPass'), reads: calls('_lightBarriers'), builds: calls('_resolveLightBarriers') };
check(`#789: observed main render pass ${pass} executes`, counts.render > 0, true);
check(`#789: Glow and LED share barrier reads in pass ${pass}`, counts.reads >= 2 * counts.render, true);
check(`#789: pass ${pass} resolves barriers exactly once per render, never across renders`, counts.builds, counts.render);
console.log('#789 render-pass coverage', JSON.stringify({ pass, ...counts }));
}
} finally {
await coverageSession.send('Profiler.stopPreciseCoverage');
await coverageSession.send('Profiler.disable');
await coverageSession.detach();
}
await fadeSet('off');
check('#789: normal off retains all four nodes for their fade', await evaluate(() =>
window.__ledFadeProof.nodes().every(nodes => nodes.every(node => node?.classList.contains('is-leaving')))), true);
await page.waitForTimeout(750);
const fadeOff = await fadeSnapshot();
checkFadeEvents('off', fadeOff);
check('#789: normal off removes all four fields after fading', fadeOff.nodes.every(nodes => nodes.every(node => !node)), true);
await page.emulateMedia({ reducedMotion: 'reduce' });
await fadeSet('on');
await page.waitForTimeout(200);
const reducedOn = await fadeSnapshot();
check('#789: reduced motion shows LED and ordinary immediately on both surfaces', reducedOn.nodes.every(nodes =>
nodes.every(node => node?.opacity === 1)), true);
check('#789: reduced on starts no CSS opacity animation', reducedOn.log.length, 0);
await fadeSet('off');
await page.waitForTimeout(200);
const reducedOff = await fadeSnapshot();
check('#789: reduced off is immediately dark on both surfaces', reducedOff.nodes.every(nodes =>
nodes.every(node => node?.opacity === 0)), true);
check('#789: reduced off starts no CSS opacity animation', reducedOff.log.length, 0);
await page.waitForTimeout(450);
check('#789: reduced off still removes every field', await evaluate(() =>
window.__ledFadeProof.nodes().every(nodes => nodes.every(node => !node))), true);
await page.emulateMedia({ reducedMotion: 'no-preference' });
await fadeSet('on');
await page.waitForTimeout(750);
await evaluate(() => { window.__ledFadeProof.savedNodes = window.__ledFadeProof.nodes(); });
await fadeSet('off');
await page.waitForTimeout(100);
await fadeSet('on');
await page.waitForTimeout(750); // beyond the cancelled off timer as well as the returning fade
check('#789: rapid off/on retains every DOM node beyond the stale fade deadline', await evaluate(() => {
const proof = window.__ledFadeProof;
return proof.nodes().every((nodes, card) => nodes.every((node, kind) => node
&& node === proof.savedNodes[card][kind] && !node.classList.contains('is-leaving')
&& Number(getComputedStyle(node).opacity) === 1));
}), true);
await fadeSet('off');
await page.waitForTimeout(650);
await evaluate(async () => {
// Both Lit commits finish in microtasks, before a browser entering-frame.
await window.__ledFadeProof.set('on'); await window.__ledFadeProof.set('off');
});
await page.waitForTimeout(650);
check('#789: off before the entry frame cannot resurrect a field', await evaluate(() =>
window.__ledFadeProof.nodes().every(nodes => nodes.every(node => !node))), true);
await evaluate(async () => {
const proof = window.__ledFadeProof;
await proof.set('on');
// Lit's updated() can enqueue a header/summary follow-up. Drain only its
// microtasks before observing disconnect: entry rAFs must still be pending.
const drainUpdates = async phase => {
for (let attempt = 0; attempt < 10; attempt++) {
const complete = await Promise.all(proof.cards.map(card => card.updateComplete));
if (complete.every(result => result !== false) && proof.cards.every(card => !card.isUpdatePending)) return;
}
throw new Error(`#789: pending Lit microtasks did not settle ${phase} disconnect`);
};
await drainUpdates('before');
if (!proof.nodes().every(nodes => nodes.every(node => node?.classList.contains('is-entering')))) {
throw new Error('#789: disconnect witness must precede every entering frame');
}
for (const [index, card] of proof.cards.entries()) {
proof.descriptors[index] = Object.getOwnPropertyDescriptor(card, 'requestUpdate');
const original = card.requestUpdate;
card.requestUpdate = function (...args) {
proof.updates[index]++;
if (!this.isConnected) proof.late.push({ card: index, stack: new Error().stack });
return original.apply(this, args);
};
}
// Disconnect in this microtask, with entry rAFs/feather timers still pending.
for (const card of proof.cards) card.remove();
// Teardown itself mutates reactive header/summary state. Finish that same
// microtask chain before measuring late callbacks; no rAF/timer can run yet.
await drainUpdates('after');
proof.updates = [0, 0];
proof.late = [];
});
await page.waitForTimeout(750);
check('#789: disconnected main/static owners receive no late transition updates', await evaluate(() =>
window.__ledFadeProof.updates), [0, 0]);
const late = await evaluate(() => window.__ledFadeProof.late);
if (late.length) console.log('#789 late update diagnostic', JSON.stringify(late, null, 2));
await evaluate(async () => {
const proof = window.__ledFadeProof; proof.log = [];
proof.parent.insertBefore(proof.cards[0], proof.next?.parentNode === proof.parent ? proof.next : null);
proof.host.appendChild(proof.cards[1]);
await Promise.all(proof.cards.map(card => card.updateComplete));
});
await page.waitForTimeout(750);
const reconnected = await fadeSnapshot();
checkFadeEvents('reconnected', reconnected);
// #794: visible fade is a browser oracle, but events after reconnect can also
// finish an old entry. space-card-led-disconnect.test.mjs proves synchronous
// owner disposal independently, before a detached render can clean up.
check('#789: reconnect visibly fades and returns all four fields', reconnected.nodes.every(nodes =>
nodes.every(node => node?.opacity === 1 && !node.leaving)), true);
for (const exit of [
{ label: 'disabled pools', config: { space: 'f1', light_pools: false } },
{ label: 'another space', config: { space: 'garden', light_pools: true } },
]) {
await fadeSet('off');
await page.waitForTimeout(650);
await evaluate(async config => {
const proof = window.__ledFadeProof;
await proof.set('on');
if (!proof.nodes()[1].every(node => node?.classList.contains('is-entering'))) {
throw new Error('#789: config exit must precede the static entering frame');
}
proof.cards[1].setConfig({ type: 'custom:houseplan-space-card', live_states: true, ...config });
await proof.cards[1].updateComplete;
}, exit.config);
await page.waitForTimeout(750);
check(`#789: ${exit.label} removes previous static fields beyond their old callbacks`, await evaluate(() =>
window.__ledFadeProof.nodes()[1].every(node => !node)), true);
await evaluate(async () => {
const proof = window.__ledFadeProof; proof.log = [];
proof.cards[1].setConfig({ type: 'custom:houseplan-space-card', space: 'f1', light_pools: true, live_states: true });
await proof.cards[1].updateComplete;
});
await page.waitForTimeout(750);
const returned = await fadeSnapshot();
checkFadeEvents(`return from ${exit.label}`, returned, [1]);
check(`#789: return from ${exit.label} starts fresh static fields`, returned.nodes[1].every(node =>
node?.opacity === 1 && !node.leaving), true);
}
await fadeSet('off');
await page.waitForTimeout(650);
await evaluate(async () => {
const proof = window.__ledFadeProof;
await proof.set('on');
if (!proof.nodes()[0].every(node => node?.classList.contains('is-entering'))) {
throw new Error('#789: main navigation must start before the entering frame');
}
await window.__hpTest.switchSpace('garden');
});
await page.waitForTimeout(750);
check('#789: main LED-to-empty navigation removes both former sources beyond stale callbacks', await evaluate(() =>
window.__ledFadeProof.nodes()[0].every(node => !node)), true);
await evaluate(async () => {
window.__ledFadeProof.log = [];
await window.__hpTest.switchSpace('f1');
});
await page.waitForTimeout(750);
const mainReturned = await fadeSnapshot();
checkFadeEvents('return from LED-free space', mainReturned, [0], [0]);
// Main ordinary Glow has retained its per-space appearance without replay on
// navigation since before #789. Preserve that UX; only LED starts a fresh
// lifecycle here. The real on/off fade assertions above still cover both.
check('#789: main navigation back restores the LED field at full opacity',
mainReturned.nodes[0][0]?.opacity === 1 && !mainReturned.nodes[0][0].leaving, true);
const retainedOrdinary = mainReturned.nodes[0][1];
check('#789: main navigation preserves steady ordinary Glow without replay',
retainedOrdinary?.opacity === 1 && !retainedOrdinary.entering && !retainedOrdinary.leaving, true);
// Keep the same mounted static card while its server-side space vanishes.
// This exercises renderSpaceStatic's !space exit, not setConfig/disconnect.
await fadeSet('off');
await page.waitForTimeout(650);
await evaluate(async () => {
const proof = window.__ledFadeProof;
await proof.set('on');
if (!proof.nodes()[1].every(node => node?.classList.contains('is-entering'))) {
throw new Error('#789: server removal must start before the static entering frame');
}
await window.__hpTest.setServerConfig(cfg => {
proof.savedConfig = structuredClone(cfg);
cfg.spaces = cfg.spaces.filter(space => space.id !== 'f1');
cfg.markers = (cfg.markers || []).filter(marker => marker.space !== 'f1');
});
});
await page.waitForFunction(() => !window.__ledFadeProof.cards[1].shadowRoot.querySelector('[data-led-strip]'));
await page.waitForTimeout(750);
check('#789: a missing server space clears both fields without disconnecting the static card', await evaluate(() => {
const proof = window.__ledFadeProof;
return proof.cards[1].isConnected && proof.nodes()[1].every(node => !node);
}), true);
await evaluate(async () => {
const proof = window.__ledFadeProof; proof.log = [];
await window.__hpTest.setServerConfig(proof.savedConfig);
delete proof.savedConfig;
});
await page.waitForTimeout(750);
const restoredSpace = await fadeSnapshot();
checkFadeEvents('restored server space', restoredSpace, [1]);
check('#789: restoring a server space starts fresh static LED and ordinary fields', restoredSpace.nodes[1].every(node =>
node?.opacity === 1 && !node.leaving), true);
await evaluate(() => window.__hpTest.switchSpace('f1'));
await page.waitForTimeout(750);
} finally {
await page.emulateMedia({ reducedMotion: 'no-preference' });
await evaluate(async () => {
const proof = window.__ledFadeProof;
if (proof.savedConfig) {
await window.__hpTest.setServerConfig(proof.savedConfig);
delete proof.savedConfig;
}
for (const [index, card] of proof.cards.entries()) {
for (const name of ['transitionrun', 'transitionend']) card.shadowRoot.removeEventListener(name, proof.listeners[index]);
if (index < proof.descriptors.length) {
if (proof.descriptors[index]) Object.defineProperty(card, 'requestUpdate', proof.descriptors[index]);
else delete card.requestUpdate;
}
}
const main = proof.cards[0];
if (!main.isConnected) proof.parent.insertBefore(main, proof.next?.parentNode === proof.parent ? proof.next : null);
main.hass = proof.savedHass;
proof.cards[1].remove(); proof.host.remove();
delete window.__ledFadeProof;
await main.updateComplete;
});
await page.waitForFunction(() => window.__card.shadowRoot.querySelector('[data-led-strip]'));
await settle();
}
for (const mode of ['plan', 'decor']) {
await evaluate(mode => window.__hpTest.setMode(mode), mode);
check(`#790: ${mode} keeps the coloured core passive and translucent`, await evaluate(() => {
const root = window.__card.shadowRoot;
return [root.querySelector('[data-marker="d_light1"] .led-core')?.getAttribute('stroke'),
root.querySelector('.led-passive')?.getAttribute('opacity'), !!root.querySelector('.led-hit')];
}), ['#80d5ff', '0.45', false]);
}
await evaluate(() => window.__hpTest.setMode('devices'));
check('#790: Devices retains the live core colour', (await stripe('d_light1'))?.core, '#80d5ff');
await setStrips([...ceilingStrip, { id: 'loose', points: [[0.12, 0.45], [0.30, 0.45]], marker: null }],
{ glow_enabled: true });
check('#790: unbound Devices strip keeps its grey dashed presentation', await evaluate(() => {
const path = window.__card.shadowRoot.querySelector('[data-led-unbound="loose"]');
return [path?.getAttribute('stroke'), !!path?.getAttribute('stroke-dasharray')];
}), ['#8a8a8a', true]);
await page.locator('.led-select-hit[data-led-select="ceiling"]').dispatchEvent('click');
await page.waitForTimeout(100);
await page.click('[data-led-action="settings"]');
@@ -293,4 +720,65 @@ check('the press loads the tool and draws for the same marker', await evaluate((
return !!led?.tool && led.chain?.convert === 'd_tv' && !window.__card._markerDialog;
}));
// A fresh document makes both lazy imports genuinely cold. Hold each network
// response, disconnect its requesting static card, then let the actual module
// finish loading: no private runtime hooks or synthetic callback.
await evaluate(() => localStorage.clear()); // isolated demo browser storage only
ledRequests.length = 0;
await page.reload();
await page.waitForFunction(() => window.__card?._loadOk);
await installHpTestOnPage(page);
await evaluate(async () => {
window.__card.setConfig({ type: 'custom:houseplan-card', floor: 'garden' });
await window.__card.updateComplete;
});
await setStrips(ceilingStrip, { glow_enabled: true });
check('#789: fixed non-LED main card leaves both LED imports cold', ledRequests.filter(url =>
/^led-strip-(runtime|field)-/.test(url)).length, 0);
for (const kind of ['runtime', 'field']) {
let releaseImport;
const barrier = new Promise(resolve => { releaseImport = resolve; });
const pattern = new RegExp(`/led-strip-${kind}-[^/]+\\.js(?:\\?.*)?$`);
const holdImport = async route => { await barrier; await route.fallback(); };
await page.route(pattern, holdImport);
try {
const requested = page.waitForRequest(pattern);
await evaluate(async () => {
const card = document.createElement('houseplan-space-card');
card.setConfig({ type: 'custom:houseplan-space-card', space: 'f1', light_pools: true, live_states: true });
card.hass = window.__card.hass;
document.body.appendChild(card);
window.__ledColdProof = { card, updates: 0, original: card.requestUpdate };
await card.updateComplete;
});
await requested;
check(`#789: cold static ${kind} import has not painted its content yet`, await evaluate(kind =>
!window.__ledColdProof.card.shadowRoot.querySelector(kind === 'runtime' ? '[data-led-strip]' : '[data-led-field]'), kind), true);
await evaluate(async () => {
const proof = window.__ledColdProof, card = proof.card;
card.remove();
let settled = false;
for (let attempt = 0; attempt < 10; attempt++) {
const complete = await card.updateComplete;
if (complete !== false && !card.isUpdatePending) { settled = true; break; }
}
if (!settled) throw new Error('#789: cold static teardown did not settle');
card.requestUpdate = function (...args) { proof.updates++; return proof.original.apply(this, args); };
});
const arrived = page.waitForResponse(pattern);
releaseImport();
await (await arrived).finished();
await page.waitForTimeout(750);
check(`#789: a cold ${kind} arriving after static disconnect requests no update`, await evaluate(() =>
window.__ledColdProof.updates), 0);
} finally {
releaseImport();
await page.unroute(pattern, holdImport);
await evaluate(() => {
const proof = window.__ledColdProof;
if (proof) { delete proof.card.requestUpdate; proof.card.remove(); delete window.__ledColdProof; }
});
}
}
await finish(browser);
+159
View File
@@ -0,0 +1,159 @@
/** #788: browser witness for the visible tube, independent of the Glow field.
* Synthetic room-wall fixtures enter through the config-event facade. Expected
* corners come from an analytic inset/line equation below, not LED geometry.
* Both real SVG lengths and raster pixels protect against extra miter hooks,
* backtracking at short subdivisions and a notch through the open doorway.
*/
import { launch, check, finish } from './serve.mjs';
import { fixtureWallKey } from './fixtures/wall-key.mjs';
const { page, browser } = await launch({ width: 1000, height: 820 }, 1);
// All coordinates here are render units. A 12 cm wall at 5 cm/grid cell has
// total thickness 10 units (1000/240 units/cell), hence a 5-unit inner inset.
// This plan is smaller than the documented 1000-unit icon reference floor:
// D=2.5%*1000=25, outline=.12D=3, centreline offset=1.5, core=1.5.
const left = 200.1, top = 180.2, right = 500.3, bottom = 480.4;
const offset = 1.5, outlineWidth = 3, coreWidth = 1.5;
const scenarios = [
{ name: 'decimal rectangle and door', angle: 0, tilt: 0, intermediate: false },
{ name: 'sloped side and short saved subdivision', angle: 0, tilt: 0.545461, intermediate: true },
{ name: 'rotated decimal rectangle and door', angle: 0.137, tilt: 0, intermediate: false },
];
const results = [];
await page.evaluate(async () => {
const card = window.__card;
card.setConfig({ ...card._config, icon_size: 2.5, language: 'en' });
await window.__hpTest.setMode('view');
});
for (const scenario of scenarios) {
const cos = Math.cos(scenario.angle), sin = Math.sin(scenario.angle);
const rotate = ([x, y]) => [400 + (x - 400) * cos - (y - 330) * sin,
330 + (x - 400) * sin + (y - 330) * cos];
const normalise = (point) => rotate(point).map(value => value / 1000);
const rooms = [
{ id: 'tube-room', name: 'Tube room', poly: [[left - 5, top - 5], [right + 5, top - 5],
[right + 5, bottom + 5], [left - 5, bottom + 5]].map(normalise) },
{ id: 'receiving-room', name: 'Receiving room', poly: [[right + 5, top - 5], [755.5, top - 5],
[755.5, bottom + 5], [right + 5, bottom + 5]].map(normalise) },
];
const walls = [];
for (const room of rooms) room.poly.forEach((a, i) => {
const b = room.poly[(i + 1) % room.poly.length], key = fixtureWallKey(a, b);
if (!walls.some(wall => wall.key === key)) walls.push({ key, a, b, cm: 12 });
});
// The doorway begins just .1 unit from the inner corner: its first face
// piece is shorter than the tube's centreline offset. Both rooms exist, so
// this is a real optically open door, not an opaque exterior opening.
const door = normalise([right + 5, top + 40.1]);
const corners = [[left + scenario.tilt, top], [left, bottom], [right, bottom], [right, top]];
const source = [...corners, ...(scenario.intermediate ? [[right - 0.1, top]] : [])].map(normalise);
// The free left side keeps its genuine slope; intersect it analytically
// with y=top+offset and y=bottom-offset instead of silently straightening it.
const expected = [[left + scenario.tilt * (1 - offset / (bottom - top)), top + offset],
[left + scenario.tilt * offset / (bottom - top), bottom - offset],
[right - offset, bottom - offset], [right - offset, top + offset]];
if (!scenario.tilt) { expected[0][0] += offset; expected[1][0] += offset; }
const expectedCorners = expected.map(rotate);
const expectedLength = expectedCorners.reduce((length, a, i) => {
const b = expectedCorners[(i + 1) % expectedCorners.length];
return length + Math.hypot(b[0] - a[0], b[1] - a[1]);
}, 0);
// Move the stored closure seam to every node, including the short saved
// subdivision. The visible result must remain one four-corner tube.
for (let start = 0; start < source.length; start++) for (const reversed of [false, true]) {
const ordered = [...source.slice(start), ...source.slice(0, start)];
if (reversed) ordered.reverse();
const points = [...ordered, ordered[0]];
await page.evaluate(async ({ rooms, walls, door, angle, points }) => {
await window.__hpTest.setServerConfig(cfg => ({ ...cfg,
settings: { ...(cfg.settings || {}), volumetric_view: false },
spaces: [{ id: 'tube-oracle', title: 'Tube oracle', cell_cm: 5, view_box: [0, 0, 1, 0.7],
rooms, walls, wall_segments: [], partitions: [], wall_columns: [], decor: [],
openings: [{ id: 'tube-door', type: 'door', x: door[0], y: door[1],
angle: 90 + angle * 180 / Math.PI, length: 0.08 }],
settings: { glow_enabled: true, fill_mode: 'none', show_names: false, sun_rays: false },
led_strips: [{ id: 'tube', marker: 'd_light1', points }] }],
markers: [{ id: 'd_light1', binding: 'device:d_light1', space: 'tube-oracle',
room_id: 'tube-room', is_light: true, glow_radius_cm: 30 }],
}));
}, { rooms, walls, door, angle: scenario.angle, points });
let viewShape = null;
for (const mode of ['view', 'devices']) {
await page.evaluate(mode => window.__hpTest.setMode(mode), mode);
let onShape = null;
for (const state of ['on', 'off']) {
// Public HA state input, not a write to the card's private resolver.
await page.evaluate(async state => {
const card = window.__card, previous = card.hass.states['light.ceiling'];
// This geometry-only oracle deliberately uses a white source in
// both states; source-colour behaviour is held by the Glow smoke.
card.hass = { ...card.hass, states: { ...card.hass.states,
'light.ceiling': { ...previous, state,
attributes: { ...previous.attributes, rgb_color: [255, 255, 255] } } } };
await window.__hpTest.settled();
}, state);
await page.waitForFunction(state => window.__card.shadowRoot
.querySelector('[data-led-strip="tube"]')?.dataset.state === state, state);
const actual = await page.evaluate(async ({ expectedCorners, outlineWidth, coreWidth }) => {
const group = window.__card.shadowRoot.querySelector('[data-led-strip="tube"]');
const outline = group.querySelector('.led-outline'), core = group.querySelector('.led-core');
const d = outline.getAttribute('d');
const corners = [...d.matchAll(/[ML]\s*([-+\d.e]+)[,\s]+([-+\d.e]+)/gi)]
.map(match => [Number(match[1]), Number(match[2])]);
const expectedD = expectedCorners.map((p, i) => `${i ? 'L' : 'M'}${p[0]} ${p[1]}`).join(' ') + ' Z';
const minX = Math.floor(Math.min(...expectedCorners.map(p => p[0])) - 8);
const minY = Math.floor(Math.min(...expectedCorners.map(p => p[1])) - 8);
const width = Math.ceil(Math.max(...expectedCorners.map(p => p[0])) - minX + 8);
const height = Math.ceil(Math.max(...expectedCorners.map(p => p[1])) - minY + 8);
const raster = async body => {
const image = new Image();
const xml = `<svg xmlns="http://www.w3.org/2000/svg" width="${width * 2}" height="${height * 2}" viewBox="${minX} ${minY} ${width} ${height}">${body}</svg>`;
image.src = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(xml)}`;
await image.decode();
const canvas = document.createElement('canvas'); canvas.width = width * 2; canvas.height = height * 2;
const context = canvas.getContext('2d'); context.drawImage(image, 0, 0);
return context.getImageData(0, 0, canvas.width, canvas.height).data;
};
const expectedMarkup = `<path d="${expectedD}" fill="none" stroke="#383838" stroke-width="${outlineWidth}" stroke-linecap="round" stroke-linejoin="round"/><path d="${expectedD}" fill="none" stroke="#FFFFFF" stroke-width="${coreWidth}" stroke-linecap="round" stroke-linejoin="round"/>`;
const [painted, reference] = await Promise.all([
raster(new XMLSerializer().serializeToString(outline) + new XMLSerializer().serializeToString(core)),
raster(expectedMarkup),
]);
let badPixels = 0;
for (let i = 0; i < painted.length; i += 4) {
if ([0, 1, 2, 3].some(channel => Math.abs(painted[i + channel] - reference[i + channel]) > 16)) badPixels++;
}
return { d, corners, closed: /Z\s*$/i.test(d), length: outline.getTotalLength(),
widths: [Number(outline.getAttribute('stroke-width')), Number(core.getAttribute('stroke-width'))],
coreD: core.getAttribute('d'), badPixels,
openingPresent: !!window.__card.shadowRoot.querySelector('[data-hp="opening"][data-id="tube-door"][data-kind="door"]'),
saved: window.__card._serverCfg.spaces[0].led_strips[0].points };
}, { expectedCorners, outlineWidth, coreWidth });
const label = `${scenario.name}, start=${start}, reverse=${reversed}, ${mode}, ${state}`;
check(`${label}: four closed visible corners`, actual.closed && actual.corners.length === 4);
check(`${label}: fixture includes the real mounted door`, actual.openingPresent);
check(`${label}: analytical corner positions`, expectedCorners.every(p =>
actual.corners.some(q => Math.hypot(p[0] - q[0], p[1] - q[1]) < 1e-4)));
check(`${label}: no extra travel from a hook, backtrack or door notch`, Math.abs(actual.length - expectedLength) < 0.003);
check(`${label}: expected tube pixels`, actual.badPixels, 0);
check(`${label}: outline/core share geometry`, actual.coreD, actual.d);
check(`${label}: physical outline/core widths`, actual.widths, [outlineWidth, coreWidth]);
check(`${label}: saved geometry is untouched`, actual.saved, points);
const shape = { d: actual.d, widths: actual.widths };
if (state === 'on') onShape = shape;
else check(`${label}: off keeps the on shape and thickness`, shape, onShape);
if (mode === 'view' && state === 'on') viewShape = shape;
if (mode === 'devices') check(`${label}: Devices keeps View tube geometry`, shape, viewShape);
results.push({ scenario: scenario.name, start, reversed, mode, state,
corners: actual.corners.length, badPixels: actual.badPixels, lengthError: actual.length - expectedLength });
}
}
}
}
await finish(browser, results);
+322
View File
@@ -0,0 +1,322 @@
/** #789: real input → temporary LED-only24 → exact full48. Not a benchmark. */
import { launch, check, finish } from './serve.mjs';
import { installLedZoomOracle } from './helpers/led-zoom-oracle.mjs';
const { page, browser } = await launch({ width: 1000, height: 820 }, 1, [], { hasTouch: true });
await page.evaluate(installLedZoomOracle);
const cdp = await page.context().newCDPSession(page);
const results = [];
const quality = () => page.evaluate(() => window.__ledZoomOracle.quality(window.__card));
const idle = async () => {
await page.waitForFunction(() => !window.__card.hasAttribute('data-led-zoom-quality')
&& !window.__card._cameraTransition.active, undefined, { timeout: 1500 });
await page.evaluate(() => window.__hpTest.settled());
};
const point = () => page.evaluate(() => {
const r = window.__card.shadowRoot.querySelector('.stage').getBoundingClientRect();
return { x: r.left + r.width * .55, y: r.top + r.height * .65 };
});
const wheel = async (dy = -80) => {
const p = await point(); await page.mouse.move(p.x, p.y); await page.mouse.wheel(0, dy);
await page.evaluate(() => new Promise(resolve => requestAnimationFrame(() => requestAnimationFrame(resolve))));
};
const active = async label => {
const q = await quality(); results.push({ label, ...q });
check(`${label}: real scale change activates coarse`, q.coarse);
check(`${label}: retained48 paints even24 with exact midpoint falloff, never hidden`,
q.fields.length > 0 && q.fields.every(f => f.retained === 48 && f.painted === 24 && f.correct24 && f.visible));
check(`${label}: ordinary light is not hidden by LED quality`, q.ordinary.length > 0 && q.ordinary.every(f => f.visible));
return q.coarse;
};
const restored = async label => {
await idle();
const q = await quality();
check(`${label}: owner removes coarse and paints original48`, !q.coarse
&& q.fields.length > 0 && q.fields.every(f => f.retained === 48 && f.painted === 48 && f.visible));
const rows = await page.evaluate(() => window.__ledZoomOracle.full48(window.__card, { scales: [1, 2] }));
for (const row of rows) check(`${label}: all restored pixels equal frozen48 at scale ${row.scale}`, row.differentPixels, 0);
};
const setState = (state, attributes = {}) => page.evaluate(async ({ state, attributes }) => {
const card = window.__card, previous = card.hass.states['light.ceiling'];
card.hass = { ...card.hass, states: { ...card.hass.states,
'light.ceiling': { ...previous, state, attributes: { ...previous.attributes, ...attributes } } } };
await card.updateComplete;
}, { state, attributes });
const touch = (type, points) => cdp.send('Input.dispatchTouchEvent', { type,
touchPoints: points.map(([x, y], i) => ({ x, y, id: i + 1, radiusX: 2, radiusY: 2, force: 1 })) });
const twoFrames = () => page.evaluate(() => new Promise(resolve => requestAnimationFrame(() => requestAnimationFrame(resolve))));
try {
await setState('on', { rgb_color: [117, 197, 42], brightness: 190 });
await page.evaluate(async () => {
const card = window.__card, lamp = card.hass.states['light.floor_lamp'];
card.hass = { ...card.hass, states: { ...card.hass.states,
'light.floor_lamp': { ...lamp, state: 'on', attributes: { ...lamp.attributes, brightness: 200 } } } };
await card.updateComplete;
await window.__hpTest.setServerConfig(cfg => {
const space = cfg.spaces.find(s => s.id === 'f1');
space.settings = { ...space.settings, glow_enabled: true };
space.led_strips = [
{ id: 'quality', marker: 'd_light1', points: [[.15, .3], [.4, .3], [.4, .46]] },
{ id: 'overlap', marker: 'quality-virtual', points: [[.2, .35], [.45, .35]] },
];
cfg.markers = [...(cfg.markers || []).filter(m => !['quality-virtual', 'd_light1', 'd_lamp'].includes(m.id)),
{ id: 'd_light1', binding: 'device:d_light1', space: 'f1' },
{ id: 'd_lamp', binding: 'device:d_lamp', space: 'f1' },
{ id: 'quality-virtual', binding: 'virtual', is_light: true, space: 'f1',
glow_radius_cm: 120, glow_color: { c: '#b552dd', bri: .43 } }];
return cfg;
});
});
await page.waitForFunction(() => window.__card.shadowRoot.querySelectorAll('[data-led-field]').length === 2);
await page.waitForTimeout(600);
check('fixture includes ordinary Glow outside LED quality scope', await page.evaluate(() =>
window.__card.shadowRoot.querySelectorAll('[data-glow-source]').length > 0));
const visibilityGuard = await page.evaluate(() => {
const card = window.__card, parent = card.shadowRoot.querySelector('.led-fields');
const original = parent.getAttribute('style'), result = {};
const restore = () => original === null ? parent.removeAttribute('style') : parent.setAttribute('style', original);
try {
for (const [property, value] of [['opacity', '0'], ['display', 'none']]) {
restore(); parent.style.setProperty(property, value);
const q = window.__ledZoomOracle.quality(card);
result[property] = q.fields.length === 2 && q.fields.every(f => !f.visible)
&& q.ordinary.length > 0 && q.ordinary.every(f => f.visible);
}
} finally { restore(); }
result.restored = parent.getAttribute('style') === original
&& window.__ledZoomOracle.quality(card).fields.every(f => f.visible);
return result;
});
for (const [kind, caught] of Object.entries(visibilityGuard))
check(`visibility oracle negative control ${kind}: ancestor hiding cannot pass as visible light`, caught);
for (const motion of ['no-preference', 'reduce']) {
await page.emulateMedia({ reducedMotion: motion });
await idle();
await page.evaluate(() => { window.__qualityBefore = window.__ledZoomOracle.snapshot(window.__card); });
await wheel();
const works = await active(`${motion} trusted wheel`);
if (process.argv.includes('--red-witness')) break;
// Baseline fails the named active24 assertion, not setup/import/timeouts.
if (!works) continue;
const activeInvariant = await page.evaluate(() => window.__ledZoomOracle.unchanged(window.__card, window.__qualityBefore));
check(`${motion}: active coarse preserves geometry, DOM and cache`, activeInvariant.stable && activeInvariant.cacheStable);
await restored(`${motion} wheel idle`);
const invariant = await page.evaluate(() => window.__ledZoomOracle.unchanged(window.__card, window.__qualityBefore));
check(`${motion}: camera retains fields/masks/clips/tubes/ordinary DOM and geometry`, invariant.stable);
check(`${motion}: camera never recomputes geometry or grows cache`, invariant.cacheStable);
results.push({ motion, permittedTransparentHitWidthChanges: invariant.hitWidthChanges });
await wheel();
const still = await point(); await page.mouse.move(still.x, still.y); await page.mouse.down();
check(`${motion}: stationary pointerdown cannot shorten an active quality lease`, (await quality()).coarse);
await page.mouse.up();
check(`${motion}: stationary pointerup cannot shorten an active quality lease`, (await quality()).coarse);
await restored(`${motion} stationary pointer deadline`);
// Two native contacts, not _zoomAt or direct calls of pointer handlers.
const p = await point();
await page.evaluate(() => {
window.__qualityTouchEvents = [];
const stage = window.__card.shadowRoot.querySelector('.stage');
for (const type of ['pointerdown', 'pointermove', 'pointerup', 'pointercancel', 'lostpointercapture']) {
stage.addEventListener(type, e => window.__qualityTouchEvents.push({ type, trusted: e.isTrusted,
id: e.pointerId, x: e.clientX, scale: window.__card._zoom }));
}
});
await touch('touchStart', [[p.x - 50, p.y], [p.x + 50, p.y]]);
await touch('touchMove', [[p.x - 75, p.y], [p.x + 75, p.y]]);
await twoFrames();
await active(`${motion} trusted pinch`);
await page.waitForTimeout(230); // deadline is scale silence, not pointerup.
check(`${motion}: held pinch restores48 after scale silence`, !(await quality()).coarse);
await touch('touchMove', [[p.x - 90, p.y], [p.x + 90, p.y]]);
await twoFrames();
await active(`${motion} held pinch restart`);
results.push({ motion, touchEvents: await page.evaluate(() => window.__qualityTouchEvents) });
await touch('touchCancel', []);
await restored(`${motion} cancelled pinch`);
await touch('touchStart', [[p.x - 50, p.y], [p.x + 50, p.y]]);
await touch('touchMove', [[p.x - 65, p.y], [p.x + 65, p.y]]); await twoFrames();
await active(`${motion} pinch before lost capture`);
check(`${motion}: trusted contact capture is released`, await page.evaluate(() => {
const stage = window.__card.shadowRoot.querySelector('.stage');
const down = window.__qualityTouchEvents.filter(e => e.type === 'pointerdown').slice(-2);
let released = 0;
for (const e of down) {
const target = [...window.__card.shadowRoot.querySelectorAll('*')].find(n => n.hasPointerCapture?.(e.id));
if (target) { target.releasePointerCapture(e.id); released++; }
}
return released > 0;
}));
await twoFrames(); await page.waitForTimeout(230);
check(`${motion}: lost capture cannot leave coarse stuck`, !(await quality()).coarse);
await touch('touchCancel', []);
// Pan moves the centre without changing scale. A stationary two-contact
// gesture also cannot request coarse or keep a stale deadline alive.
await touch('touchStart', [[p.x - 50, p.y], [p.x + 50, p.y]]);
check(`${motion}: stationary pinch stays full48`, !(await quality()).coarse);
await touch('touchEnd', []);
const beforePan = await page.evaluate(() => ({ zoom: window.__card._zoom, ...window.__card._view }));
await page.mouse.move(p.x, p.y); await page.mouse.down();
await page.mouse.move(p.x + 30, p.y + 18, { steps: 3 });
check(`${motion}: pan stays full48`, !(await quality()).coarse);
await page.mouse.up();
const afterPan = await page.evaluate(() => ({ zoom: window.__card._zoom, ...window.__card._view }));
check(`${motion}: pan witness actually moves only the centre`, beforePan.zoom === afterPan.zoom
&& (beforePan.x !== afterPan.x || beforePan.y !== afterPan.y));
await page.locator('[data-hp="zoom-in"]').click();
await page.evaluate(() => new Promise(resolve => requestAnimationFrame(() => requestAnimationFrame(resolve))));
await active(`${motion} toolbar zoom`);
await idle();
await page.locator('[data-hp="zoom-fit"]').click();
await page.evaluate(() => new Promise(resolve => requestAnimationFrame(() => requestAnimationFrame(resolve))));
await active(`${motion} toolbar fit`);
await restored(`${motion} fit idle`);
const centre = await point();
await page.mouse.move(centre.x, centre.y); await page.mouse.down();
await page.mouse.move(centre.x + 45, centre.y + 20, { steps: 3 }); await page.mouse.up();
await page.evaluate(() => {
window.__centreBefore = { zoom: window.__card._zoom, ...window.__card._view };
window.__centreCoarse = [];
window.__centreObserver = new MutationObserver(rows => {
for (const row of rows) if (row.attributeName === 'data-led-zoom-quality')
window.__centreCoarse.push(row.oldValue, window.__card.getAttribute('data-led-zoom-quality'));
});
window.__centreObserver.observe(window.__card, { attributes: true, attributeOldValue: true });
});
await page.locator('[data-hp="zoom-fit"]').click(); await idle();
const centred = await page.evaluate(() => {
window.__centreObserver.disconnect();
return { before: window.__centreBefore, after: { zoom: window.__card._zoom, ...window.__card._view },
coarse: window.__centreCoarse };
});
check(`${motion}: centre-only fit actually changes centre`, centred.before.x !== centred.after.x || centred.before.y !== centred.after.y);
check(`${motion}: centre-only fit preserves scale`, centred.before.zoom, centred.after.zoom);
check(`${motion}: centre-only interpolated fit never requests coarse`, centred.coarse.includes('coarse'), false);
}
if (!process.argv.includes('--red-witness') && results.some(r => r.coarse)) {
// At the scale clamp a wheel event is not an actual scale change.
await page.emulateMedia({ reducedMotion: 'reduce' });
let reachedMax = false;
for (let i = 0; i < 25; i++) {
await wheel();
if (await page.evaluate(() => window.__card._zoom >= 8)) { reachedMax = true; break; }
}
check('clamp witness reaches maximum by real wheel while coarse is active', reachedMax && (await quality()).coarse);
await page.evaluate(() => { window.__clampStarted = performance.now(); });
await page.waitForTimeout(45);
await page.evaluate(() => { window.__colourCache = [...window.__card.shadowRoot.querySelectorAll('.led-fields')]
.map(n => [n.dataset.ledCache, n.dataset.ledRecomputes]); });
await wheel();
check('clamped wheel during coarse does not cancel the current lease', (await quality()).coarse);
await page.evaluate(async () => {
await new Promise(resolve => setTimeout(resolve, Math.max(0, 175 - (performance.now() - window.__clampStarted))));
});
check('clamped wheel does not extend the original lease', !(await quality()).coarse);
await idle();
const maxScale = await page.evaluate(() => window.__card._zoom);
await wheel();
check('clamped wheel leaves scale unchanged', await page.evaluate(() => window.__card._zoom), maxScale);
check('clamped wheel neither enters coarse nor extends its deadline', !(await quality()).coarse);
await page.locator('[data-hp="zoom-fit"]').click(); await idle();
await wheel();
await setState('on', { rgb_color: [225, 70, 35], brightness: 120 });
const changed = await quality();
check('new RGB arrives while coarse, not after restoration', changed.coarse
&& changed.fields.find(f => f.id === 'quality')?.fill.toLowerCase() === '#e14623');
const rgbAlpha = Number(changed.fields.find(f => f.id === 'quality')?.alpha);
await setState('on', { brightness: 40 });
const dimmed = await quality(), alpha = dimmed.fields.find(f => f.id === 'quality')?.alpha;
check('brightness-only update dims current coarse field immediately', dimmed.coarse
&& Number(alpha) > 0 && Number(alpha) < rgbAlpha);
await restored('latest RGB/brightness');
check('restore retains latest RGB and brightness', await page.evaluate(alpha => {
const pool = window.__card.shadowRoot.querySelector('[data-led-field="quality"] .led-pool');
return pool.getAttribute('fill').toLowerCase() === '#e14623' && pool.getAttribute('fill-opacity') === alpha;
}, alpha));
check('RGB/brightness updates never recompute geometry or grow caches', await page.evaluate(() =>
JSON.stringify(window.__colourCache) === JSON.stringify([...window.__card.shadowRoot.querySelectorAll('.led-fields')]
.map(n => [n.dataset.ledCache, n.dataset.ledRecomputes]))));
for (const state of ['off', 'unavailable']) {
await wheel(); await setState(state); await page.waitForTimeout(650);
check(`${state} during coarse is never resurrected by restore`, await page.evaluate(() =>
!window.__card.shadowRoot.querySelector('[data-led-field="quality"]')));
await wheel(); await setState('on', { rgb_color: [117, 197, 42], brightness: 190 });
const appeared = await quality(), newFields = appeared.fields.filter(f => f.id === 'quality');
check(`new on field during coarse uses current quality (${state})`, appeared.coarse && newFields.length === 1
&& newFields.every(f => f.retained === 48 && f.painted === 24 && f.correct24));
await page.waitForTimeout(650); await restored(`on after ${state}`);
}
await page.evaluate(() => {
window.__resizeCoarse = false;
window.__resizeObserver = new MutationObserver(rows => {
window.__resizeCoarse ||= rows.some(row => row.oldValue === 'coarse')
|| window.__card.hasAttribute('data-led-zoom-quality');
});
window.__resizeObserver.observe(window.__card, { attributes: true, attributeOldValue: true,
attributeFilter: ['data-led-zoom-quality'] });
});
await page.setViewportSize({ width: 1020, height: 820 }); await page.waitForTimeout(220);
check('structural resize alone never activates coarse, including intermediate frames', await page.evaluate(() => {
window.__resizeObserver.disconnect(); return !window.__resizeCoarse && !window.__card.hasAttribute('data-led-zoom-quality');
}));
await page.setViewportSize({ width: 1000, height: 820 }); await page.waitForTimeout(220);
await page.evaluate(async () => {
const stat = document.createElement('houseplan-space-card');
stat.setConfig({ type: 'custom:houseplan-space-card', space: 'f1', light_pools: true, live_states: true });
stat.hass = window.__card.hass; stat.style.cssText = 'position:fixed;left:-1200px;width:700px';
document.body.appendChild(stat); window.__qualityStatic = stat; await stat.updateComplete;
});
await page.waitForTimeout(600); await wheel();
check('static owner never inherits main owner coarse', await page.evaluate(() => {
const q = window.__ledZoomOracle.quality(window.__qualityStatic);
return !q.coarse && q.fields.length === 2 && q.fields.every(f => f.retained === 48 && f.painted === 48);
}));
await idle();
for (const mode of ['plan', 'view']) {
await wheel(); await page.evaluate(mode => window.__hpTest.setMode(mode), mode);
check(`mode ${mode} resets coarse`, !(await quality()).coarse);
}
await wheel(); await page.evaluate(async () => { await window.__hpTest.setVolumetricView(true); });
check('projection adoption resets coarse', !(await quality()).coarse);
await page.evaluate(() => window.__hpTest.setVolumetricView(false));
await wheel(); await page.evaluate(() => window.__hpTest.switchSpace('garden'));
check('space switch resets coarse', !(await quality()).coarse);
await page.evaluate(() => window.__hpTest.switchSpace('f1')); await page.waitForTimeout(600);
await wheel();
check('document hidden listener resets coarse synchronously', await page.evaluate(() => {
// Browser visibility seam: dispatch the real listener, never call the
// card's private visibility handler. Restore the original descriptor.
const descriptor = Object.getOwnPropertyDescriptor(document, 'visibilityState');
try {
Object.defineProperty(document, 'visibilityState', { configurable: true, get: () => 'hidden' });
document.dispatchEvent(new Event('visibilitychange'));
return !window.__card.hasAttribute('data-led-zoom-quality');
} finally {
if (descriptor) Object.defineProperty(document, 'visibilityState', descriptor);
else delete document.visibilityState;
document.dispatchEvent(new Event('visibilitychange'));
}
}));
await wheel();
check('disconnect immediately removes coarse', await page.evaluate(() => {
const c = window.__card; window.__qualityParent = c.parentNode; c.remove();
return !c.hasAttribute('data-led-zoom-quality');
}));
await page.waitForTimeout(220);
check('cancelled callback cannot reapply coarse to disconnected owner', !(await quality()).coarse);
await page.evaluate(async () => { window.__qualityParent.appendChild(window.__card); await window.__card.updateComplete; });
await page.waitForTimeout(650);
await wheel(); await active('reconnected owner new wheel'); await restored('reconnected owner');
await page.evaluate(() => window.__qualityStatic.remove());
}
} finally {
await cdp.detach();
await finish(browser, results);
}
+436 -40
View File
@@ -1,5 +1,9 @@
import { mkdirSync } from 'node:fs';
import { fileURLToPath } from 'node:url';
import { launch, checkAll, finish } from './serve.mjs';
const visualArtifacts = new URL('../artifacts/zigbee-topology-798/', import.meta.url);
mkdirSync(visualArtifacts, { recursive: true });
const { page, browser } = await launch();
const result = await page.evaluate(async () => {
const card = window.__card;
@@ -24,33 +28,47 @@ const result = await page.evaluate(async () => {
.some((entry) => /zigbee-topology-runtime|hp-zigbee-topology-overlay/.test(entry.name));
let zhaCalls = 0;
let pendingConfigReads = 0;
window.__zigbeeSmokeFetchCount = () => zhaCalls;
const originalHass = card.hass;
card.hass = { ...originalHass, callWS: async (message) => {
if (message.type !== 'zha/devices') return originalHass.callWS(message);
if (message.type !== 'zha/devices') {
const configRead = message.type === 'houseplan/config/get';
if (configRead) pendingConfigReads++;
try { return await originalHass.callWS(message); }
finally { if (configRead) pendingConfigReads--; }
}
zhaCalls++;
return [
{ ieee: '00124b0000000001', device_reg_id: 'd_light1', device_type: 'Router', neighbors: [
{ ieee: '00124b0000000001', nwk: 1, device_reg_id: 'd_light1', device_type: 'Router',
routes: [{ dest_nwk: 0, next_hop: 0, route_status: 'Active' }], neighbors: [
{ ieee: '00124b0000000002', relationship: 'Parent' },
{ ieee: '00124b0000000003', lqi: 80, relationship: 'Child' },
{ ieee: '00124b0000000005', lqi: 125, relationship: 'Sibling' },
{ ieee: '00124b0000000005', lqi: 128, relationship: 'Child' },
{ ieee: '00124b0000000007', lqi: 255, relationship: 'Sibling' },
] },
{ ieee: '00124b0000000002', device_reg_id: 'd_lamp', device_type: 'Coordinator', neighbors: [
{ ieee: '00124b0000000001', lqi: 170, relationship: 'Child' },
{ ieee: '00124b0000000002', nwk: 0, device_reg_id: 'd_lamp', device_type: 'Coordinator', neighbors: [
{ ieee: '00124b0000000001', relationship: 'Child' },
{ ieee: '00124b0000000006', lqi: 140, relationship: 'Child' },
] },
{ ieee: '00124b0000000003', device_reg_id: 'd_mower', device_type: 'EndDevice', neighbors: [
{ ieee: '00124b0000000003', nwk: 3, device_reg_id: 'd_mower', device_type: 'EndDevice', neighbors: [
{ ieee: '00124b0000000001', lqi: 75, relationship: 'Parent' },
] },
{ ieee: '00124b0000000004', device_reg_id: 'd_temp', device_type: 'EndDevice', neighbors: [
{ ieee: '00124b0000000004', nwk: 4, device_reg_id: 'd_temp', device_type: 'EndDevice', neighbors: [
{ ieee: '00124b0000000006', lqi: 20, relationship: 'Parent' },
] },
{ ieee: '00124b0000000005', device_reg_id: 'd_tv', device_type: 'EndDevice', neighbors: [
{ ieee: '00124b0000000001', lqi: 120, relationship: 'Sibling' },
{ ieee: '00124b0000000005', nwk: 5, device_reg_id: 'd_tv', device_type: 'EndDevice', neighbors: [
{ ieee: '00124b0000000001', lqi: 128, relationship: 'Parent' },
] },
{ ieee: '00124b0000000006', device_reg_id: 'not_on_plan', device_type: 'Router', neighbors: [
{ ieee: '00124b0000000006', nwk: 6, device_reg_id: 'not_on_plan', device_type: 'Router',
name: 'Hallway <router> & "target"',
routes: [{ dest_nwk: '0x0000', next_hop: '0x0000', route_status: 'Active' }], neighbors: [
{ ieee: '00124b0000000002', lqi: 130, relationship: 'Parent' },
{ ieee: '00124b0000000004', lqi: 25, relationship: 'Child' },
] },
{ ieee: '00124b0000000007', nwk: 7, device_reg_id: 'd_kettle', device_type: 'EndDevice', neighbors: [
{ ieee: '00124b0000000001', lqi: 255, relationship: 'Sibling' },
] },
];
} };
await card._ensureEditorRuntime();
@@ -72,10 +90,35 @@ const result = await page.evaluate(async () => {
await wait(() => !!settings?.shadowRoot?.querySelector('button'), 'settings button');
await settings._readZha();
await wait(() => settings._snapshot?.states?.zha?.phase === 'ready', 'ZHA ready');
// #800: this fixture intentionally has the old integration's config/get.
// backend_required may be cached from the overlay's earlier failed check.
// Reopening settings legitimately checks again. Drain the actual in-flight
// transport and its queued runtime/Lit notifications before the isolated age
// fixture; checking the old error string alone is not a completion barrier.
await wait(() => settings._snapshot?.backendError === 'backend_required'
&& pendingConfigReads === 0, 'old backend capability reads settled');
await new Promise(resolve => setTimeout(resolve, 0));
await settings.updateComplete;
out.oldBackendStillAllowsZha = settings._snapshot.states.zha.phase === 'ready';
out.explicitZhaRead = zhaCalls === 1;
const settingsSnapshot = settings._snapshot;
const renderedProviderStatus = () => [...settings.shadowRoot.querySelectorAll('.status,.hpf-actions .hpf-hint')]
.map((node) => node.textContent).find((value) => /Received /.test(value)) || '';
const ageFixtureTime = Date.now() - 5 * 60 * 1000 + 300;
settings._acceptSnapshot({ ...settingsSnapshot, states: { ...settingsSnapshot.states,
zha: { phase: 'ready', obtainedAt: ageFixtureTime },
} });
await settings.updateComplete;
const initiallyFreshSettings = !/stale/i.test(renderedProviderStatus());
await wait(() => /stale/i.test(renderedProviderStatus()), 'mounted settings snapshot ages');
out.settingsAgeTimerWithoutRefetch = initiallyFreshSettings && zhaCalls === 1
&& settings._snapshot.states.zha.obtainedAt === ageFixtureTime;
settings._acceptSnapshot(settingsSnapshot);
await settings.updateComplete;
card._settingsDialog = null;
card.requestUpdate();
await card.updateComplete;
out.settingsDisconnectClearsTimer = !settings.isConnected && settings._staleTimer === undefined;
const frame = () => new Promise((resolve) => requestAnimationFrame(() =>
requestAnimationFrame(resolve)));
@@ -196,10 +239,13 @@ const result = await page.evaluate(async () => {
const arrowBox = routeArrow?.getBoundingClientRect();
out.localRouteArrow = !!routeLine && routeArrow?.getAttribute('data-direction') === 'toward-neighbor'
&& !!lineBox && !!arrowBox && arrowBox.width > 3 && arrowBox.height > 3;
out.onlyConfirmedArrows = overlay.shadowRoot.querySelectorAll('[data-hp="zigbee-topology-arrow"]').length === 2
&& !overlay.shadowRoot.querySelector('line[data-direction="none"]')
&& !root().querySelector('.dev[data-id="d_kettle"]').hasAttribute('data-hp-zigbee-topology-endpoint');
out.crossSpaceCount = overlay.shadowRoot.querySelector('[data-hp="zigbee-topology-remote"]')
?.textContent.trim() === '+1 in other spaces';
out.pointerTransparent = getComputedStyle(overlay).pointerEvents === 'none'
&& [...overlay.shadowRoot.querySelectorAll('svg,line,polygon,.halo,.remote,.parent-bubble')]
&& [...overlay.shadowRoot.querySelectorAll('svg,line,polygon,.halo,.remote,.parent-bubble,.route-status')]
.every((node) => getComputedStyle(node).pointerEvents === 'none');
const unrelatedRect = unrelated.getBoundingClientRect();
const hitTarget = root().elementFromPoint(
@@ -216,23 +262,34 @@ const result = await page.evaluate(async () => {
out.pointerHitTarget = !!hitTarget && unrelated.contains(hitTarget) && clickReachedMarker;
const casing = overlay.shadowRoot.querySelector('[data-hp="zigbee-topology-line-casing"]');
const unknownCore = overlay.shadowRoot.querySelector(
'[data-hp="zigbee-topology-line"][stroke-dasharray="5 5"]',
'[data-hp="zigbee-topology-line"][data-direction="toward-neighbor"]',
);
const knownCore = overlay.shadowRoot.querySelector(
'[data-hp="zigbee-topology-line"][data-direction="toward-origin"]',
);
const knownCore = [...overlay.shadowRoot.querySelectorAll('[data-hp="zigbee-topology-line"]')]
.find((line) => !line.hasAttribute('stroke-dasharray'));
out.unknownCasingContract = !!casing && !!unknownCore && !!knownCore
&& overlay.shadowRoot.querySelectorAll('[data-hp="zigbee-topology-line-casing"]').length === 1
&& casing.getAttribute('stroke') === '#2e2e2e'
&& casing.getAttribute('stroke-width') === '4'
&& unknownCore.getAttribute('stroke-width') === '2'
&& casing.getAttribute('stroke-dasharray') === unknownCore.getAttribute('stroke-dasharray')
&& casing.getAttribute('stroke-dashoffset') === unknownCore.getAttribute('stroke-dashoffset')
&& getComputedStyle(casing).stroke === 'rgb(0, 0, 0)'
&& Math.abs(Number.parseFloat(getComputedStyle(casing).strokeWidth) - (2 + 2 * card._zoom)) < 0.001
&& Number.parseFloat(getComputedStyle(unknownCore).strokeWidth) === 2
&& getComputedStyle(unknownCore).stroke === 'rgb(145, 155, 165)'
&& casing.getAttribute('x1') === unknownCore.getAttribute('x1')
&& casing.getAttribute('y1') === unknownCore.getAttribute('y1')
&& casing.getAttribute('x2') === unknownCore.getAttribute('x2')
&& casing.getAttribute('y2') === unknownCore.getAttribute('y2')
&& getComputedStyle(casing).strokeLinecap === getComputedStyle(unknownCore).strokeLinecap
&& getComputedStyle(casing).vectorEffect === 'non-scaling-stroke';
out.unknownArrowOutline = !!routeArrow
&& getComputedStyle(routeArrow).fill === 'rgb(145, 155, 165)'
&& getComputedStyle(routeArrow).stroke === 'rgb(0, 0, 0)'
&& Math.abs(Number.parseFloat(getComputedStyle(routeArrow).strokeWidth) - 2 * card._zoom) < 0.001
&& getComputedStyle(routeArrow).vectorEffect === 'non-scaling-stroke';
out.allLinksSolid = [...overlay.shadowRoot.querySelectorAll('line,polygon')]
.every((node) => getComputedStyle(node).strokeDasharray === 'none');
out.knownLineArrowMatch = getComputedStyle(knownCore).stroke === 'rgb(255, 255, 0)'
&& getComputedStyle(overlay.shadowRoot.querySelector(
'[data-hp="zigbee-topology-arrow"][data-direction="toward-origin"]',
)).fill === getComputedStyle(knownCore).stroke;
const oldNeighbor = unknownNeighbor;
const replacementNeighbor = oldNeighbor.cloneNode(true);
@@ -246,6 +303,7 @@ const result = await page.evaluate(async () => {
'endpoint ownership returned to original marker');
const runtimeBeforeInvalidation = overlay._runtime;
window.__zigbeeSmokeBaseline = runtimeBeforeInvalidation;
overlay._acceptRuntime({
revision: runtimeBeforeInvalidation.revision + 1,
topologies: [],
@@ -260,6 +318,20 @@ const result = await page.evaluate(async () => {
await overlay.updateComplete;
await wait(() => overlay.shadowRoot.querySelector('line'), 'route restored after runtime invalidation');
const noRoute = root().querySelector('.dev[data-id="d_kettle"]');
noRoute.dispatchEvent(mouse('pointerover'));
await wait(() => overlay.shadowRoot.querySelector('.route-status'), 'unknown route label');
out.unknownRouteHasNoInventedLine = !overlay.shadowRoot.querySelector('line,polygon')
&& /no route data/i.test(overlay.shadowRoot.querySelector('.route-status').textContent)
&& !noRoute.hasAttribute('data-hp-zigbee-topology-endpoint');
unknownNeighbor.dispatchEvent(mouse('pointerover'));
await wait(() => overlay.shadowRoot.querySelector('[data-hp="zigbee-topology-arrow"]'), 'coordinator incoming route');
out.coordinatorHasOnlyIncoming = !/no route data/i.test(
overlay.shadowRoot.querySelector('.route-status')?.textContent || '',
)
&& !overlay.shadowRoot.querySelector('[data-direction="toward-neighbor"]')
&& !!overlay.shadowRoot.querySelector('[data-direction="toward-origin"]');
card._commitSpace('garden', true);
card.requestUpdate();
await card.updateComplete;
@@ -287,8 +359,11 @@ const result = await page.evaluate(async () => {
await wait(() => root().querySelector('hp-zigbee-topology-overlay')?.shadowRoot
?.querySelector('[data-kind="unplaced-device"]'), 'unplaced device bubble');
activeOverlay = root().querySelector('hp-zigbee-topology-overlay');
out.unplacedDeviceBubble = activeOverlay.shadowRoot.querySelector('[data-kind="unplaced-device"]')
?.textContent.trim() === 'device is not on the plan';
const missingParentBubble = activeOverlay.shadowRoot.querySelector('[data-kind="unplaced-device"]');
out.unplacedDeviceBubble = missingParentBubble?.textContent.trim()
=== 'Device is not on the plan (Hallway <router> & "target")';
out.unplacedNameIsSafeText = !missingParentBubble?.querySelector('router,img,script')
&& !missingParentBubble?.textContent.includes('Temperature sensor');
activeOverlay.devices = activeOverlay.devices.map((device) => (
device.id === 'd_lamp' ? { ...device, hidden: true } : device
@@ -301,8 +376,19 @@ const result = await page.evaluate(async () => {
out.unplacedCoordinatorBubble = activeOverlay.shadowRoot
.querySelector('[data-kind="unplaced-coordinator"]')?.textContent.trim()
=== 'coordinator is not on the plan';
out.parentRouteHasNoCasing = !!activeOverlay.shadowRoot.querySelector('line.parent-route')
&& !activeOverlay.shadowRoot.querySelector('[data-hp="zigbee-topology-line-casing"]');
const parentCore = activeOverlay.shadowRoot.querySelector('line.parent-route');
const parentArrow = activeOverlay.shadowRoot.querySelector('[data-hp="zigbee-topology-parent-arrow"]');
out.parentRouteHasUnknownOutline = !!parentCore && !!parentArrow
&& getComputedStyle(parentCore).stroke === 'rgb(145, 155, 165)'
&& getComputedStyle(parentArrow).fill === 'rgb(145, 155, 165)'
&& getComputedStyle(parentArrow).stroke === 'rgb(0, 0, 0)'
&& Math.abs(Number.parseFloat(getComputedStyle(parentArrow).strokeWidth) - 2 * card._zoom) < 0.001
&& [...activeOverlay.shadowRoot.querySelectorAll('line')].some((line) => (
getComputedStyle(line).stroke === 'rgb(0, 0, 0)'
&& Math.abs(Number.parseFloat(getComputedStyle(line).strokeWidth) - (2 + 2 * card._zoom)) < 0.001
))
&& [...activeOverlay.shadowRoot.querySelectorAll('line,polygon')]
.every((node) => getComputedStyle(node).strokeDasharray === 'none');
router.dispatchEvent(mouse('pointerout', root().querySelector('.stage')));
await activeOverlay.updateComplete;
@@ -357,6 +443,172 @@ const result = await page.evaluate(async () => {
return out;
});
// Exercise the actual rendered line/arrow pair, not the palette helper in isolation.
// Remote and unplaced targets used to be permanently grey even with known LQI.
for (const theme of ['light', 'dark']) {
await page.emulateMedia({ colorScheme: theme });
const visual = await page.evaluate(async ({ theme }) => {
const card = window.__card;
const root = () => card.shadowRoot || card.renderRoot;
const frame = () => new Promise((resolve) => requestAnimationFrame(() => requestAnimationFrame(resolve)));
const wait = async (predicate, label = 'render') => {
const started = performance.now();
while (!predicate()) {
if (performance.now() - started > 5000) throw new Error(`topology visual contract timeout: ${theme} ${label}; `
+ root().querySelector('hp-zigbee-topology-overlay')?.shadowRoot?.textContent?.slice(-600));
await new Promise((resolve) => setTimeout(resolve, 20));
}
};
const hover = (marker) => marker.dispatchEvent(new PointerEvent('pointerover', {
pointerType: 'mouse', bubbles: true, composed: true, clientX: 200, clientY: 200,
}));
document.documentElement.style.colorScheme = theme;
card.hass = { ...card.hass, user: { ...card.hass.user, is_admin: true },
themes: { ...(card.hass.themes || {}), darkMode: theme === 'dark' } };
card.setAttribute('data-pointer-hover', '');
await window.__hpTest.setMode('view');
card.requestUpdate();
await card.updateComplete;
await wait(() => root().querySelector('hp-zigbee-topology-overlay'));
// The preceding editor/View probe starts a real camera transition. Let its
// saved View camera settle before measuring the explicit zoom matrix.
await wait(() => !card._modeTransitionBusy, 'View camera settled');
await frame();
const expectedColors = [
[0, 'rgb(255, 0, 0)'], [64, 'rgb(255, 128, 0)'], [128, 'rgb(255, 255, 0)'],
[192, 'rgb(126, 255, 0)'], [255, 'rgb(0, 255, 0)'], [null, 'rgb(145, 155, 165)'],
];
const out = {};
const diagnostics = [];
let revision = window.__zigbeeSmokeBaseline.revision + 100;
const snapshot = (lqi) => ({
...window.__zigbeeSmokeBaseline, revision: revision++,
topologies: window.__zigbeeSmokeBaseline.topologies.map((topology) => ({
...topology, obtainedAt: Date.now(),
uplinkEvidence: topology.uplinkEvidence.map((evidence) => ({ ...evidence, lqi: lqi ?? undefined })),
links: topology.links.map((link) => ({ ...link,
aToB: link.aToB ? { ...link.aToB, lqi: lqi ?? undefined } : undefined,
bToA: link.bToA ? { ...link.bToA, lqi: lqi ?? undefined } : undefined,
})),
})),
});
for (const [kind, space, markerId] of [
['local', 'f1', 'd_light1'], ['remote', 'garden', 'd_mower'], ['unplaced', 'f1', 'd_temp'],
]) {
card._commitSpace(space, true);
card.requestUpdate();
await card.updateComplete;
for (const [zoomName, zoom] of [['min', 1 / 3], ['default', 1], ['max', 8]]) {
card._applyView(zoom, 0.32, 0.36);
card.requestUpdate();
await card.updateComplete;
await frame();
const overlay = root().querySelector('hp-zigbee-topology-overlay');
await overlay.updateComplete;
const marker = root().querySelector(`.dev[data-id="${markerId}"]`);
hover(marker);
for (const [lqi, expected] of expectedColors) {
overlay._acceptRuntime(snapshot(lqi));
await overlay.updateComplete;
const cores = [...overlay.shadowRoot.querySelectorAll('.link-core,.parent-route')];
const arrows = [...overlay.shadowRoot.querySelectorAll('.route-arrow')];
const casings = [...overlay.shadowRoot.querySelectorAll('.link-casing')];
const key = `${kind}_${zoomName}_${lqi ?? 'unknown'}`;
out[`${key}_requestedZoom`] = Math.abs(card._zoom - zoom) < 0.000001
&& Math.abs(overlay.zoom - zoom) < 0.000001;
out[`${key}_lineAndArrowColor`] = cores.length > 0 && arrows.length === cores.length
&& cores.every((line) => getComputedStyle(line).stroke === expected)
&& arrows.every((arrow) => getComputedStyle(arrow).fill === expected);
out[`${key}_solid`] = [...cores, ...arrows, ...casings]
.every((node) => getComputedStyle(node).strokeDasharray === 'none');
out[`${key}_outline`] = lqi === null
? casings.length === cores.length
&& casings.every((line) => getComputedStyle(line).stroke === 'rgb(0, 0, 0)'
&& Math.abs(Number.parseFloat(getComputedStyle(line).strokeWidth) - (2 + 2 * zoom)) < 0.001
&& getComputedStyle(line).vectorEffect === 'non-scaling-stroke')
&& cores.every((line) => Number.parseFloat(getComputedStyle(line).strokeWidth) === 2
&& getComputedStyle(line).vectorEffect === 'non-scaling-stroke')
&& arrows.every((arrow) => getComputedStyle(arrow).stroke === 'rgb(0, 0, 0)'
&& Math.abs(Number.parseFloat(getComputedStyle(arrow).strokeWidth) - 2 * zoom) < 0.001
&& getComputedStyle(arrow).vectorEffect === 'non-scaling-stroke'
&& getComputedStyle(arrow).paintOrder.startsWith('stroke'))
: casings.length === 0 && arrows.every((arrow) => getComputedStyle(arrow).stroke === 'none');
if (!out[`${key}_outline`]) diagnostics.push({ key, zoom, cardZoom: card._zoom, overlayZoom: overlay.zoom,
cores: cores.map((line) => ({ width: getComputedStyle(line).strokeWidth, effect: getComputedStyle(line).vectorEffect })),
casings: casings.map((line) => ({ width: getComputedStyle(line).strokeWidth, color: getComputedStyle(line).stroke,
effect: getComputedStyle(line).vectorEffect })),
arrows: arrows.map((arrow) => ({ width: getComputedStyle(arrow).strokeWidth, color: getComputedStyle(arrow).stroke,
effect: getComputedStyle(arrow).vectorEffect, order: getComputedStyle(arrow).paintOrder })),
});
}
}
}
card._commitSpace('f1', true);
card.requestUpdate();
await card.updateComplete;
await frame();
const overlay = root().querySelector('hp-zigbee-topology-overlay');
await overlay.updateComplete;
const knownSource = root().querySelector('.dev[data-id="d_light1"]');
hover(knownSource);
const stale = snapshot(null);
stale.topologies = stale.topologies.map((topology) => ({ ...topology,
obtainedAt: Date.now() - 6 * 60 * 1000,
warnings: [...topology.warnings, { code: 'provider_scan_failure' }],
}));
overlay._acceptRuntime(stale);
await overlay.updateComplete;
const staleStatus = overlay.shadowRoot.querySelector('.route-status');
out.stalePartialRetainsKnownRoute = staleStatus?.getAttribute('data-outgoing') === 'known'
&& /stale data/i.test(staleStatus.textContent) && /incomplete data/i.test(staleStatus.textContent)
&& !!overlay.shadowRoot.querySelector('[data-hp="zigbee-topology-arrow"]')
&& [...overlay.shadowRoot.querySelectorAll('line,polygon')]
.every((node) => getComputedStyle(node).strokeDasharray === 'none');
const failedRefresh = snapshot(null);
failedRefresh.states = { ...failedRefresh.states, zha: {
phase: 'error', error: 'provider', obtainedAt: failedRefresh.topologies[0].obtainedAt, stale: true,
} };
overlay._acceptRuntime(failedRefresh);
await overlay.updateComplete;
out.failedRefreshMarksRetainedRouteStale = /stale data/i.test(
overlay.shadowRoot.querySelector('.route-status')?.textContent || '',
) && !!overlay.shadowRoot.querySelector('[data-hp="zigbee-topology-arrow"]');
const expiring = snapshot(null);
expiring.topologies = expiring.topologies.map((topology) => ({
...topology, obtainedAt: Date.now() - 5 * 60 * 1000 + 300,
}));
const fetchCount = window.__zigbeeSmokeFetchCount();
overlay._acceptRuntime(expiring);
await overlay.updateComplete;
const initiallyFresh = !/stale data/i.test(overlay.shadowRoot.querySelector('.route-status')?.textContent || '');
await wait(() => /stale data/i.test(overlay.shadowRoot.querySelector('.route-status')?.textContent || ''));
out.ageTimerUpdatesWithoutRefetch = initiallyFresh && window.__zigbeeSmokeFetchCount() === fetchCount
&& !!overlay.shadowRoot.querySelector('[data-hp="zigbee-topology-arrow"]');
overlay._acceptRuntime(window.__zigbeeSmokeBaseline);
await overlay.updateComplete;
if (theme === 'dark') {
const originalHass = overlay.hass;
overlay.hass = { ...overlay.hass, language: 'ru', locale: { ...overlay.hass.locale, language: 'ru' } };
await overlay.updateComplete;
hover(root().querySelector('.dev[data-id="d_temp"]'));
await wait(() => overlay.shadowRoot.querySelector('[data-kind="unplaced-device"]')?.textContent
.includes('Устройства нет на плане'), 'localized missing target');
const named = overlay.shadowRoot.querySelector('[data-kind="unplaced-device"]');
out.localizedTargetName = named.textContent.trim() === 'Устройства нет на плане (Hallway <router> & "target")'
&& !named.querySelector('router,img,script');
hover(root().querySelector('.dev[data-id="d_kettle"]'));
await wait(() => overlay.shadowRoot.querySelector('.route-status')?.textContent.includes('Нет данных о маршруте'));
out.localizedUnknownRoute = !overlay.shadowRoot.querySelector('line,polygon');
overlay.hass = originalHass;
await overlay.updateComplete;
}
return { checks: out, diagnostics };
}, { theme });
if (visual.diagnostics.length) console.log('Topology visual diagnostics:', JSON.stringify(visual.diagnostics));
for (const [name, value] of Object.entries(visual.checks)) result[`visual_${theme}_${name}`] = value;
}
for (const [aspect, viewport] of Object.entries({
wide: { width: 1100, height: 500 },
tall: { width: 480, height: 900 },
@@ -476,8 +728,10 @@ for (const [aspect, viewport] of Object.entries({
}
}
for (const theme of ['light', 'dark']) {
await page.emulateMedia({ colorScheme: theme });
await page.setViewportSize({ width: 1100, height: 620 });
const rasterProbe = await page.evaluate(async () => {
const rasterProbe = await page.evaluate(async ({ theme }) => {
const card = window.__card;
const root = card.shadowRoot || card.renderRoot;
const wait = (predicate, timeout = 5000) => new Promise((resolve, reject) => {
@@ -490,7 +744,9 @@ const rasterProbe = await page.evaluate(async () => {
tick();
});
document.querySelector('#host').style.width = '1060px';
card.hass = { ...card.hass, user: { ...card.hass.user, is_admin: true } };
card.hass = { ...card.hass, user: { ...card.hass.user, is_admin: true },
themes: { ...(card.hass.themes || {}), darkMode: theme === 'dark' } };
document.documentElement.style.colorScheme = theme;
card._setMode('view');
card._commitSpace('f1', true);
card._zoom = 1;
@@ -516,6 +772,7 @@ const rasterProbe = await page.evaluate(async () => {
await card.updateComplete;
await new Promise((resolve) => requestAnimationFrame(() => requestAnimationFrame(resolve)));
const renderedLabel = root.querySelector('.roomlabel');
root.querySelectorAll('[data-hp="zigbee-topology-room-label-raster-control"]').forEach((node) => node.remove());
label = renderedLabel?.cloneNode(true) || document.createElement('div');
label.className = 'roomlabel';
label.dataset.hp = 'zigbee-topology-room-label-raster-control';
@@ -534,7 +791,10 @@ const rasterProbe = await page.evaluate(async () => {
await overlay.updateComplete;
const svg = overlay.shadowRoot.querySelector('svg');
const line = overlay.shadowRoot.querySelector(
'[data-hp="zigbee-topology-line"][stroke-dasharray="5 5"]',
'[data-hp="zigbee-topology-line"][data-direction="toward-neighbor"]',
);
const arrow = overlay.shadowRoot.querySelector(
'[data-hp="zigbee-topology-arrow"][data-direction="toward-neighbor"]',
);
const matrix = svg.getScreenCTM();
const start = new DOMPoint(Number(line.getAttribute('x1')), Number(line.getAttribute('y1')))
@@ -546,6 +806,11 @@ const rasterProbe = await page.evaluate(async () => {
return { x: rect.left + rect.width / 2, y: rect.top + rect.height / 2 };
};
const labelCentre = label ? centre(label) : null;
const arrowPoints = arrow.getAttribute('points').trim().split(/\s+/).map((pair) => {
const [x, y] = pair.split(',').map(Number);
const point = new DOMPoint(x, y).matrixTransform(matrix);
return { x: point.x, y: point.y };
});
return {
dpr: devicePixelRatio,
line: { start: { x: start.x, y: start.y }, end: { x: end.x, y: end.y } },
@@ -554,9 +819,11 @@ const rasterProbe = await page.evaluate(async () => {
unrelated: centre(unrelated),
label: labelCentre ? { x: labelCentre.x, y: start.y } : null,
labelContainsLine: !labelCentre || Math.abs(labelCentre.y - start.y) <= 14,
arrowPoints,
};
});
const activeRaster = await page.screenshot({ animations: 'disabled' });
}, { theme });
const activeRaster = await page.screenshot({ animations: 'disabled',
path: fileURLToPath(new URL(`known-route-missing-lqi-${theme}.png`, visualArtifacts)) });
await page.evaluate(() => {
const card = window.__card;
(card.shadowRoot || card.renderRoot).querySelector('hp-zigbee-topology-overlay').style.visibility = 'hidden';
@@ -580,7 +847,7 @@ const rasterEvidence = await page.evaluate(async ({ active, baseline, probe }) =
const b = await decode(baseline);
if (a.width !== b.width || a.height !== b.height) return {
unrelatedAbove: false, labelAbove: false, endpointsAbove: false,
casingInk: false, transparentGaps: false,
casingInk: false, continuousCore: false, arrowBlackOutline: false,
};
const changed = (x, y, threshold = 24) => {
const px = Math.max(0, Math.min(a.width - 1, Math.round(x * probe.dpr)));
@@ -605,35 +872,164 @@ const rasterEvidence = await page.evaluate(async ({ active, baseline, probe }) =
const length = Math.hypot(dx, dy);
const ux = dx / length; const uy = dy / length;
const nx = -uy; const ny = ux;
let coreAndCasing = 0; let transparentGap = 0;
for (let distance = 35; distance < Math.min(length - 35, length * 0.42); distance += 1) {
let coreAndCasing = 0; let paintedCore = 0; let samples = 0;
for (let distance = Math.max(35, length * 0.18); distance < Math.min(length - 35, length * 0.38); distance += 1) {
const x = probe.line.start.x + ux * distance;
const y = probe.line.start.y + uy * distance;
const core = changed(x, y);
const edge = changed(x + nx * 1.75, y + ny * 1.75)
|| changed(x - nx * 1.75, y - ny * 1.75);
const quietCore = !changed(x, y, 60);
const quietEdge = !changed(x + nx * 1.75, y + ny * 1.75, 60)
&& !changed(x - nx * 1.75, y - ny * 1.75, 60);
samples++;
if (core) paintedCore++;
if (core && edge) coreAndCasing++;
if (quietCore && quietEdge) transparentGap++;
}
// Sample just outside both sloping polygon sides. A fill-only triangle cannot
// supply dark pixels beyond its geometry; the black 1px outer outline can.
const darkPixel = (x, y) => {
const px = Math.max(0, Math.min(a.width - 1, Math.floor(x * probe.dpr)));
const py = Math.max(0, Math.min(a.height - 1, Math.floor(y * probe.dpr)));
const i = (py * a.width + px) * 4;
return Math.max(a.data[i], a.data[i + 1], a.data[i + 2]) < 85;
};
const arrowCentre = probe.arrowPoints.reduce((sum, point) => ({
x: sum.x + point.x / 3, y: sum.y + point.y / 3,
}), { x: 0, y: 0 });
let blackSides = 0;
for (const side of [1, 2]) {
const tip = probe.arrowPoints[0]; const corner = probe.arrowPoints[side];
const dx = corner.x - tip.x; const dy = corner.y - tip.y;
const sideLength = Math.hypot(dx, dy);
const mid = { x: (tip.x + corner.x) / 2, y: (tip.y + corner.y) / 2 };
let nx = -dy / sideLength; let ny = dx / sideLength;
if ((arrowCentre.x - mid.x) * nx + (arrowCentre.y - mid.y) * ny > 0) { nx = -nx; ny = -ny; }
let ink = 0;
for (const t of [0.25, 0.4, 0.55, 0.7]) {
const x = tip.x + dx * t + nx * 0.5;
const y = tip.y + dy * t + ny * 0.5;
if (darkPixel(x, y) && changed(x, y)) ink++;
}
if (ink >= 2) blackSides++;
}
return {
unrelatedAbove: unrelatedInk >= 3,
labelAbove: labelInk >= 2,
endpointsAbove: endpointInk <= 2,
casingInk: coreAndCasing >= 6,
transparentGaps: transparentGap >= 1,
continuousCore: samples >= 12 && paintedCore / samples >= 0.98,
arrowBlackOutline: blackSides === 2,
};
}, {
active: activeRaster.toString('base64'),
baseline: baselineRaster.toString('base64'),
probe: rasterProbe,
});
result.rasterLabelContainsLine = rasterProbe.labelContainsLine;
result[`raster_${theme}_labelContainsLine`] = rasterProbe.labelContainsLine;
for (const [name, value] of Object.entries(rasterEvidence)) {
result[`raster_${name}`] = value;
result[`raster_${theme}_${name}`] = value;
}
}
// Owner contract: the outline grows with the plan, including the transient
// camera transform on the common device layer. Use actual screen pixels here:
// computed SVG stroke widths alone cannot distinguish ancestor CSS scaling.
await page.evaluate(async () => {
const card = window.__card;
const root = card.shadowRoot || card.renderRoot;
const layer = root.querySelector('.devlayer');
const source = root.querySelector('.dev[data-id="d_light1"]');
const target = root.querySelector('.dev[data-id="d_lamp"]');
window.__zigbeeOutlineProbeStyles = [layer, source, target].map((node) => [node, node.getAttribute('style')]);
// The camera owns the layer's inline transform and can clear it on a queued
// commit. Keep this synthetic live-transform fixture stable across captures.
layer.setAttribute('data-hp-zigbee-outline-probe', '');
const style = document.createElement('style');
root.append(style);
window.__zigbeeOutlineProbeStyle = style;
source.style.left = '10%'; source.style.top = '30%';
target.style.left = '42%'; target.style.top = '30%';
const overlay = root.querySelector('hp-zigbee-topology-overlay');
overlay.viewKey = { outlineGrowth: true };
source.dispatchEvent(new PointerEvent('pointerover', {
pointerType: 'mouse', bubbles: true, composed: true, clientX: 200, clientY: 200,
}));
await overlay.updateComplete;
});
const outlinePixelMass = [];
for (const scale of [0.5, 1, 2]) {
const probe = await page.evaluate(async ({ scale }) => {
const card = window.__card;
const root = card.shadowRoot || card.renderRoot;
window.__zigbeeOutlineProbeStyle.textContent = `[data-hp-zigbee-outline-probe] {
transform: scale(${scale}) !important; transform-origin: 0 0 !important; background: #fff !important;
}`;
await new Promise((resolve) => requestAnimationFrame(() => requestAnimationFrame(resolve)));
const overlay = root.querySelector('hp-zigbee-topology-overlay');
const svg = overlay.shadowRoot.querySelector('svg');
const line = overlay.shadowRoot.querySelector('[data-hp="zigbee-topology-line"][data-direction="toward-neighbor"]');
const arrow = overlay.shadowRoot.querySelector('[data-hp="zigbee-topology-arrow"][data-direction="toward-neighbor"]');
const point = new DOMPoint(
Number(line.getAttribute('x1')) * 0.55 + Number(line.getAttribute('x2')) * 0.45,
Number(line.getAttribute('y1')),
).matrixTransform(svg.getScreenCTM());
const rect = arrow.getBoundingClientRect();
return { point: { x: point.x, y: point.y }, scale, dpr: devicePixelRatio,
arrow: { x: rect.x, y: rect.y, width: rect.width, height: rect.height } };
}, { scale });
const pixels = await page.screenshot({ animations: 'disabled',
path: fileURLToPath(new URL(`outline-live-scale-${scale}.png`, visualArtifacts)) });
outlinePixelMass.push(await page.evaluate(async ({ image, probe }) => {
const bitmap = await createImageBitmap(await (await fetch(`data:image/png;base64,${image}`)).blob());
const canvas = new OffscreenCanvas(bitmap.width, bitmap.height);
const ctx = canvas.getContext('2d');
ctx.drawImage(bitmap, 0, 0);
const pixels = ctx.getImageData(0, 0, bitmap.width, bitmap.height).data;
// White fixture backdrop and grey core contribute zero. Black casing
// contributes one per pixel; antialiased coverage contributes a fraction.
const black = (x, y) => {
const i = (y * bitmap.width + x) * 4;
return Math.max(0, (165 - Math.max(pixels[i], pixels[i + 1], pixels[i + 2])) / 165);
};
const x = Math.round(probe.point.x * probe.dpr); const y = Math.round(probe.point.y * probe.dpr);
let line = 0;
const radius = Math.ceil(4 * probe.scale * probe.dpr);
for (let dx = -3; dx <= 3; dx++) for (let dy = -radius; dy <= radius; dy++) {
line += black(x + dx, y + dy) / (7 * probe.dpr);
}
const pad = 2 * probe.scale;
const bounds = {
left: Math.floor((probe.arrow.x - pad) * probe.dpr),
top: Math.floor((probe.arrow.y - pad) * probe.dpr),
right: Math.ceil((probe.arrow.x + probe.arrow.width + pad) * probe.dpr),
bottom: Math.ceil((probe.arrow.y + probe.arrow.height + pad) * probe.dpr),
};
let arrow = 0;
const inFrame = bounds.left >= 0 && bounds.top >= 0
&& bounds.right < bitmap.width && bounds.bottom < bitmap.height;
if (inFrame) for (let py = bounds.top; py <= bounds.bottom; py++) for (let px = bounds.left; px <= bounds.right; px++) {
arrow += black(px, py) / (probe.dpr * probe.dpr);
}
return { scale: probe.scale, line, arrow, inFrame };
}, { image: pixels.toString('base64'), probe }));
}
result.livePlanScaleGrowsLineOutline = outlinePixelMass.every((sample) => sample.inFrame && sample.line > 0)
&& outlinePixelMass[1].line > outlinePixelMass[0].line * 1.4
&& outlinePixelMass[2].line > outlinePixelMass[1].line * 1.4;
result.livePlanScaleGrowsArrowOutline = outlinePixelMass.every((sample) => sample.arrow > 0)
&& outlinePixelMass[1].arrow > outlinePixelMass[0].arrow * 2.5
&& outlinePixelMass[2].arrow > outlinePixelMass[1].arrow * 2.5;
console.log('Topology live outline pixel mass:', JSON.stringify(outlinePixelMass));
await page.evaluate(async () => {
window.__zigbeeOutlineProbeStyle.remove();
for (const [node, style] of window.__zigbeeOutlineProbeStyles) {
node.removeAttribute('data-hp-zigbee-outline-probe');
if (style === null) node.removeAttribute('style');
else node.setAttribute('style', style);
}
const card = window.__card;
const overlay = (card.shadowRoot || card.renderRoot).querySelector('hp-zigbee-topology-overlay');
overlay.viewKey = { outlineGrowth: false };
await overlay.updateComplete;
});
const realHoverPoint = await page.evaluate(() => {
const card = window.__card;
@@ -668,10 +1064,10 @@ result.forcedColorsPreserved = await page.evaluate(() => {
const overlay = root.querySelector('hp-zigbee-topology-overlay');
const casing = overlay.shadowRoot.querySelector('[data-hp="zigbee-topology-line-casing"]');
const core = overlay.shadowRoot.querySelector(
'[data-hp="zigbee-topology-line"][stroke-dasharray="5 5"]',
'[data-hp="zigbee-topology-line"][data-direction="toward-neighbor"]',
);
return !!casing && !!core && getComputedStyle(casing).stroke === getComputedStyle(core).stroke
&& getComputedStyle(casing).stroke !== 'rgb(46, 46, 46)';
&& getComputedStyle(casing).stroke !== 'rgb(0, 0, 0)';
});
await page.emulateMedia({ forcedColors: 'none' });
+222
View File
@@ -0,0 +1,222 @@
// #800: production settings + WS transport, with a server-owned fixture outside
// the page. A reload really loses all browser state; backend time is controlled,
// not a 15-minute wall-clock sleep. HA/MQTT lifecycle is covered by HA tests.
import { mkdirSync } from 'node:fs';
import { fileURLToPath } from 'node:url';
import { launch, check, finish } from './serve.mjs';
const { page, browser } = await launch({ width: 1000, height: 850 });
const output = {};
const record = (name, actual) => { output[name] = actual; check(name, actual); };
const artifacts = new URL('../artifacts/zigbee-topology-800/', import.meta.url);
mkdirSync(artifacts, { recursive: true });
const server = { available: true, session: 'server-800', revision: 0, sequence: 0, publishes: 0, cancels: 0, provider: null };
const state = () => ({ kind: 'state', session_id: server.session, revision: server.revision,
provider: structuredClone(server.provider) });
const initial = () => [{ kind: 'reset', session_id: server.session, revision: server.revision,
topics: server.provider ? [server.provider.topic] : [] }, ...(server.provider ? [state()] : [])];
await page.exposeFunction('__scanRpc', async (message) => {
if (message.type === 'houseplan/config/get') return { available: server.available };
if (message.type === 'houseplan/zigbee/subscribe') return initial();
if (message.type === 'houseplan/zigbee/start') {
if (server.provider?.phase !== 'loading') {
server.publishes++;
const last = server.provider;
server.provider = { topic: 'zigbee2mqtt', job_id: `job-${++server.sequence}`,
phase: 'loading', stage: 'waiting', started_at: Date.now(), elapsed_ms: 0,
cancel_after_ms: 600000, ...(last?.result ? {
result: last.result, obtained_at: last.obtained_at, stale: true,
} : {}) };
server.revision++;
}
return state();
}
if (message.type === 'houseplan/zigbee/cancel') {
if (message.job_id !== server.provider?.job_id) throw new Error('conflict');
if (server.provider.elapsed_ms < 600000) throw new Error('not_ready');
if (server.provider.phase === 'loading') {
server.cancels++;
server.provider.phase = 'cancelled'; server.provider.stale = true;
server.revision++;
}
return state();
}
throw new Error(`unexpected fixture RPC: ${message.type}`);
});
const install = async (embedded = false) => page.evaluate(async (isEmbedded) => {
const card = window.__card;
await card._ensureEditorRuntime();
card._openSettingsDialog(); await card.updateComplete;
(card.shadowRoot || card.renderRoot)
.querySelector('hp-dialog[data-kind="settings"] [data-hp="dialog-cancel"]').click();
await card.updateComplete;
const original = card.hass;
window.__scanCallbacks = new Set();
window.__scanStats = { subscriptions: 0, active: 0, mqtt: 0 };
const connection = {
...original.connection,
subscribeMessage: async (callback, message) => {
if (message.type !== 'houseplan/zigbee/subscribe') {
if (message.type.startsWith('mqtt/')) window.__scanStats.mqtt++;
return original.connection.subscribeMessage(callback, message);
}
window.__scanStats.subscriptions++; window.__scanStats.active++;
window.__scanCallbacks.add(callback);
for (const event of await window.__scanRpc(message)) callback(event);
let active = true;
return () => {
if (!active) return; active = false;
window.__scanCallbacks.delete(callback); window.__scanStats.active--;
};
},
};
const hass = { ...original, language: 'en', user: { ...original.user, id: 'admin-800', is_admin: true }, connection,
callWS: async (message) => {
if (message.type.startsWith('houseplan/zigbee/')) return window.__scanRpc(message);
if (message.type === 'houseplan/config/get' && !(await window.__scanRpc(message)).available) {
throw { code: 'not_ready' };
}
const result = await original.callWS(message);
if (message.type === 'houseplan/config/get') return {
...result, zigbee_scan_api: 1,
};
return result;
},
callService: async (...args) => {
if (args[0] === 'mqtt') window.__scanStats.mqtt++;
return original.callService(...args);
},
};
window.__scanHass = hass;
const element = document.createElement('hp-zigbee-topology-settings');
element.id = 'scan-settings'; element.hass = hass;
element.value = { enabled: true, z2mBaseTopics: ['zigbee2mqtt'] };
element.savedEnabled = true; element.embedded = isEmbedded;
element.style.cssText = 'position:fixed;inset:0;overflow:auto;padding:20px;box-sizing:border-box;background:#fff;color:#171735;z-index:99999;font:16px sans-serif';
// Reproduce the tokens normally inherited from hp-dialog .hpf-form. The
// demo document itself is dark; changing only background would fake a theme.
for (const [key, value] of Object.entries({
'--primary-text-color': '#171735', '--secondary-text-color': '#666879',
'--card-background-color': '#fff', '--divider-color': '#dce5e7',
'--hpf-surface': '#fff', '--hpf-line': '#dce5e7', '--hpf-muted': '#666879',
'--hpf-accent': '#f09600', '--hpf-canvas': '#f5f5f8',
})) element.style.setProperty(key, value);
document.body.append(element); await element.updateComplete;
}, embedded);
const settings = () => page.locator('#scan-settings');
const refresh = () => settings().getByRole('button', { name: /Update map/ });
const cancel = () => settings().locator('[data-hp="zigbee-scan-cancel"]');
const elapsed = () => settings().locator('[data-hp="zigbee-scan-elapsed"]');
const waitState = async (phase) => page.waitForFunction((expected) =>
document.getElementById('scan-settings')?._snapshot?.states?.['z2m:zigbee2mqtt']?.phase === expected, phase);
const deliver = async () => page.evaluate((event) => {
for (const callback of window.__scanCallbacks) callback(event);
}, state());
try {
await install();
await refresh().click(); await waitState('loading');
record('onePublishAndNoBrowserMqtt', server.publishes === 1
&& await page.evaluate(() => window.__scanStats.mqtt === 0));
record('stageElapsedAndCloseHint', await elapsed().isVisible()
&& await settings().locator('[data-hp="zigbee-scan-stage"]').isVisible()
&& await settings().locator('[data-hp="zigbee-scan-background"]').isVisible());
record('noInventedPercentOrEarlyCancel', !(await settings().innerText()).includes('%')
&& await cancel().count() === 0);
await page.evaluate(async () => {
const element = document.getElementById('scan-settings');
for (let i = 0; i < 4; i++) {
element.hass = { ...element.hass, states: { ...element.hass.states } };
await element.updateComplete;
}
});
record('ordinaryHassUpdatesKeepOneSubscription', await page.evaluate(() =>
window.__scanStats.subscriptions === 1 && window.__scanStats.active === 1));
server.provider.elapsed_ms = 599100; server.revision++; await deliver();
record('599SecondsStillNoCancel', await cancel().count() === 0);
await cancel().waitFor({ state: 'visible', timeout: 4000 });
record('cancelAppearsFromLocalClockWithoutServerTick', server.provider.elapsed_ms === 599100);
// Remove settings and reload the entire document, while fixture server lives.
await page.evaluate(() => document.getElementById('scan-settings').remove());
record('closingReleasesOnlyUi', await page.evaluate(() => window.__scanStats.active === 0)
&& server.provider.phase === 'loading');
server.provider.elapsed_ms = 901000; server.revision++;
await page.reload({ waitUntil: 'domcontentloaded' });
await page.waitForFunction(() => window.__card?._booting === false);
await install(true); await waitState('loading');
record('newPageRestoresSameJobAfter15Minutes', server.publishes === 1
&& /15:0[1-9]/.test(await elapsed().innerText()));
record('longWaitHasCancelAndHonestHint', await cancel().isVisible()
&& await settings().locator('[data-hp="zigbee-scan-long-wait"]').isVisible()
&& await settings().locator('[data-hp="zigbee-scan-cancel-hint"]').isVisible());
// Narrow layout and real keyboard activation, not a direct private handler.
await page.setViewportSize({ width: 390, height: 844 });
await cancel().scrollIntoViewIfNeeded();
const rect = await cancel().boundingBox();
record('mobileCancelTouchTargetAndNoOverflow', rect?.height >= 44 && rect?.width >= 44
&& await settings().evaluate((element) => element.scrollWidth <= element.clientWidth + 1));
await page.screenshot({ path: fileURLToPath(new URL('narrow-light-wait.png', artifacts)) });
await settings().evaluate((element) => {
element.style.background = '#202126'; element.style.color = '#eee';
element.style.setProperty('--card-background-color', '#202126');
element.style.setProperty('--primary-text-color', '#eee');
element.style.setProperty('--secondary-text-color', '#aaa');
element.style.setProperty('--hpf-surface', '#202126');
element.style.setProperty('--hpf-line', '#555');
element.style.setProperty('--hpf-muted', '#aaa');
element.style.setProperty('--hpf-canvas', '#17181d');
});
await page.screenshot({ path: fileURLToPath(new URL('narrow-dark-wait.png', artifacts)) });
await cancel().focus(); await page.keyboard.press('Enter'); await waitState('cancelled');
record('keyboardCancelsExactJobWithoutRepublish', server.cancels === 1 && server.publishes === 1);
await refresh().click(); await waitState('loading');
record('newExplicitScanOnly', server.publishes === 2 && server.provider.job_id === 'job-2');
server.provider = { ...server.provider, phase: 'ready', elapsed_ms: 960000,
obtained_at: Date.now(), stale: false,
result: { status: 'ok', transaction: 'job-2', data: { type: 'raw', value: {
nodes: [{ ieeeAddr: '00124b0000000001', type: 'Coordinator', networkAddress: 0 }], links: [],
} } },
}; server.revision++;
// Finish with zero observers, then restore the cached result on remount.
await page.evaluate(() => document.getElementById('scan-settings').remove());
await install(); await waitState('ready');
record('resultWhileAbsentRestoresWithoutNewScan', server.publishes === 2
&& await elapsed().count() === 0 && await refresh().isEnabled());
record('receivedMapNormalized', await page.evaluate(() =>
document.getElementById('scan-settings')._snapshot.topologies.length === 1));
await page.setViewportSize({ width: 1000, height: 850 });
await page.screenshot({ path: fileURLToPath(new URL('desktop-ready.png', artifacts)) });
const obsolete = state();
await page.evaluate((event) => {
for (const callback of window.__scanCallbacks) callback(event);
}, { kind: 'closed', session_id: server.session, revision: ++server.revision });
server.session = 'server-800-reloaded'; server.revision = 0; server.provider = null;
await page.waitForFunction(() => !document.getElementById('scan-settings')._snapshot.states['z2m:zigbee2mqtt']);
record('integrationUnloadClearsUiWithoutClosingHaSocket', await refresh().isEnabled()
&& await page.evaluate(() => window.__scanStats.active === 0));
server.available = false;
await refresh().click(); await waitState('error');
record('retryDuringReloadDoesNotStartRadioOrDisableRetry', server.publishes === 2
&& await refresh().isEnabled());
server.available = true;
await refresh().click(); await waitState('loading');
await page.evaluate((event) => {
for (const callback of window.__scanCallbacks) callback(event);
}, obsolete);
record('explicitScanAfterIntegrationReloadReobservesNewSession', server.publishes === 3
&& await page.evaluate(() => window.__scanStats.active === 1
&& document.getElementById('scan-settings')._snapshot.states['z2m:zigbee2mqtt'].jobId === 'job-3'));
await page.evaluate(async () => {
const element = document.getElementById('scan-settings');
element.hass = { ...element.hass, user: { id: 'viewer-800', is_admin: false } };
await element.updateComplete;
});
record('permissionLossDropsObserverAndMap', await page.evaluate(() =>
window.__scanStats.active === 0
&& document.getElementById('scan-settings')._snapshot.topologies.length === 0));
} finally {
await finish(browser, output);
}
+291 -291
View File
@@ -1,598 +1,598 @@
{
"schema": 1,
"fingerprint": "fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac",
"fingerprint": "1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f",
"entry": "houseplan-card.js",
"panelEntry": "houseplan-panel.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-CDzf9V5z.js",
"houseplan-assets/houseplan-card-DpMO8ZtV.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 300069,
"initialViewGzipBytes": 301006,
"initialPanelFiles": [
"houseplan-assets/houseplan-card-CDzf9V5z.js",
"houseplan-assets/houseplan-card-DpMO8ZtV.js",
"houseplan-panel.js"
],
"initialPanelGzipBytes": 301590,
"initialPanelGzipBytes": 302530,
"initialPanelOnlyFiles": [
"houseplan-panel.js"
],
"initialPanelOnlyGzipBytes": 2324,
"initialPanelOnlyGzipBytes": 2329,
"lazyFiles": [
"houseplan-assets/backdrop-pick-361D_NhT.js",
"houseplan-assets/de-wSrjkMCX.js",
"houseplan-assets/editor-CAHVNjOb.js",
"houseplan-assets/form-kit.styles-Dq1Y4tz1.js",
"houseplan-assets/fr-Cb7RjPXv.js",
"houseplan-assets/furniture-plan-art.generated-DHB0O8RC.js",
"houseplan-assets/houseplan-editor-runtime-D7Nrak81.js",
"houseplan-assets/houseplan-onboarding-runtime-BDfCLIiS.js",
"houseplan-assets/hp-zigbee-topology-overlay-W_gG_T_A.js",
"houseplan-assets/iso-scene-render-CBGc0yON.js",
"houseplan-assets/led-strip-editor-55w_99OW.js",
"houseplan-assets/led-strip-geometry-BcPfXtN-.js",
"houseplan-assets/led-strip-runtime-C0OS8_qS.js",
"houseplan-assets/live-interaction-runtime-CgDUYt60.js",
"houseplan-assets/moon-runtime-DkqNfOp0.js",
"houseplan-assets/namespace-language-BPjMJUHI.js",
"houseplan-assets/pdf-export-UdR2EXb9.js",
"houseplan-assets/space-editor-N5uYQl3H.js",
"houseplan-assets/summary-panel-runtime-loaded-BcDAIp5L.js",
"houseplan-assets/zigbee-topology-Co7YPeRf.js",
"houseplan-assets/zigbee-topology-runtime-ByS3kW9n.js"
"houseplan-assets/backdrop-pick-Cbg_afD8.js",
"houseplan-assets/de-D0loWXPu.js",
"houseplan-assets/editor-D8kAiNl5.js",
"houseplan-assets/form-kit.styles-C2rEYmUr.js",
"houseplan-assets/fr-CePePBlS.js",
"houseplan-assets/furniture-plan-art.generated-Ce2oI6mt.js",
"houseplan-assets/houseplan-editor-runtime-DSXeye-8.js",
"houseplan-assets/houseplan-onboarding-runtime-CtUOIeUQ.js",
"houseplan-assets/hp-zigbee-topology-overlay-CNqZfU9H.js",
"houseplan-assets/iso-scene-render-BCdlru2d.js",
"houseplan-assets/led-strip-editor-Dkq0kk-A.js",
"houseplan-assets/led-strip-geometry-CbsAEceS.js",
"houseplan-assets/led-strip-runtime-De_8tcFL.js",
"houseplan-assets/live-interaction-runtime-Dql0Sisj.js",
"houseplan-assets/moon-runtime-p6eITxGX.js",
"houseplan-assets/namespace-language-B3Q_Y8Lh.js",
"houseplan-assets/pdf-export-eVm0SKcQ.js",
"houseplan-assets/space-editor-BW81fsa-.js",
"houseplan-assets/summary-panel-runtime-loaded-C7G0wFcw.js",
"houseplan-assets/zigbee-topology-DkIGuBlK.js",
"houseplan-assets/zigbee-topology-runtime-26qGCNY5.js"
],
"lazyGzipBytes": 477990,
"lazyGzipBytes": 481121,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-361D_NhT.js",
"houseplan-assets/editor-CAHVNjOb.js",
"houseplan-assets/form-kit.styles-Dq1Y4tz1.js",
"houseplan-assets/furniture-plan-art.generated-DHB0O8RC.js",
"houseplan-assets/houseplan-editor-runtime-D7Nrak81.js",
"houseplan-assets/namespace-language-BPjMJUHI.js",
"houseplan-assets/zigbee-topology-Co7YPeRf.js"
"houseplan-assets/backdrop-pick-Cbg_afD8.js",
"houseplan-assets/editor-D8kAiNl5.js",
"houseplan-assets/form-kit.styles-C2rEYmUr.js",
"houseplan-assets/furniture-plan-art.generated-Ce2oI6mt.js",
"houseplan-assets/houseplan-editor-runtime-DSXeye-8.js",
"houseplan-assets/namespace-language-B3Q_Y8Lh.js",
"houseplan-assets/zigbee-topology-DkIGuBlK.js"
],
"lazyEditorGzipBytes": 240863,
"lazyEditorGzipBytes": 242414,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-361D_NhT.js",
"houseplan-assets/form-kit.styles-Dq1Y4tz1.js",
"houseplan-assets/houseplan-onboarding-runtime-BDfCLIiS.js",
"houseplan-assets/namespace-language-BPjMJUHI.js"
"houseplan-assets/backdrop-pick-Cbg_afD8.js",
"houseplan-assets/form-kit.styles-C2rEYmUr.js",
"houseplan-assets/houseplan-onboarding-runtime-CtUOIeUQ.js",
"houseplan-assets/namespace-language-B3Q_Y8Lh.js"
],
"lazyOnboardingGzipBytes": 28403,
"lazyOnboardingGzipBytes": 28409,
"lazyLocaleFiles": [
"houseplan-assets/de-wSrjkMCX.js",
"houseplan-assets/fr-Cb7RjPXv.js"
"houseplan-assets/de-D0loWXPu.js",
"houseplan-assets/fr-CePePBlS.js"
],
"lazyLocaleGzipBytes": 53859,
"lazyLocaleGzipBytes": 53874,
"lazyIsometricFiles": [
"houseplan-assets/iso-scene-render-CBGc0yON.js"
"houseplan-assets/iso-scene-render-BCdlru2d.js"
],
"lazyIsometricGzipBytes": 12345,
"lazyIsometricGzipBytes": 12350,
"lazyFurnitureArtFiles": [
"houseplan-assets/furniture-plan-art.generated-DHB0O8RC.js"
"houseplan-assets/furniture-plan-art.generated-Ce2oI6mt.js"
],
"lazyFurnitureArtGzipBytes": 16940,
"lazyFurnitureArtGzipBytes": 16937,
"lazyPdfFiles": [
"houseplan-assets/furniture-plan-art.generated-DHB0O8RC.js",
"houseplan-assets/pdf-export-UdR2EXb9.js"
"houseplan-assets/furniture-plan-art.generated-Ce2oI6mt.js",
"houseplan-assets/pdf-export-eVm0SKcQ.js"
],
"lazyPdfGzipBytes": 126938,
"lazyPdfGzipBytes": 126934,
"lazyMoonFiles": [
"houseplan-assets/moon-runtime-DkqNfOp0.js"
"houseplan-assets/moon-runtime-p6eITxGX.js"
],
"lazyMoonGzipBytes": 11713,
"lazyMoonGzipBytes": 11715,
"lazyLedFiles": [
"houseplan-assets/led-strip-field-DvtQ7tpM.js",
"houseplan-assets/led-strip-geometry-BcPfXtN-.js",
"houseplan-assets/led-strip-runtime-C0OS8_qS.js"
"houseplan-assets/led-strip-field-DftOG2Ox.js",
"houseplan-assets/led-strip-geometry-CbsAEceS.js",
"houseplan-assets/led-strip-runtime-De_8tcFL.js"
],
"lazyLedGzipBytes": 9544,
"lazyLedGzipBytes": 10687,
"lazyLedEditorFiles": [
"houseplan-assets/led-strip-editor-55w_99OW.js",
"houseplan-assets/led-strip-geometry-BcPfXtN-.js",
"houseplan-assets/namespace-language-BPjMJUHI.js"
"houseplan-assets/led-strip-editor-Dkq0kk-A.js",
"houseplan-assets/led-strip-geometry-CbsAEceS.js",
"houseplan-assets/namespace-language-B3Q_Y8Lh.js"
],
"lazyLedEditorGzipBytes": 10033,
"lazyLedEditorGzipBytes": 10710,
"lazyNamespaceLocaleFiles": [
"houseplan-assets/led-de-D8AOGwO9.js",
"houseplan-assets/led-fr-Dyd_xJWH.js",
"houseplan-assets/led-ru-DxKs7cgH.js",
"houseplan-assets/settings-de-hkfrpcmk.js",
"houseplan-assets/settings-fr-CTDbCfmV.js",
"houseplan-assets/settings-ru-_XLAbOEk.js",
"houseplan-assets/support-de-DF73IEHL.js",
"houseplan-assets/support-fr-BBhMT3I0.js",
"houseplan-assets/support-ru-Bd7vkOXI.js",
"houseplan-assets/tools-de-DwmzTHwi.js",
"houseplan-assets/tools-fr-Dp5JXY-G.js",
"houseplan-assets/tools-ru-CAQB2Qhv.js",
"houseplan-assets/topology-de-DFY0lBO-.js",
"houseplan-assets/topology-fr-DbNDk6Er.js",
"houseplan-assets/topology-ru-BNVYY-_i.js"
"houseplan-assets/led-de-DHZ0Fp8K.js",
"houseplan-assets/led-fr-B17CBlAB.js",
"houseplan-assets/led-ru-B_bBTrNf.js",
"houseplan-assets/settings-de-BK2nCasN.js",
"houseplan-assets/settings-fr-BzV3jQNV.js",
"houseplan-assets/settings-ru-Pwj0ioPD.js",
"houseplan-assets/support-de-CqSy-k8F.js",
"houseplan-assets/support-fr-DRf8BVE_.js",
"houseplan-assets/support-ru-D5IlTrg1.js",
"houseplan-assets/tools-de-Bp6a3HZ8.js",
"houseplan-assets/tools-fr-Cm_NF5Bo.js",
"houseplan-assets/tools-ru-BsgA3-Uc.js",
"houseplan-assets/topology-de-aLf8xQIB.js",
"houseplan-assets/topology-fr-BM-2v3ZO.js",
"houseplan-assets/topology-ru-DkoU0vIo.js"
],
"lazyNamespaceLocaleGzipBytes": 30051,
"lazyNamespaceLocaleGzipBytes": 30522,
"files": [
{
"path": "houseplan-assets/backdrop-pick-361D_NhT.js",
"sha256": "8d80eb83488438a96d33410716b91398f1aa7456884d8e9e9094165a830ec9c0",
"path": "houseplan-assets/backdrop-pick-Cbg_afD8.js",
"sha256": "6b1d9a98b7c441c97ffdd254d4e761bad73e8af167a89a377440d161612ca081",
"rawBytes": 55329,
"gzipBytes": 18026,
"gzipBytes": 18027,
"isEntry": false,
"imports": [
"houseplan-assets/form-kit.styles-Dq1Y4tz1.js",
"houseplan-assets/houseplan-card-CDzf9V5z.js",
"houseplan-assets/namespace-language-BPjMJUHI.js"
"houseplan-assets/form-kit.styles-C2rEYmUr.js",
"houseplan-assets/houseplan-card-DpMO8ZtV.js",
"houseplan-assets/namespace-language-B3Q_Y8Lh.js"
],
"dynamicImports": [
"houseplan-assets/settings-de-hkfrpcmk.js",
"houseplan-assets/settings-fr-CTDbCfmV.js",
"houseplan-assets/settings-ru-_XLAbOEk.js"
"houseplan-assets/settings-de-BK2nCasN.js",
"houseplan-assets/settings-fr-BzV3jQNV.js",
"houseplan-assets/settings-ru-Pwj0ioPD.js"
]
},
{
"path": "houseplan-assets/de-wSrjkMCX.js",
"sha256": "b6873407a3663932da1261fb151e3c81c78e4cfda3ad3d88946e076c524e2e27",
"path": "houseplan-assets/de-D0loWXPu.js",
"sha256": "66a1dc2d57532ca76d9f29e874e3b823c97693f9ac351c7b85b2d6d6e20ed452",
"rawBytes": 89873,
"gzipBytes": 27163,
"gzipBytes": 27169,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-CAHVNjOb.js",
"sha256": "29b283f4d700ecf0256cb09f858a3944f9722c40711ad3ed9d9fee90d5a2175f",
"path": "houseplan-assets/editor-D8kAiNl5.js",
"sha256": "3cd4e96aa5086022bb53fd8790aafe8dfa79f427c5aa9cd2e15066e01d0afc08",
"rawBytes": 3833,
"gzipBytes": 1583,
"gzipBytes": 1587,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/form-kit.styles-Dq1Y4tz1.js",
"sha256": "57078cb29919b2d801225f1f15f59fcac028907b7126b5a684a5ab89b50ace38",
"path": "houseplan-assets/form-kit.styles-C2rEYmUr.js",
"sha256": "23a2a5fe57bd36d4b413e2a1f7461fde1aabe28f25d190ceeafd57b291e80a70",
"rawBytes": 25605,
"gzipBytes": 5058,
"gzipBytes": 5059,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-Cb7RjPXv.js",
"sha256": "f04f19f0f56a70d201c521b74be3a6f7f3b687a93bd91785d50f0984c68508cb",
"path": "houseplan-assets/fr-CePePBlS.js",
"sha256": "836793ff868d52ee5b69d59703bd9cc071682b7e425a037eef2058ad18d258ac",
"rawBytes": 92266,
"gzipBytes": 26696,
"gzipBytes": 26705,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/furniture-plan-art.generated-DHB0O8RC.js",
"sha256": "1f693cbcb7992e269d7a7602962fcce33f21230e7b0edce7c0359942230da941",
"path": "houseplan-assets/furniture-plan-art.generated-Ce2oI6mt.js",
"sha256": "5cc8608342b1734e6da295f8c8d5250ba100ebab4c71627cd958faa8033af160",
"rawBytes": 52035,
"gzipBytes": 16940,
"gzipBytes": 16937,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-CDzf9V5z.js",
"sha256": "43829456356d3d4d59efa17ccbb75326350ad79fc4413862dfa50ec98c1ca24e",
"rawBytes": 1056226,
"gzipBytes": 299266,
"path": "houseplan-assets/houseplan-card-DpMO8ZtV.js",
"sha256": "744b2107be96031b8336438b8018d44d284ddbc78ea1b310ba3bdd95b90f9a24",
"rawBytes": 1059141,
"gzipBytes": 300201,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-wSrjkMCX.js",
"houseplan-assets/editor-CAHVNjOb.js",
"houseplan-assets/fr-Cb7RjPXv.js",
"houseplan-assets/furniture-plan-art.generated-DHB0O8RC.js",
"houseplan-assets/houseplan-editor-runtime-D7Nrak81.js",
"houseplan-assets/houseplan-onboarding-runtime-BDfCLIiS.js",
"houseplan-assets/hp-zigbee-topology-overlay-W_gG_T_A.js",
"houseplan-assets/iso-scene-render-CBGc0yON.js",
"houseplan-assets/led-strip-editor-55w_99OW.js",
"houseplan-assets/led-strip-runtime-C0OS8_qS.js",
"houseplan-assets/live-interaction-runtime-CgDUYt60.js",
"houseplan-assets/moon-runtime-DkqNfOp0.js",
"houseplan-assets/pdf-export-UdR2EXb9.js",
"houseplan-assets/space-editor-N5uYQl3H.js",
"houseplan-assets/summary-panel-runtime-loaded-BcDAIp5L.js"
"houseplan-assets/de-D0loWXPu.js",
"houseplan-assets/editor-D8kAiNl5.js",
"houseplan-assets/fr-CePePBlS.js",
"houseplan-assets/furniture-plan-art.generated-Ce2oI6mt.js",
"houseplan-assets/houseplan-editor-runtime-DSXeye-8.js",
"houseplan-assets/houseplan-onboarding-runtime-CtUOIeUQ.js",
"houseplan-assets/hp-zigbee-topology-overlay-CNqZfU9H.js",
"houseplan-assets/iso-scene-render-BCdlru2d.js",
"houseplan-assets/led-strip-editor-Dkq0kk-A.js",
"houseplan-assets/led-strip-runtime-De_8tcFL.js",
"houseplan-assets/live-interaction-runtime-Dql0Sisj.js",
"houseplan-assets/moon-runtime-p6eITxGX.js",
"houseplan-assets/pdf-export-eVm0SKcQ.js",
"houseplan-assets/space-editor-BW81fsa-.js",
"houseplan-assets/summary-panel-runtime-loaded-C7G0wFcw.js"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-D7Nrak81.js",
"sha256": "ba4c1682823b15bce834bd41d0bc0d7fc4327fc6cc099175eb5651c285f9a938",
"rawBytes": 695353,
"gzipBytes": 194544,
"path": "houseplan-assets/houseplan-editor-runtime-DSXeye-8.js",
"sha256": "1eaad49da810920dbb3faea5bd9fd7c8d806149c8f3918e0b8ada50e882f1a5e",
"rawBytes": 696207,
"gzipBytes": 194767,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-361D_NhT.js",
"houseplan-assets/form-kit.styles-Dq1Y4tz1.js",
"houseplan-assets/furniture-plan-art.generated-DHB0O8RC.js",
"houseplan-assets/houseplan-card-CDzf9V5z.js",
"houseplan-assets/namespace-language-BPjMJUHI.js",
"houseplan-assets/zigbee-topology-Co7YPeRf.js"
"houseplan-assets/backdrop-pick-Cbg_afD8.js",
"houseplan-assets/form-kit.styles-C2rEYmUr.js",
"houseplan-assets/furniture-plan-art.generated-Ce2oI6mt.js",
"houseplan-assets/houseplan-card-DpMO8ZtV.js",
"houseplan-assets/namespace-language-B3Q_Y8Lh.js",
"houseplan-assets/zigbee-topology-DkIGuBlK.js"
],
"dynamicImports": [
"houseplan-assets/support-de-DF73IEHL.js",
"houseplan-assets/support-fr-BBhMT3I0.js",
"houseplan-assets/support-ru-Bd7vkOXI.js",
"houseplan-assets/tools-de-DwmzTHwi.js",
"houseplan-assets/tools-fr-Dp5JXY-G.js",
"houseplan-assets/tools-ru-CAQB2Qhv.js",
"houseplan-assets/zigbee-topology-runtime-ByS3kW9n.js"
"houseplan-assets/support-de-CqSy-k8F.js",
"houseplan-assets/support-fr-DRf8BVE_.js",
"houseplan-assets/support-ru-D5IlTrg1.js",
"houseplan-assets/tools-de-Bp6a3HZ8.js",
"houseplan-assets/tools-fr-Cm_NF5Bo.js",
"houseplan-assets/tools-ru-BsgA3-Uc.js",
"houseplan-assets/zigbee-topology-runtime-26qGCNY5.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime-BDfCLIiS.js",
"sha256": "89044bd3a7f52fc1f1b373b31576dc1d7180a011c1eeef264f79c6f5d00023e0",
"path": "houseplan-assets/houseplan-onboarding-runtime-CtUOIeUQ.js",
"sha256": "1f699514d966081ad2a030b9eec9c9823a6ecc2d6149dba3a951e381e8c6ed19",
"rawBytes": 15886,
"gzipBytes": 4910,
"gzipBytes": 4911,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-361D_NhT.js",
"houseplan-assets/form-kit.styles-Dq1Y4tz1.js",
"houseplan-assets/houseplan-card-CDzf9V5z.js",
"houseplan-assets/namespace-language-BPjMJUHI.js"
"houseplan-assets/backdrop-pick-Cbg_afD8.js",
"houseplan-assets/form-kit.styles-C2rEYmUr.js",
"houseplan-assets/houseplan-card-DpMO8ZtV.js",
"houseplan-assets/namespace-language-B3Q_Y8Lh.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-W_gG_T_A.js",
"sha256": "673cd02181555b4849ebe42fd3053ce67b7f97dcd14fcfc61e81c119be120c5b",
"rawBytes": 10958,
"gzipBytes": 3768,
"path": "houseplan-assets/hp-zigbee-topology-overlay-CNqZfU9H.js",
"sha256": "c1f2b923964f21c985b9916046a47594de50bfe2966dca5d89e9062291258041",
"rawBytes": 12193,
"gzipBytes": 4302,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js",
"houseplan-assets/namespace-language-BPjMJUHI.js",
"houseplan-assets/zigbee-topology-Co7YPeRf.js",
"houseplan-assets/zigbee-topology-runtime-ByS3kW9n.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js",
"houseplan-assets/namespace-language-B3Q_Y8Lh.js",
"houseplan-assets/zigbee-topology-DkIGuBlK.js",
"houseplan-assets/zigbee-topology-runtime-26qGCNY5.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/iso-scene-render-CBGc0yON.js",
"sha256": "1f2456f515056c6fba882cbd6b510635bdb1c12d63cb648b741c4e61b13e6197",
"path": "houseplan-assets/iso-scene-render-BCdlru2d.js",
"sha256": "85b3f40e68fa8c7a9994e1006ee7027172bb84a611a302ab95fc5bcdf980a89e",
"rawBytes": 36700,
"gzipBytes": 12345,
"gzipBytes": 12350,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/led-de-D8AOGwO9.js",
"sha256": "cc7a9e048e16ad6c7869d7f72a0e4d7bde6451d29eb8fd5ec205a887fec62d97",
"path": "houseplan-assets/led-de-DHZ0Fp8K.js",
"sha256": "cf2b801d2cf54a262fcfc2bf78a7a66c07f1cd2f017abb4e6845183f3d86a1d4",
"rawBytes": 1907,
"gzipBytes": 919,
"gzipBytes": 923,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/led-fr-Dyd_xJWH.js",
"sha256": "e293c332b3bb877683b7781c16e0fad2cb6a72f271d779c7a398af29b2497027",
"path": "houseplan-assets/led-fr-B17CBlAB.js",
"sha256": "a8c4bd67beff0ca9dbba74bf3565e02622d2baed9cf912b74f6a052b559ff1a3",
"rawBytes": 1886,
"gzipBytes": 905,
"gzipBytes": 908,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/led-ru-DxKs7cgH.js",
"sha256": "06d0b17e3954e65270dcb7356f6672923185e8b5af38632eebbe99b5af1aab50",
"path": "houseplan-assets/led-ru-B_bBTrNf.js",
"sha256": "a0be2bcad7919e3628e9a138c8561fb763e59ff90a219d7739f318000749f917",
"rawBytes": 2525,
"gzipBytes": 1105,
"gzipBytes": 1107,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/led-strip-editor-55w_99OW.js",
"sha256": "77ee4a59643984f94f1ff57f96013858e2cdc258b13ae01497b46f4057f62442",
"path": "houseplan-assets/led-strip-editor-Dkq0kk-A.js",
"sha256": "5d13b6717abdaa97a4ab5780f0c22f46891fdbfe326aa2d6b1d88d36e9ac2c2e",
"rawBytes": 21704,
"gzipBytes": 7380,
"gzipBytes": 7384,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js",
"houseplan-assets/led-strip-geometry-BcPfXtN-.js",
"houseplan-assets/namespace-language-BPjMJUHI.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js",
"houseplan-assets/led-strip-geometry-CbsAEceS.js",
"houseplan-assets/namespace-language-B3Q_Y8Lh.js"
],
"dynamicImports": [
"houseplan-assets/led-de-D8AOGwO9.js",
"houseplan-assets/led-fr-Dyd_xJWH.js",
"houseplan-assets/led-ru-DxKs7cgH.js"
"houseplan-assets/led-de-DHZ0Fp8K.js",
"houseplan-assets/led-fr-B17CBlAB.js",
"houseplan-assets/led-ru-B_bBTrNf.js"
]
},
{
"path": "houseplan-assets/led-strip-field-DvtQ7tpM.js",
"sha256": "6b3bf5cf737a4b3136d65951e57bc93d07664fc34cc2ddc7ba502a1c567496d3",
"rawBytes": 7384,
"gzipBytes": 3073,
"path": "houseplan-assets/led-strip-field-DftOG2Ox.js",
"sha256": "436d82bbe8e743932d6c61674e41c9973065df7793efbfd145735dc1bf092d87",
"rawBytes": 8066,
"gzipBytes": 3383,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js",
"houseplan-assets/led-strip-geometry-BcPfXtN-.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js",
"houseplan-assets/led-strip-geometry-CbsAEceS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/led-strip-geometry-BcPfXtN-.js",
"sha256": "96e1f3dce530f9e05d7b55bc32c9b998c8e9d291bef92c7c2b78d57948ece933",
"rawBytes": 5231,
"gzipBytes": 2244,
"path": "houseplan-assets/led-strip-geometry-CbsAEceS.js",
"sha256": "5c96bb8178eacb931f80f19954d09dfe3eaf4ba715a814929b9e34c3e5d91aa4",
"rawBytes": 7055,
"gzipBytes": 2914,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/led-strip-runtime-C0OS8_qS.js",
"sha256": "933125d5e1f0504e56291e5289237630a79f5502f9b5701dc3d76f2dc470aed6",
"rawBytes": 10760,
"gzipBytes": 4227,
"path": "houseplan-assets/led-strip-runtime-De_8tcFL.js",
"sha256": "19b522ec0fc33db2f9e0a32ccf8abac19f90c069b093d80a547121da6f77bfc9",
"rawBytes": 11248,
"gzipBytes": 4390,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js",
"houseplan-assets/led-strip-geometry-BcPfXtN-.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js",
"houseplan-assets/led-strip-geometry-CbsAEceS.js"
],
"dynamicImports": [
"houseplan-assets/led-strip-field-DvtQ7tpM.js"
"houseplan-assets/led-strip-field-DftOG2Ox.js"
]
},
{
"path": "houseplan-assets/live-interaction-runtime-CgDUYt60.js",
"sha256": "5e3ea0225cba5931aa51cd398062f5cb17d82f0f33bee9101fa61ed455b40fdb",
"path": "houseplan-assets/live-interaction-runtime-Dql0Sisj.js",
"sha256": "acd9c7923d892804ae3b569715a2aa2a392e5395b2faf0eebdb9061740b79ea8",
"rawBytes": 8370,
"gzipBytes": 3280,
"gzipBytes": 3282,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/moon-runtime-DkqNfOp0.js",
"sha256": "1d6df38c7320b9f9cff3b9f3afa152f4c295109fe2c0b94924d5d2e606468962",
"path": "houseplan-assets/moon-runtime-p6eITxGX.js",
"sha256": "012388d50976dd19464d3d19e4455c2d16bdf695b3a1228bb682e30c72e6c75e",
"rawBytes": 30292,
"gzipBytes": 11713,
"gzipBytes": 11715,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/namespace-language-BPjMJUHI.js",
"sha256": "d108e467e8a0e61c1f9cf0ba408f01d9415920c3e843219144f19ab0634cbb1b",
"path": "houseplan-assets/namespace-language-B3Q_Y8Lh.js",
"sha256": "bf12454d3212bdcb5dd9d6c5e23755000e531284b04fc6fedbe140b5bbaccfce",
"rawBytes": 675,
"gzipBytes": 409,
"gzipBytes": 412,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/pdf-export-UdR2EXb9.js",
"sha256": "839a0cb681cfcb67b74899d306b3e09e8b7fae59f46283b335c671c845554242",
"path": "houseplan-assets/pdf-export-eVm0SKcQ.js",
"sha256": "6d1fae2b3bce202f62333afe1e3a33dca63eff65576896f5ce67e87c8fefc0cf",
"rawBytes": 236714,
"gzipBytes": 109998,
"gzipBytes": 109997,
"isEntry": false,
"imports": [
"houseplan-assets/furniture-plan-art.generated-DHB0O8RC.js",
"houseplan-assets/houseplan-card-CDzf9V5z.js"
"houseplan-assets/furniture-plan-art.generated-Ce2oI6mt.js",
"houseplan-assets/houseplan-card-DpMO8ZtV.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/settings-de-hkfrpcmk.js",
"sha256": "7430bf272d66366ca4e7f3d6c8178cda97f2bc65112a475aeb98388338726c6d",
"path": "houseplan-assets/settings-de-BK2nCasN.js",
"sha256": "56624d620da44ce1211944bb8e77c1accc5332c823e95d61c472017d107bf415",
"rawBytes": 8886,
"gzipBytes": 3408,
"gzipBytes": 3410,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/settings-fr-CTDbCfmV.js",
"sha256": "e00be71088032b53b6d81e3a690c5ff178dfbf21745c21e63fc20c1f7c5a82b7",
"path": "houseplan-assets/settings-fr-BzV3jQNV.js",
"sha256": "94c3f3eca96dd5d594cd2fc5472af67c1398deaaf540d6d155fe8dfca1f77a18",
"rawBytes": 9297,
"gzipBytes": 3381,
"gzipBytes": 3386,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/settings-ru-_XLAbOEk.js",
"sha256": "410a961660d4ac60f59f9301d651a98e14617de88af04ea728b7cd819b08630b",
"path": "houseplan-assets/settings-ru-Pwj0ioPD.js",
"sha256": "b62084e882aea2e902d5b3e0d40a7b93d4ad57c8969f6996fa56d39edae79f4b",
"rawBytes": 12284,
"gzipBytes": 3898,
"gzipBytes": 3901,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/space-editor-N5uYQl3H.js",
"sha256": "6382ce5fca7f70735041e35b3db96e3f1e4feeed35abacc46f1311c3a60465db",
"path": "houseplan-assets/space-editor-BW81fsa-.js",
"sha256": "bee9dfedfb0aa86d35d4e40a7851104d1a01a07c60710b2ab22b452b6b6d344d",
"rawBytes": 2619,
"gzipBytes": 1127,
"gzipBytes": 1131,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-editor-CgZXeEXz.js",
"sha256": "ca0343b11e17cb8a871630e11e00a9def2ba99290339abbd79e577f2dd3e3bd6",
"rawBytes": 14867,
"path": "houseplan-assets/summary-panel-editor-gxhahBGm.js",
"sha256": "fff5135fe470d89ea267a8769d7f70d4de4be61f970c21d532fbaf4be4d15742",
"rawBytes": 14862,
"gzipBytes": 3429,
"isEntry": false,
"imports": [
"houseplan-assets/form-kit.styles-Dq1Y4tz1.js",
"houseplan-assets/houseplan-card-CDzf9V5z.js",
"houseplan-assets/summary-panel-runtime-loaded-BcDAIp5L.js"
"houseplan-assets/form-kit.styles-C2rEYmUr.js",
"houseplan-assets/houseplan-card-DpMO8ZtV.js",
"houseplan-assets/summary-panel-runtime-loaded-C7G0wFcw.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-metrics-DpgEBDDi.js",
"sha256": "ffe7025d0d913a2c27825836e263fedec5fd4c6671087654a80a826bf8e9ac63",
"path": "houseplan-assets/summary-panel-metrics-BG6QUcho.js",
"sha256": "d158a444b01527efebb8d8171168eeb27d4bd494185ef6599f180a9b4853e9e1",
"rawBytes": 2701,
"gzipBytes": 1345,
"gzipBytes": 1348,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-runtime-loaded-BcDAIp5L.js",
"sha256": "82d20ca0d38461911e5fc0a9aa44da29fdd680fceaa82927f1044df649698fa2",
"path": "houseplan-assets/summary-panel-runtime-loaded-C7G0wFcw.js",
"sha256": "782cb137530a8818e97dc4e84200e8c8069ac8e9e2c5328ddb7c35abca031afb",
"rawBytes": 73476,
"gzipBytes": 20486,
"gzipBytes": 20488,
"isEntry": false,
"imports": [
"houseplan-assets/form-kit.styles-Dq1Y4tz1.js",
"houseplan-assets/houseplan-card-CDzf9V5z.js"
"houseplan-assets/form-kit.styles-C2rEYmUr.js",
"houseplan-assets/houseplan-card-DpMO8ZtV.js"
],
"dynamicImports": [
"houseplan-assets/summary-panel-editor-CgZXeEXz.js",
"houseplan-assets/summary-panel-metrics-DpgEBDDi.js"
"houseplan-assets/summary-panel-editor-gxhahBGm.js",
"houseplan-assets/summary-panel-metrics-BG6QUcho.js"
]
},
{
"path": "houseplan-assets/support-de-DF73IEHL.js",
"sha256": "8407d526294bc1a2f2a83da0b70bf03c2d28d37daac7b0b2b7c561f32e52ed12",
"path": "houseplan-assets/support-de-CqSy-k8F.js",
"sha256": "4995630849ee44776111132051ad10ee165b1fb3e18eb34a1cdf5c3c429c0a98",
"rawBytes": 6167,
"gzipBytes": 2396,
"gzipBytes": 2400,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/support-fr-BBhMT3I0.js",
"sha256": "59eb34e74a98bac8905fd10e02eecd955a9cf7727685d3a70d8657f739457af0",
"path": "houseplan-assets/support-fr-DRf8BVE_.js",
"sha256": "cb088f305f399c4881a49a2062e620cb2b0b047de05785d1a20bd973ad68decf",
"rawBytes": 6333,
"gzipBytes": 2430,
"gzipBytes": 2435,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/support-ru-Bd7vkOXI.js",
"sha256": "0c32195ce4c911d2fb90831144b44ac7d406f6adc80555210d1e1d1ee1d5dd37",
"path": "houseplan-assets/support-ru-D5IlTrg1.js",
"sha256": "9c6c152476459b7cac2dd1349fb5f2e6b4340e58c9d7542d054e681dc823d468",
"rawBytes": 8376,
"gzipBytes": 2876,
"gzipBytes": 2879,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/tools-de-DwmzTHwi.js",
"sha256": "3d296ea3821fbe12df454c6042745746b9db49090cbfb10afe9ace758c7ccc06",
"path": "houseplan-assets/tools-de-Bp6a3HZ8.js",
"sha256": "ed4f59422b1111665c1e0eb3898c5406a0c1dfe835e81435324875166936d478",
"rawBytes": 4130,
"gzipBytes": 1375,
"gzipBytes": 1377,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/tools-fr-Dp5JXY-G.js",
"sha256": "31b0111901af3654a491997ff9d993ec907a48a90fa193bcc70026ba063e2cf4",
"path": "houseplan-assets/tools-fr-Cm_NF5Bo.js",
"sha256": "dd03e586b67d9f5d2ec1cb2d44ff9946cde837e46867281961ff7e5d10e29b0c",
"rawBytes": 4136,
"gzipBytes": 1358,
"gzipBytes": 1362,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/tools-ru-CAQB2Qhv.js",
"sha256": "c6bf82ded09db3f8238f44d138467839a3483de829d26a7be2e51c42240fcbcb",
"path": "houseplan-assets/tools-ru-BsgA3-Uc.js",
"sha256": "d41747fe9eaed67e080358de7015e8b0016fbf77e0b4570692252aa49ef2e0ae",
"rawBytes": 5633,
"gzipBytes": 1695,
"gzipBytes": 1696,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/topology-de-DFY0lBO-.js",
"sha256": "562f694c384b9e9df72b61f1b4d2ec05f7bc410576e46ea422f1eeab6c1dbd8e",
"rawBytes": 2698,
"gzipBytes": 1337,
"path": "houseplan-assets/topology-de-aLf8xQIB.js",
"sha256": "2cef786825b3dfbffda96e97444a10bd2d3f6816e3665ce61560e37dac66df1a",
"rawBytes": 3000,
"gzipBytes": 1461,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/topology-fr-DbNDk6Er.js",
"sha256": "282a3d6bbd74abb3aa2a675d2b73793a41de1beef18b1e85298919985b6347d6",
"rawBytes": 2718,
"gzipBytes": 1354,
"path": "houseplan-assets/topology-fr-BM-2v3ZO.js",
"sha256": "cd37a2e254a8d31a565baf22f41033fa06d96b673cd0202ae062dfca21fff080",
"rawBytes": 3103,
"gzipBytes": 1477,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/topology-ru-BNVYY-_i.js",
"sha256": "4ce8c7f4383b7724a1b0aff888b57ff1ca8d477df125a3b57f522dea2319ea23",
"rawBytes": 3669,
"gzipBytes": 1614,
"path": "houseplan-assets/topology-ru-DkoU0vIo.js",
"sha256": "20572bd8dacf04c2ef43f82c239211d3ae56e8765a2dba6a08828d4af413dc52",
"rawBytes": 4355,
"gzipBytes": 1800,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-Co7YPeRf.js",
"sha256": "16d9fe1e49fa01d791803f5753c238716e1a3f6da5103c6291c9618f89ac63a0",
"rawBytes": 10958,
"gzipBytes": 4303,
"path": "houseplan-assets/zigbee-topology-DkIGuBlK.js",
"sha256": "209fd9a836af2f7e11a1815ece17fc877857bbf1ee499ffa42a8e4cfb07fd06c",
"rawBytes": 14892,
"gzipBytes": 5625,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js",
"houseplan-assets/namespace-language-BPjMJUHI.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js",
"houseplan-assets/namespace-language-B3Q_Y8Lh.js"
],
"dynamicImports": [
"houseplan-assets/topology-de-DFY0lBO-.js",
"houseplan-assets/topology-fr-DbNDk6Er.js",
"houseplan-assets/topology-ru-BNVYY-_i.js"
"houseplan-assets/topology-de-aLf8xQIB.js",
"houseplan-assets/topology-fr-BM-2v3ZO.js",
"houseplan-assets/topology-ru-DkoU0vIo.js"
]
},
{
"path": "houseplan-assets/zigbee-topology-runtime-ByS3kW9n.js",
"sha256": "64f6de7adc3876b915c7472f31d0ffad421271c48161a29e8390b10d85519e1e",
"rawBytes": 3983,
"gzipBytes": 1790,
"path": "houseplan-assets/zigbee-topology-runtime-26qGCNY5.js",
"sha256": "94387df56afaffbd30a659d5bef73c1631b530340534dd1c129c730416d6145a",
"rawBytes": 4417,
"gzipBytes": 1969,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js",
"houseplan-assets/namespace-language-BPjMJUHI.js",
"houseplan-assets/zigbee-topology-Co7YPeRf.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js",
"houseplan-assets/namespace-language-B3Q_Y8Lh.js",
"houseplan-assets/zigbee-topology-DkIGuBlK.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "b22eafb488fd6cdc7ff797b48887d9c469f0aed1868da22b21ed992fa2187bdc",
"sha256": "bf8c841923d735e536486df6dd45c22f86fc42ffb6999f81ce87a673e0149f09",
"rawBytes": 1205,
"gzipBytes": 803,
"gzipBytes": 805,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js"
],
"dynamicImports": []
},
{
"path": "houseplan-panel.js",
"sha256": "5295cb11c681c7c7f0d97bb4b9d3ab22ee16735463b7af56d6c59a67622a811c",
"sha256": "91a3d932b7f19a2f1f7a5f27bf782c1fe69db930f844c55e8504ca3843a1e97d",
"rawBytes": 6165,
"gzipBytes": 2324,
"gzipBytes": 2329,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-CDzf9V5z.js"
"houseplan-assets/houseplan-card-DpMO8ZtV.js"
],
"dynamicImports": []
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,14 +1,14 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="fd4a405e9c5a21035258c45feca26dca03d59d4cfba4280f89ff5f82675515ac";import{aG as e,l as o,aJ as t,eD as s,A as a,eE as i,eF as l,eG as n,E as r,c}from"./houseplan-card-CDzf9V5z.js";class f extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,f={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},h=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="1d4220f7b40b863e575b7e27453db793fba7b358b97a6e20415d43d515b6166f";import{aG as e,l as o,aJ as t,eE as s,A as a,eF as i,eG as l,eH as n,E as r,c}from"./houseplan-card-DpMO8ZtV.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
.hass=${this.hass}
.data=${this._formData}
.schema=${e}
.computeLabel=${e=>f[e.name]||e.name}
.computeLabel=${e=>h[e.name]||e.name}
@value-changed=${this._valueChanged}
></ha-form>`;return c`
${d(h.slice(0,3))}
${d(f.slice(0,3))}
${_?c`<div class="default-floor-error" role="alert"
style="color:var(--error-color,#db4437);margin:-4px 0 12px;overflow-wrap:anywhere">
${t(s,"editor.default_floor_missing",{id:_})}
</div>`:a}
${d(h.slice(3))}
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}f.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",f);
${d(f.slice(3))}
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}h.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",h);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More