Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
90e8ea4685 | ||
|
|
ee351dcb84 | ||
|
|
2b841d94e4 | ||
|
|
c175a2ab1a | ||
|
|
020739ebca | ||
|
|
ffdd69e277 | ||
|
|
319ee70010 | ||
|
|
5c893c7ff3 | ||
|
|
077e9c1b1b | ||
|
|
0471482c2e | ||
|
|
db887cd7f0 | ||
|
|
7feda5b6c8 | ||
|
|
285a6dc436 | ||
|
|
52876b0573 | ||
|
|
cdfe02e64d | ||
|
|
07c885435a | ||
|
|
67af859e8c | ||
|
|
4a7abf531b | ||
|
|
379de706d2 | ||
|
|
1faed2af7d | ||
|
|
343449e694 | ||
|
|
9722153e01 | ||
|
|
0f77b921f6 | ||
|
|
e69b3f2009 | ||
|
|
7341ecf9c5 | ||
|
|
fd406acea2 | ||
|
|
33022ff946 | ||
|
|
55ac10be3c | ||
|
|
22828495bb | ||
|
|
370c082f31 | ||
|
|
0d64547643 | ||
|
|
2ac221d28b | ||
|
|
d19bac3966 | ||
|
|
aef02229c6 | ||
|
|
865312e0b0 | ||
|
|
841bad4e79 | ||
|
|
9ebc430983 | ||
|
|
0a098c1e51 | ||
|
|
cf1c90fb5b | ||
|
|
7fb20c658b | ||
|
|
05c8e164c2 | ||
|
|
9deb1dcfd6 | ||
|
|
a5e06b0527 | ||
|
|
14f5b90c24 | ||
|
|
4de49e0db2 | ||
|
|
80cba30895 | ||
|
|
96f89717bd | ||
|
|
d8949cfffc | ||
|
|
7777b8a0a8 | ||
|
|
45aeadb38e | ||
|
|
b07ef67dcb | ||
|
|
d58a5d0dad | ||
|
|
181b61ae8e | ||
|
|
24e48935c3 | ||
|
|
6b0d7d66dd | ||
|
|
2022e183a5 |
@@ -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 }} \
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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` при
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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.7"
|
||||
VERSION = "1.80.0-beta.4"
|
||||
DECOR_ASSETS_API_VERSION = 1
|
||||
SUMMARY_PANEL_API_VERSION = 1
|
||||
|
||||
|
||||
@@ -1,598 +1,626 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"fingerprint": "f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47",
|
||||
"fingerprint": "06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698",
|
||||
"entry": "houseplan-card.js",
|
||||
"panelEntry": "houseplan-panel.js",
|
||||
"initialViewFiles": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js",
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"houseplan-card.js"
|
||||
],
|
||||
"initialViewGzipBytes": 300133,
|
||||
"initialViewGzipBytes": 301044,
|
||||
"initialPanelFiles": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js",
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelGzipBytes": 301657,
|
||||
"initialPanelGzipBytes": 302566,
|
||||
"initialPanelOnlyFiles": [
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelOnlyGzipBytes": 2327,
|
||||
"initialPanelOnlyGzipBytes": 2326,
|
||||
"lazyFiles": [
|
||||
"houseplan-assets/backdrop-pick-CZVGAeU-.js",
|
||||
"houseplan-assets/de-OdAXBAeQ.js",
|
||||
"houseplan-assets/editor-CwGhln6q.js",
|
||||
"houseplan-assets/form-kit.styles-CeNtVtY3.js",
|
||||
"houseplan-assets/fr-Biv7-u6n.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BAcdlNmw.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-CG4OcOnH.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-Cercm8ch.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-ngF800eZ.js",
|
||||
"houseplan-assets/iso-scene-render-Dz6TjBBK.js",
|
||||
"houseplan-assets/led-strip-editor-CYr90qWm.js",
|
||||
"houseplan-assets/led-strip-geometry-BmYmi_Wl.js",
|
||||
"houseplan-assets/led-strip-runtime-BFC6kyfR.js",
|
||||
"houseplan-assets/live-interaction-runtime-DOdg_Aoz.js",
|
||||
"houseplan-assets/moon-runtime-CKujBO8X.js",
|
||||
"houseplan-assets/namespace-language-Cx9fDV_P.js",
|
||||
"houseplan-assets/pdf-export-Ck6Q7DhV.js",
|
||||
"houseplan-assets/space-editor-fFzB1fav.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-DodMV5zo.js",
|
||||
"houseplan-assets/zigbee-topology-FegR1hpF.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-B5WvzSzW.js"
|
||||
"houseplan-assets/backdrop-pick-BlKYl_U7.js",
|
||||
"houseplan-assets/de-7Zku19fP.js",
|
||||
"houseplan-assets/editor-CmIdArPY.js",
|
||||
"houseplan-assets/floating-surface-pyD_i_Ly.js",
|
||||
"houseplan-assets/form-kit.styles-DNNRm1qV.js",
|
||||
"houseplan-assets/fr-CmN_ktKN.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-D2WZwvLw.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-2dyTGznE.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-D3GuUom3.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-TWYzHq8F.js",
|
||||
"houseplan-assets/iso-scene-render-3D4T2rIf.js",
|
||||
"houseplan-assets/led-strip-editor-BV28Sv6H.js",
|
||||
"houseplan-assets/led-strip-geometry-DCOEb7ps.js",
|
||||
"houseplan-assets/led-strip-runtime-C3jpBGK_.js",
|
||||
"houseplan-assets/live-interaction-runtime-BI3F6BM_.js",
|
||||
"houseplan-assets/live-tip-placement-DJeWazgc.js",
|
||||
"houseplan-assets/moon-runtime-BOGkZE2h.js",
|
||||
"houseplan-assets/namespace-language-COmALraj.js",
|
||||
"houseplan-assets/pdf-export-C6l2UAvp.js",
|
||||
"houseplan-assets/space-editor-BItHjX5t.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-l2frpvJL.js",
|
||||
"houseplan-assets/zigbee-topology-DtQtLxJ3.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-9_MBQQpH.js"
|
||||
],
|
||||
"lazyGzipBytes": 478823,
|
||||
"lazyGzipBytes": 485800,
|
||||
"lazyEditorFiles": [
|
||||
"houseplan-assets/backdrop-pick-CZVGAeU-.js",
|
||||
"houseplan-assets/editor-CwGhln6q.js",
|
||||
"houseplan-assets/form-kit.styles-CeNtVtY3.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BAcdlNmw.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-CG4OcOnH.js",
|
||||
"houseplan-assets/namespace-language-Cx9fDV_P.js",
|
||||
"houseplan-assets/zigbee-topology-FegR1hpF.js"
|
||||
"houseplan-assets/backdrop-pick-BlKYl_U7.js",
|
||||
"houseplan-assets/editor-CmIdArPY.js",
|
||||
"houseplan-assets/floating-surface-pyD_i_Ly.js",
|
||||
"houseplan-assets/form-kit.styles-DNNRm1qV.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-D2WZwvLw.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-2dyTGznE.js",
|
||||
"houseplan-assets/namespace-language-COmALraj.js",
|
||||
"houseplan-assets/zigbee-topology-DtQtLxJ3.js"
|
||||
],
|
||||
"lazyEditorGzipBytes": 240857,
|
||||
"lazyEditorGzipBytes": 243791,
|
||||
"lazyOnboardingFiles": [
|
||||
"houseplan-assets/backdrop-pick-CZVGAeU-.js",
|
||||
"houseplan-assets/form-kit.styles-CeNtVtY3.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-Cercm8ch.js",
|
||||
"houseplan-assets/namespace-language-Cx9fDV_P.js"
|
||||
"houseplan-assets/backdrop-pick-BlKYl_U7.js",
|
||||
"houseplan-assets/floating-surface-pyD_i_Ly.js",
|
||||
"houseplan-assets/form-kit.styles-DNNRm1qV.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-D3GuUom3.js",
|
||||
"houseplan-assets/namespace-language-COmALraj.js"
|
||||
],
|
||||
"lazyOnboardingGzipBytes": 28406,
|
||||
"lazyOnboardingGzipBytes": 28672,
|
||||
"lazyLocaleFiles": [
|
||||
"houseplan-assets/de-OdAXBAeQ.js",
|
||||
"houseplan-assets/fr-Biv7-u6n.js"
|
||||
"houseplan-assets/de-7Zku19fP.js",
|
||||
"houseplan-assets/fr-CmN_ktKN.js"
|
||||
],
|
||||
"lazyLocaleGzipBytes": 53864,
|
||||
"lazyLocaleGzipBytes": 53862,
|
||||
"lazyIsometricFiles": [
|
||||
"houseplan-assets/iso-scene-render-Dz6TjBBK.js"
|
||||
"houseplan-assets/iso-scene-render-3D4T2rIf.js"
|
||||
],
|
||||
"lazyIsometricGzipBytes": 12349,
|
||||
"lazyIsometricGzipBytes": 12347,
|
||||
"lazyFurnitureArtFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-BAcdlNmw.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-D2WZwvLw.js"
|
||||
],
|
||||
"lazyFurnitureArtGzipBytes": 16940,
|
||||
"lazyFurnitureArtGzipBytes": 16939,
|
||||
"lazyPdfFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-BAcdlNmw.js",
|
||||
"houseplan-assets/pdf-export-Ck6Q7DhV.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-D2WZwvLw.js",
|
||||
"houseplan-assets/pdf-export-C6l2UAvp.js"
|
||||
],
|
||||
"lazyPdfGzipBytes": 126938,
|
||||
"lazyPdfGzipBytes": 126936,
|
||||
"lazyMoonFiles": [
|
||||
"houseplan-assets/moon-runtime-CKujBO8X.js"
|
||||
"houseplan-assets/moon-runtime-BOGkZE2h.js"
|
||||
],
|
||||
"lazyMoonGzipBytes": 11715,
|
||||
"lazyLedFiles": [
|
||||
"houseplan-assets/led-strip-field-C-QXfKME.js",
|
||||
"houseplan-assets/led-strip-geometry-BmYmi_Wl.js",
|
||||
"houseplan-assets/led-strip-runtime-BFC6kyfR.js"
|
||||
"houseplan-assets/led-strip-field-aqwdQqPw.js",
|
||||
"houseplan-assets/led-strip-geometry-DCOEb7ps.js",
|
||||
"houseplan-assets/led-strip-runtime-C3jpBGK_.js"
|
||||
],
|
||||
"lazyLedGzipBytes": 10608,
|
||||
"lazyLedGzipBytes": 10686,
|
||||
"lazyLedEditorFiles": [
|
||||
"houseplan-assets/led-strip-editor-CYr90qWm.js",
|
||||
"houseplan-assets/led-strip-geometry-BmYmi_Wl.js",
|
||||
"houseplan-assets/namespace-language-Cx9fDV_P.js"
|
||||
"houseplan-assets/led-strip-editor-BV28Sv6H.js",
|
||||
"houseplan-assets/led-strip-geometry-DCOEb7ps.js",
|
||||
"houseplan-assets/namespace-language-COmALraj.js"
|
||||
],
|
||||
"lazyLedEditorGzipBytes": 10707,
|
||||
"lazyLedEditorGzipBytes": 10704,
|
||||
"lazyNamespaceLocaleFiles": [
|
||||
"houseplan-assets/led-de-Cyc5JSYX.js",
|
||||
"houseplan-assets/led-fr-D35czkVh.js",
|
||||
"houseplan-assets/led-ru-3UT1uLJM.js",
|
||||
"houseplan-assets/settings-de-DduqUD8A.js",
|
||||
"houseplan-assets/settings-fr-dGkZH4QA.js",
|
||||
"houseplan-assets/settings-ru-DlTTeZSD.js",
|
||||
"houseplan-assets/support-de-B1x5MhBx.js",
|
||||
"houseplan-assets/support-fr-BBk5swZV.js",
|
||||
"houseplan-assets/support-ru-BryxAsau.js",
|
||||
"houseplan-assets/tools-de-BdHNnR7q.js",
|
||||
"houseplan-assets/tools-fr-4AvnrKW4.js",
|
||||
"houseplan-assets/tools-ru-DkRXe0vq.js",
|
||||
"houseplan-assets/topology-de-j5awVHUt.js",
|
||||
"houseplan-assets/topology-fr-BNvn6hS_.js",
|
||||
"houseplan-assets/topology-ru-CLr3lSHb.js"
|
||||
"houseplan-assets/led-de-DrXCZ2sy.js",
|
||||
"houseplan-assets/led-fr-Dpe8-hj5.js",
|
||||
"houseplan-assets/led-ru-Bn4KLybY.js",
|
||||
"houseplan-assets/settings-de-NUJhD35v.js",
|
||||
"houseplan-assets/settings-fr-BxWFQjqM.js",
|
||||
"houseplan-assets/settings-ru-DxtPqpRy.js",
|
||||
"houseplan-assets/support-de-B189S_5G.js",
|
||||
"houseplan-assets/support-fr-BO-hSBLk.js",
|
||||
"houseplan-assets/support-ru-DslL3KcH.js",
|
||||
"houseplan-assets/tools-de-DaCueVOA.js",
|
||||
"houseplan-assets/tools-fr-rOKrLY3t.js",
|
||||
"houseplan-assets/tools-ru-qWSdpJow.js",
|
||||
"houseplan-assets/topology-de-wNwfkZjf.js",
|
||||
"houseplan-assets/topology-fr-D9pmNHVr.js",
|
||||
"houseplan-assets/topology-ru-D6m0B05V.js"
|
||||
],
|
||||
"lazyNamespaceLocaleGzipBytes": 30067,
|
||||
"lazyNamespaceLocaleGzipBytes": 31734,
|
||||
"files": [
|
||||
{
|
||||
"path": "houseplan-assets/backdrop-pick-CZVGAeU-.js",
|
||||
"sha256": "8ba250c89f76f99a0f570d17ffed41bc5784598a3aff36f2e90e9d9d9b57d176",
|
||||
"rawBytes": 55329,
|
||||
"gzipBytes": 18027,
|
||||
"path": "houseplan-assets/backdrop-pick-BlKYl_U7.js",
|
||||
"sha256": "6b955d4d79600a2ea568047ed158afc056fdafda5d5fea3fa6b6d3f4c7e336fc",
|
||||
"rawBytes": 54425,
|
||||
"gzipBytes": 17699,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/form-kit.styles-CeNtVtY3.js",
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js",
|
||||
"houseplan-assets/namespace-language-Cx9fDV_P.js"
|
||||
"houseplan-assets/floating-surface-pyD_i_Ly.js",
|
||||
"houseplan-assets/form-kit.styles-DNNRm1qV.js",
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"houseplan-assets/namespace-language-COmALraj.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/settings-de-DduqUD8A.js",
|
||||
"houseplan-assets/settings-fr-dGkZH4QA.js",
|
||||
"houseplan-assets/settings-ru-DlTTeZSD.js"
|
||||
"houseplan-assets/settings-de-NUJhD35v.js",
|
||||
"houseplan-assets/settings-fr-BxWFQjqM.js",
|
||||
"houseplan-assets/settings-ru-DxtPqpRy.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/de-OdAXBAeQ.js",
|
||||
"sha256": "99c051943b522a553faa2437dbf7fe403a6f680125231b6a4555cd3382a7bdab",
|
||||
"path": "houseplan-assets/de-7Zku19fP.js",
|
||||
"sha256": "fc6989b8d40ada5fa07cc3e7e96b7869e1ce1b8518dbd75319ffbfef2c241db4",
|
||||
"rawBytes": 89873,
|
||||
"gzipBytes": 27164,
|
||||
"gzipBytes": 27163,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/editor-CwGhln6q.js",
|
||||
"sha256": "0a6e4095edddd9a3d4ad4d724e3029ac05b019f97f3ac6da382de4f36fb1f08a",
|
||||
"path": "houseplan-assets/editor-CmIdArPY.js",
|
||||
"sha256": "f0ddb6c0402f2a4cd7160f5cf06bf424f57bc831031e95d8defa4310c0149b44",
|
||||
"rawBytes": 3833,
|
||||
"gzipBytes": 1583,
|
||||
"gzipBytes": 1585,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js"
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/form-kit.styles-CeNtVtY3.js",
|
||||
"sha256": "30b67a478f01106f27a2200f2702c3978d69c7d91d03c8269bf0c23e3abaefdb",
|
||||
"path": "houseplan-assets/floating-surface-pyD_i_Ly.js",
|
||||
"sha256": "036f5149e71d886f8707d7b8a6335a4222e564ea5b260d5cfda5e2e13729c040",
|
||||
"rawBytes": 1104,
|
||||
"gzipBytes": 578,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/form-kit.styles-DNNRm1qV.js",
|
||||
"sha256": "6dd7fe7e624218dfe80e0c02df0a555f509b6bee7c8855f644ced209682a4e46",
|
||||
"rawBytes": 25605,
|
||||
"gzipBytes": 5060,
|
||||
"gzipBytes": 5058,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/fr-Biv7-u6n.js",
|
||||
"sha256": "edf1a8c8ade07fc524f55f0cc05b0360bc3f83615fdb4b538290c0f95fe49e67",
|
||||
"path": "houseplan-assets/fr-CmN_ktKN.js",
|
||||
"sha256": "00270b63c9403ccc23c216d1f12c55d3f552db97afc001892e3bf7c914737c4a",
|
||||
"rawBytes": 92266,
|
||||
"gzipBytes": 26700,
|
||||
"gzipBytes": 26699,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-BAcdlNmw.js",
|
||||
"sha256": "f43a8912c4ff8c0d32b11528a532f2ef813619a7524f476aaa3847b163b7b15a",
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-D2WZwvLw.js",
|
||||
"sha256": "2b7ab5e089eb0d16b27f3963e56a7cb60693f4462594fe88e6cb430dc9eaec31",
|
||||
"rawBytes": 52035,
|
||||
"gzipBytes": 16940,
|
||||
"gzipBytes": 16939,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-card-jTmPF7EN.js",
|
||||
"sha256": "608a92c0cf104af3990a1821725aab9983db2915aefc040c0f30b249f2e12f2d",
|
||||
"rawBytes": 1056412,
|
||||
"gzipBytes": 299330,
|
||||
"path": "houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"sha256": "3b1c90b7c98aa0e02bbeff529e4434a216b1a3a071f0da2d2a610800e0ecf1c6",
|
||||
"rawBytes": 1059200,
|
||||
"gzipBytes": 300240,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/de-OdAXBAeQ.js",
|
||||
"houseplan-assets/editor-CwGhln6q.js",
|
||||
"houseplan-assets/fr-Biv7-u6n.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BAcdlNmw.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-CG4OcOnH.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-Cercm8ch.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-ngF800eZ.js",
|
||||
"houseplan-assets/iso-scene-render-Dz6TjBBK.js",
|
||||
"houseplan-assets/led-strip-editor-CYr90qWm.js",
|
||||
"houseplan-assets/led-strip-runtime-BFC6kyfR.js",
|
||||
"houseplan-assets/live-interaction-runtime-DOdg_Aoz.js",
|
||||
"houseplan-assets/moon-runtime-CKujBO8X.js",
|
||||
"houseplan-assets/pdf-export-Ck6Q7DhV.js",
|
||||
"houseplan-assets/space-editor-fFzB1fav.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-DodMV5zo.js"
|
||||
"houseplan-assets/de-7Zku19fP.js",
|
||||
"houseplan-assets/editor-CmIdArPY.js",
|
||||
"houseplan-assets/fr-CmN_ktKN.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-D2WZwvLw.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-2dyTGznE.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-D3GuUom3.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-TWYzHq8F.js",
|
||||
"houseplan-assets/iso-scene-render-3D4T2rIf.js",
|
||||
"houseplan-assets/led-strip-editor-BV28Sv6H.js",
|
||||
"houseplan-assets/led-strip-runtime-C3jpBGK_.js",
|
||||
"houseplan-assets/live-interaction-runtime-BI3F6BM_.js",
|
||||
"houseplan-assets/moon-runtime-BOGkZE2h.js",
|
||||
"houseplan-assets/pdf-export-C6l2UAvp.js",
|
||||
"houseplan-assets/space-editor-BItHjX5t.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-l2frpvJL.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-CG4OcOnH.js",
|
||||
"sha256": "668d7a9ce6b17ce2434919ae7d80b57d41b31ae7b92c332c3ab3acc810910191",
|
||||
"rawBytes": 695360,
|
||||
"gzipBytes": 194536,
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-2dyTGznE.js",
|
||||
"sha256": "7e71fabc225c825694c7f1dca1ab89859ae7d1f8481f62a01d11d971b5486a86",
|
||||
"rawBytes": 698926,
|
||||
"gzipBytes": 195573,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-CZVGAeU-.js",
|
||||
"houseplan-assets/form-kit.styles-CeNtVtY3.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BAcdlNmw.js",
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js",
|
||||
"houseplan-assets/namespace-language-Cx9fDV_P.js",
|
||||
"houseplan-assets/zigbee-topology-FegR1hpF.js"
|
||||
"houseplan-assets/backdrop-pick-BlKYl_U7.js",
|
||||
"houseplan-assets/floating-surface-pyD_i_Ly.js",
|
||||
"houseplan-assets/form-kit.styles-DNNRm1qV.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-D2WZwvLw.js",
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"houseplan-assets/namespace-language-COmALraj.js",
|
||||
"houseplan-assets/zigbee-topology-DtQtLxJ3.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/support-de-B1x5MhBx.js",
|
||||
"houseplan-assets/support-fr-BBk5swZV.js",
|
||||
"houseplan-assets/support-ru-BryxAsau.js",
|
||||
"houseplan-assets/tools-de-BdHNnR7q.js",
|
||||
"houseplan-assets/tools-fr-4AvnrKW4.js",
|
||||
"houseplan-assets/tools-ru-DkRXe0vq.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-B5WvzSzW.js"
|
||||
"houseplan-assets/support-de-B189S_5G.js",
|
||||
"houseplan-assets/support-fr-BO-hSBLk.js",
|
||||
"houseplan-assets/support-ru-DslL3KcH.js",
|
||||
"houseplan-assets/tools-de-DaCueVOA.js",
|
||||
"houseplan-assets/tools-fr-rOKrLY3t.js",
|
||||
"houseplan-assets/tools-ru-qWSdpJow.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-9_MBQQpH.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-Cercm8ch.js",
|
||||
"sha256": "4929b3040b3430a7325c9fabf42ae799b8b6f50b4a56f7de229b29b432a3f212",
|
||||
"rawBytes": 15886,
|
||||
"gzipBytes": 4909,
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-D3GuUom3.js",
|
||||
"sha256": "d77f02c0917154f5c1fefc63ad7445b6260fbbd3ec2ac4738e22777c75dc5bf9",
|
||||
"rawBytes": 15930,
|
||||
"gzipBytes": 4930,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-CZVGAeU-.js",
|
||||
"houseplan-assets/form-kit.styles-CeNtVtY3.js",
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js",
|
||||
"houseplan-assets/namespace-language-Cx9fDV_P.js"
|
||||
"houseplan-assets/backdrop-pick-BlKYl_U7.js",
|
||||
"houseplan-assets/floating-surface-pyD_i_Ly.js",
|
||||
"houseplan-assets/form-kit.styles-DNNRm1qV.js",
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"houseplan-assets/namespace-language-COmALraj.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-ngF800eZ.js",
|
||||
"sha256": "6740199c84bf1358848f8674f693d624ef60e7273565b8f7dfdc63ab54a5cfad",
|
||||
"rawBytes": 10958,
|
||||
"gzipBytes": 3768,
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-TWYzHq8F.js",
|
||||
"sha256": "9f9a41dc101f986e5579580b487fa443763ae84b983e7002557feb1d87477997",
|
||||
"rawBytes": 16715,
|
||||
"gzipBytes": 5524,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js",
|
||||
"houseplan-assets/namespace-language-Cx9fDV_P.js",
|
||||
"houseplan-assets/zigbee-topology-FegR1hpF.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-B5WvzSzW.js"
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"houseplan-assets/live-tip-placement-DJeWazgc.js",
|
||||
"houseplan-assets/namespace-language-COmALraj.js",
|
||||
"houseplan-assets/zigbee-topology-DtQtLxJ3.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-9_MBQQpH.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/iso-scene-render-Dz6TjBBK.js",
|
||||
"sha256": "5e089c12ef5f23f0cc4955adbeda549d4b6148fa1185dec73499e3f28c16cd8f",
|
||||
"path": "houseplan-assets/iso-scene-render-3D4T2rIf.js",
|
||||
"sha256": "b9afcc206e4008d23d18a588a43bb05b4929f51fcbe4d19411cacf09dd13c2d3",
|
||||
"rawBytes": 36700,
|
||||
"gzipBytes": 12349,
|
||||
"gzipBytes": 12347,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js"
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/led-de-Cyc5JSYX.js",
|
||||
"sha256": "3798fe1e504d559516bca4ea9dfa43e256c40cae7a7fa8c9cf95e790c492a717",
|
||||
"path": "houseplan-assets/led-de-DrXCZ2sy.js",
|
||||
"sha256": "6c289c749204ef31d1404170038deda2503fc2bcac407ad00cf9b3143feeb660",
|
||||
"rawBytes": 1907,
|
||||
"gzipBytes": 920,
|
||||
"gzipBytes": 919,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/led-fr-D35czkVh.js",
|
||||
"sha256": "3c529fdecc7487819c43a3fa661f3093db6f01ff2634c93f891eb947736e16dc",
|
||||
"path": "houseplan-assets/led-fr-Dpe8-hj5.js",
|
||||
"sha256": "97410cb19c4d915f7e74b0d7fe30a3c5560ff07cba6de06daf32731c852415eb",
|
||||
"rawBytes": 1886,
|
||||
"gzipBytes": 905,
|
||||
"gzipBytes": 903,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/led-ru-3UT1uLJM.js",
|
||||
"sha256": "e969269aae76f25bc9eac8652465e59b589c070c495bc98f8750f03a3cda63be",
|
||||
"path": "houseplan-assets/led-ru-Bn4KLybY.js",
|
||||
"sha256": "bef109c08ac7fdce7e9c7046bd699a524d6645ea1548e98c89cbb0e25e7867a0",
|
||||
"rawBytes": 2525,
|
||||
"gzipBytes": 1106,
|
||||
"gzipBytes": 1104,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/led-strip-editor-CYr90qWm.js",
|
||||
"sha256": "04367f8873c25d58df3218bc7a3effb07b3fe5e6e0c237696e063473b371715a",
|
||||
"path": "houseplan-assets/led-strip-editor-BV28Sv6H.js",
|
||||
"sha256": "3c57d810c1248e97f41e10cd54bf688c4954ec9fd63f323d8dc464bd21179889",
|
||||
"rawBytes": 21704,
|
||||
"gzipBytes": 7383,
|
||||
"gzipBytes": 7380,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js",
|
||||
"houseplan-assets/led-strip-geometry-BmYmi_Wl.js",
|
||||
"houseplan-assets/namespace-language-Cx9fDV_P.js"
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"houseplan-assets/led-strip-geometry-DCOEb7ps.js",
|
||||
"houseplan-assets/namespace-language-COmALraj.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/led-de-Cyc5JSYX.js",
|
||||
"houseplan-assets/led-fr-D35czkVh.js",
|
||||
"houseplan-assets/led-ru-3UT1uLJM.js"
|
||||
"houseplan-assets/led-de-DrXCZ2sy.js",
|
||||
"houseplan-assets/led-fr-Dpe8-hj5.js",
|
||||
"houseplan-assets/led-ru-Bn4KLybY.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/led-strip-field-C-QXfKME.js",
|
||||
"sha256": "bffa7b3933838eb4b59c5346055fc7e6b6ba52dc6abc1e744715c2887d29b03e",
|
||||
"rawBytes": 7915,
|
||||
"gzipBytes": 3317,
|
||||
"path": "houseplan-assets/led-strip-field-aqwdQqPw.js",
|
||||
"sha256": "edc05f9c9778f7bf784797dbdc538109a6e5a2da131ca222b37b5716d3eb6f45",
|
||||
"rawBytes": 8066,
|
||||
"gzipBytes": 3380,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js",
|
||||
"houseplan-assets/led-strip-geometry-BmYmi_Wl.js"
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"houseplan-assets/led-strip-geometry-DCOEb7ps.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/led-strip-geometry-BmYmi_Wl.js",
|
||||
"sha256": "306d5ce23240d4fbf752d15d54912540937bcd90633d44acf1232c8a99e45172",
|
||||
"path": "houseplan-assets/led-strip-geometry-DCOEb7ps.js",
|
||||
"sha256": "6ea10abf3d2ebba4e2ad88b8b7c8bd9b1448f8d425ac2a509efe5837acf66ec3",
|
||||
"rawBytes": 7055,
|
||||
"gzipBytes": 2914,
|
||||
"gzipBytes": 2917,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/led-strip-runtime-BFC6kyfR.js",
|
||||
"sha256": "29cc93e49fbffb853664bb1e1c1d0ffb7e32fb6b9bc3a301e61a1990ed1e8c3c",
|
||||
"rawBytes": 11179,
|
||||
"gzipBytes": 4377,
|
||||
"path": "houseplan-assets/led-strip-runtime-C3jpBGK_.js",
|
||||
"sha256": "8098a7c8724a4af566e58019e69d99950b29ad43575b31ad0f87afca3a430b8d",
|
||||
"rawBytes": 11248,
|
||||
"gzipBytes": 4389,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js",
|
||||
"houseplan-assets/led-strip-geometry-BmYmi_Wl.js"
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"houseplan-assets/led-strip-geometry-DCOEb7ps.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/led-strip-field-C-QXfKME.js"
|
||||
"houseplan-assets/led-strip-field-aqwdQqPw.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/live-interaction-runtime-DOdg_Aoz.js",
|
||||
"sha256": "1f59d0fec3ef47363b16bd1806e0b43e0bbdb3467c8e711666047bd400367224",
|
||||
"rawBytes": 8370,
|
||||
"gzipBytes": 3281,
|
||||
"path": "houseplan-assets/live-interaction-runtime-BI3F6BM_.js",
|
||||
"sha256": "0b61352b8dc2a78900f6a3029b65dba6d0ea07c1ede08db1ffa05426a31ad5ee",
|
||||
"rawBytes": 9686,
|
||||
"gzipBytes": 3774,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js"
|
||||
"houseplan-assets/floating-surface-pyD_i_Ly.js",
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"houseplan-assets/live-tip-placement-DJeWazgc.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/moon-runtime-CKujBO8X.js",
|
||||
"sha256": "ff9784e9e755dae0f53b6676105aadfbe0a18cc00eda6c4de5dae7a0a721f595",
|
||||
"path": "houseplan-assets/live-tip-placement-DJeWazgc.js",
|
||||
"sha256": "307cc62e611a50e98ce322d26236f00b9a39e212018e81ce7b4a8d3ee1c0edab",
|
||||
"rawBytes": 1191,
|
||||
"gzipBytes": 681,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/moon-runtime-BOGkZE2h.js",
|
||||
"sha256": "2d8e1065f280249d2ef767708272932876d8d3416ea39a9b6735c53477c32307",
|
||||
"rawBytes": 30292,
|
||||
"gzipBytes": 11715,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js"
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/namespace-language-Cx9fDV_P.js",
|
||||
"sha256": "c494abeb11e1ae3f8b23403722bf41f4734a6b6fe4bb360e8346070cf61ac6f0",
|
||||
"rawBytes": 675,
|
||||
"gzipBytes": 410,
|
||||
"path": "houseplan-assets/namespace-language-COmALraj.js",
|
||||
"sha256": "24db675a12ac3f446b676bc47e897b9c370a021c3b5226a9858b1c4207e39166",
|
||||
"rawBytes": 670,
|
||||
"gzipBytes": 407,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js"
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/pdf-export-Ck6Q7DhV.js",
|
||||
"sha256": "387f3c47e00e0bb1803bb5c1d6ea973ccda1fe4ca82dd25ad173aacb8bd0abea",
|
||||
"path": "houseplan-assets/pdf-export-C6l2UAvp.js",
|
||||
"sha256": "b575454475fc1df4c064a32d298405c456a4556269dbcb6acbd348c73f5c9e08",
|
||||
"rawBytes": 236714,
|
||||
"gzipBytes": 109998,
|
||||
"gzipBytes": 109997,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/furniture-plan-art.generated-BAcdlNmw.js",
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-D2WZwvLw.js",
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/settings-de-DduqUD8A.js",
|
||||
"sha256": "90e33d1d7801b4b8316480bcf0759e8a64ae01a84f10f7bf113f60670a4c7b94",
|
||||
"path": "houseplan-assets/settings-de-NUJhD35v.js",
|
||||
"sha256": "ef301ab4e061002a69c0b56235b4a72bad553e95191067c76b2e290443dd53e8",
|
||||
"rawBytes": 8886,
|
||||
"gzipBytes": 3409,
|
||||
"gzipBytes": 3407,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/settings-fr-dGkZH4QA.js",
|
||||
"sha256": "39f31dba628c1e6918a0158d7ebfacd5161fc728a9b8227a8c8cfbb41f74f67c",
|
||||
"path": "houseplan-assets/settings-fr-BxWFQjqM.js",
|
||||
"sha256": "5b6e67388b6ec9dcae763d6e6f00c68ced961f71159c132606d51eabddc27800",
|
||||
"rawBytes": 9297,
|
||||
"gzipBytes": 3383,
|
||||
"gzipBytes": 3381,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/settings-ru-DlTTeZSD.js",
|
||||
"sha256": "0cc453eb1de203871336bc1c6afa4f9ae89ba869f0cfc7c2bacfc55edbd52e95",
|
||||
"path": "houseplan-assets/settings-ru-DxtPqpRy.js",
|
||||
"sha256": "c3bfb770748ae6ea309042c1308d8e0a3cd3e5a659eb0a9c9a1e322af273074b",
|
||||
"rawBytes": 12284,
|
||||
"gzipBytes": 3899,
|
||||
"gzipBytes": 3897,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/space-editor-fFzB1fav.js",
|
||||
"sha256": "b170c0e5fc2303c12a59019d5f1ab2cbc4196534ec59c318de11110c50cf1c0e",
|
||||
"path": "houseplan-assets/space-editor-BItHjX5t.js",
|
||||
"sha256": "e2afb8f0c686d2639641a5986b0b0777ba8a866484be820421dcc98d9b59c989",
|
||||
"rawBytes": 2619,
|
||||
"gzipBytes": 1128,
|
||||
"gzipBytes": 1129,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js"
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-editor-CMYQ3VTf.js",
|
||||
"sha256": "317f66330b81b669c5f821178f0e144349ead1529791eb1842707221da1c2d1b",
|
||||
"rawBytes": 14867,
|
||||
"gzipBytes": 3428,
|
||||
"path": "houseplan-assets/summary-panel-editor-D8zcin5K.js",
|
||||
"sha256": "4544e4f4536440df602849a85577ca64615000d867eb8721f9d3b9773f81887a",
|
||||
"rawBytes": 14862,
|
||||
"gzipBytes": 3426,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/form-kit.styles-CeNtVtY3.js",
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-DodMV5zo.js"
|
||||
"houseplan-assets/form-kit.styles-DNNRm1qV.js",
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-l2frpvJL.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-metrics-DNxFqlCo.js",
|
||||
"sha256": "3a12d843b8e3764257f515a11ec31b51307fa9346ccad99505f6a6ef560be1f7",
|
||||
"path": "houseplan-assets/summary-panel-metrics-DMn7iDbG.js",
|
||||
"sha256": "10dc343eb95eee0d6d09fbf936e7771314d8a14f76eadea7dbc5d8fb80caf688",
|
||||
"rawBytes": 2701,
|
||||
"gzipBytes": 1346,
|
||||
"gzipBytes": 1345,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js"
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-DodMV5zo.js",
|
||||
"sha256": "ee328d2319f9113e51037b87ecfabb23140dd261a0a9172b04066bf5960c3565",
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-l2frpvJL.js",
|
||||
"sha256": "ea892ff2a96524e2bda9592343fb5896211ab67cd4cff4b6168464e9f753fac2",
|
||||
"rawBytes": 73476,
|
||||
"gzipBytes": 20490,
|
||||
"gzipBytes": 20487,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/form-kit.styles-CeNtVtY3.js",
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js"
|
||||
"houseplan-assets/form-kit.styles-DNNRm1qV.js",
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/summary-panel-editor-CMYQ3VTf.js",
|
||||
"houseplan-assets/summary-panel-metrics-DNxFqlCo.js"
|
||||
"houseplan-assets/summary-panel-editor-D8zcin5K.js",
|
||||
"houseplan-assets/summary-panel-metrics-DMn7iDbG.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/support-de-B1x5MhBx.js",
|
||||
"sha256": "f5fb2a4a3885b98ea0741fc26a1a5faa5d2c1b910f3309efe4799a3d61ee1ba2",
|
||||
"path": "houseplan-assets/support-de-B189S_5G.js",
|
||||
"sha256": "ec04fe04c616f01d3aedcc04dac23e05422c6a81dff7f9f637b76eb3493befd5",
|
||||
"rawBytes": 6167,
|
||||
"gzipBytes": 2397,
|
||||
"gzipBytes": 2396,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/support-fr-BBk5swZV.js",
|
||||
"sha256": "fa494dfb5ab5aea45d3d9988ea5b4f383bb1faddafdfafadaf53b245334bae31",
|
||||
"path": "houseplan-assets/support-fr-BO-hSBLk.js",
|
||||
"sha256": "608332d7e2dc32b71dbae536d7876dc51116c17195f234333c983cdb92f026ae",
|
||||
"rawBytes": 6333,
|
||||
"gzipBytes": 2432,
|
||||
"gzipBytes": 2431,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/support-ru-BryxAsau.js",
|
||||
"sha256": "91c550b59708fdcbfc1384d58c7e79ae994b0fb0ee32cc12df1c7bf852eef7f2",
|
||||
"path": "houseplan-assets/support-ru-DslL3KcH.js",
|
||||
"sha256": "7bc2dc39a74c9fa30bb443c58db75adb427477eac6d3a5db47a90038a6bc1669",
|
||||
"rawBytes": 8376,
|
||||
"gzipBytes": 2876,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/tools-de-DaCueVOA.js",
|
||||
"sha256": "da4aa9fa59fe352d6d1c9330c0700bbb849e77522ada7783f6e29a114b7b3033",
|
||||
"rawBytes": 4130,
|
||||
"gzipBytes": 1375,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/tools-fr-rOKrLY3t.js",
|
||||
"sha256": "69db41722abfa2f591aa865a8edbf1faaca6d1c727b3722c1896fd84e7c271d4",
|
||||
"rawBytes": 4136,
|
||||
"gzipBytes": 1357,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/tools-ru-qWSdpJow.js",
|
||||
"sha256": "f78c576ce3f26c1b042e0c78131f305ef3a6d9c897d7fbf843f3386a44907ef0",
|
||||
"rawBytes": 5633,
|
||||
"gzipBytes": 1695,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/topology-de-wNwfkZjf.js",
|
||||
"sha256": "a35835cc2e0640b793f5d4b47f68bbe473ca6441da5891a8cc0ac88f2646db07",
|
||||
"rawBytes": 4237,
|
||||
"gzipBytes": 1888,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/topology-fr-D9pmNHVr.js",
|
||||
"sha256": "353d6d4ac82acf236a4cbf85399586cc03de2ac488900061682e31853f3f7236",
|
||||
"rawBytes": 4321,
|
||||
"gzipBytes": 1869,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/topology-ru-D6m0B05V.js",
|
||||
"sha256": "f73e4f25634c63aa2a05047910891e4f8eb83b18487cd833858ef6d5e171099f",
|
||||
"rawBytes": 5880,
|
||||
"gzipBytes": 2236,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-DtQtLxJ3.js",
|
||||
"sha256": "170d522fa5224dce0b9dbe9f2ed9178ea90c76250db39c52d5bdfe324bad8ae1",
|
||||
"rawBytes": 15905,
|
||||
"gzipBytes": 5952,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"houseplan-assets/namespace-language-COmALraj.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/topology-de-wNwfkZjf.js",
|
||||
"houseplan-assets/topology-fr-D9pmNHVr.js",
|
||||
"houseplan-assets/topology-ru-D6m0B05V.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-9_MBQQpH.js",
|
||||
"sha256": "7c0cb913d002611acac9ba45a3bf2ea7f6c3a07839769567975e8298c4210565",
|
||||
"rawBytes": 7883,
|
||||
"gzipBytes": 2877,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/tools-de-BdHNnR7q.js",
|
||||
"sha256": "ff29e3db5cc0da7cdf7936e89f0f28356603054e405ac5283aab21a2196b4f1d",
|
||||
"rawBytes": 4130,
|
||||
"gzipBytes": 1376,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/tools-fr-4AvnrKW4.js",
|
||||
"sha256": "f7d55c813b289ae92d578feaa5d308fa4cfa60bfba3a893c0095631183029eb5",
|
||||
"rawBytes": 4136,
|
||||
"gzipBytes": 1359,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/tools-ru-DkRXe0vq.js",
|
||||
"sha256": "d21c0e42e8abcf0845440f573a9100559ce1c1a328dfeae3a33ab81a53f86ee8",
|
||||
"rawBytes": 5633,
|
||||
"gzipBytes": 1696,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/topology-de-j5awVHUt.js",
|
||||
"sha256": "40bbc1d738d847adf202cd22322e67e6cc1f781290659d066d096360a3f9bd58",
|
||||
"rawBytes": 2698,
|
||||
"gzipBytes": 1337,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/topology-fr-BNvn6hS_.js",
|
||||
"sha256": "d4791317a79d5389bcd936f64705e0945de413a4972031498ed6631b609f2f56",
|
||||
"rawBytes": 2718,
|
||||
"gzipBytes": 1355,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/topology-ru-CLr3lSHb.js",
|
||||
"sha256": "b344bc9cb2a622b4162ef0e3aba99b359cd49de39af04864b51384ef90283474",
|
||||
"rawBytes": 3669,
|
||||
"gzipBytes": 1616,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-FegR1hpF.js",
|
||||
"sha256": "10dbbbc51a44161d925a4c75cca21d7a10f9fa76666803c58693a0988cabf64e",
|
||||
"rawBytes": 10958,
|
||||
"gzipBytes": 4301,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js",
|
||||
"houseplan-assets/namespace-language-Cx9fDV_P.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/topology-de-j5awVHUt.js",
|
||||
"houseplan-assets/topology-fr-BNvn6hS_.js",
|
||||
"houseplan-assets/topology-ru-CLr3lSHb.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-B5WvzSzW.js",
|
||||
"sha256": "3ddb7cee59194b8cf899e429a9572447ffd1f45acfbcf37722998388c25ee745",
|
||||
"rawBytes": 3983,
|
||||
"gzipBytes": 1790,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js",
|
||||
"houseplan-assets/namespace-language-Cx9fDV_P.js",
|
||||
"houseplan-assets/zigbee-topology-FegR1hpF.js"
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"houseplan-assets/namespace-language-COmALraj.js",
|
||||
"houseplan-assets/zigbee-topology-DtQtLxJ3.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-card.js",
|
||||
"sha256": "3fc6bfa3531052c2963c09ab9b3a9edcc29a9a8f705cb13cb47590f5d503dd1d",
|
||||
"sha256": "cf76e68979acd8077ed8b389b5566ffd36e447a6d2598a09c80adc6d85d9cbb6",
|
||||
"rawBytes": 1205,
|
||||
"gzipBytes": 803,
|
||||
"gzipBytes": 804,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js"
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-panel.js",
|
||||
"sha256": "fa5a2359f0f6afc55fb23d970fea59c6994369f392afca21ce616a6352c3155e",
|
||||
"sha256": "df9e9feb016b89df1e58abb42132832ca1f31676446fe3a70ba4c1fbe79eebf0",
|
||||
"rawBytes": 6165,
|
||||
"gzipBytes": 2327,
|
||||
"gzipBytes": 2326,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js"
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
}
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";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-jTmPF7EN.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__="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";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-DNuV5X02.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);
|
||||
@@ -0,0 +1 @@
|
||||
function t(t){const a=t.visualViewport;return a&&Number.isFinite(a.width)&&Number.isFinite(a.height)?{left:Number(a.offsetLeft)||0,top:Number(a.offsetTop)||0,width:Math.max(0,Number(a.width)||0),height:Math.max(0,Number(a.height)||0)}:{left:0,top:0,width:t.innerWidth,height:t.innerHeight}}function a(t,a,h,e=7,i=8){const o=h.left+i,n=h.top+i,m=Math.max(o,h.left+h.width-i),r=Math.max(n,h.top+h.height-i),M=Math.max(0,m-o),d=Math.max(0,r-n),f=Math.min(Math.max(0,a.width),M),u=Math.min(Math.max(0,a.height),d);let p=t.left;p+f>m&&(p=t.right-f),p=Math.min(Math.max(o,p),Math.max(o,m-f));const x=t.bottom+e,s=t.top-e-u;let l="bottom",b=x;return x+u>r&&s>=n?(l="top",b=Math.min(Math.max(n,s),Math.max(n,r-u))):b=Math.min(Math.max(n,x),Math.max(n,r-u)),{left:Math.round(p),top:Math.round(b),side:l,maxWidth:Math.round(M),maxHeight:Math.round(d)}}function h(t){const a=t.HTMLElement?.prototype;return"function"==typeof a?.showPopover&&"function"==typeof a?.hidePopover}globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";export{h as a,t as f,a as p};
|
||||
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";import{l as t,bS as s,A as e,aJ as o,c as a,m as i,d2 as l,d3 as h,d4 as n,bO as r,d5 as c,da as p,d6 as d,d7 as _,d8 as u,d9 as g,db as m,dc as b}from"./houseplan-card-jTmPF7EN.js";import{z as f,A as v,C as y,D,E as w,G as S,H as $,I as C,n as M,S as k}from"./backdrop-pick-CZVGAeU-.js";import{s as I}from"./namespace-language-Cx9fDV_P.js";import"./form-kit.styles-CeNtVtY3.js";const x="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47",T=I([k]);class F{constructor(t){this.host=t,this.languageRuntime=T,this._toggleServerPlans=async()=>{const t=this.host._spaceDialog;if(t)if(t.pickSaved)this.host._spaceDialog={...t,pickSaved:!1};else{this.host._spaceDialog={...t,pickSaved:!0,savedBusy:!0};try{const t=await this.host.hass.callWS({type:"houseplan/plans/list"}),s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:t?.plans||[],savedBusy:!1})}catch(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:[],savedBusy:!1}),this.host._showToast(this.host._t("toast.plans_list_failed",{err:this.host._errText(t)}))}}}}_help(i){const l=`${i}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,i)&&s(h,l)?a`<hp-help data-help-key=${i}
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";import{l as t,bS as s,A as e,aJ as o,c as a,m as i,d2 as l,d3 as h,d4 as n,bO as r,d5 as c,da as p,d6 as d,d7 as _,d8 as u,d9 as g,db as m,dc as b}from"./houseplan-card-DNuV5X02.js";import{x as f,y as v,A as y,B as D,C as w,D as S,E as $,G as C,n as M,S as k}from"./backdrop-pick-BlKYl_U7.js";import{s as I}from"./namespace-language-COmALraj.js";import"./form-kit.styles-DNNRm1qV.js";import"./floating-surface-pyD_i_Ly.js";const x="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698",T=I([k]);class F{constructor(t){this.host=t,this.languageRuntime=T,this._toggleServerPlans=async()=>{const t=this.host._spaceDialog;if(t)if(t.pickSaved)this.host._spaceDialog={...t,pickSaved:!1};else{this.host._spaceDialog={...t,pickSaved:!0,savedBusy:!0};try{const t=await this.host.hass.callWS({type:"houseplan/plans/list"}),s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:t?.plans||[],savedBusy:!1})}catch(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:[],savedBusy:!1}),this.host._showToast(this.host._t("toast.plans_list_failed",{err:this.host._errText(t)}))}}}}_help(i){const l=`${i}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,i)&&s(h,l)?a`<hp-help data-help-key=${i}
|
||||
.text=${o(h,i)} .ariaLabel=${o(h,l)}></hp-help>`:e}_openSpaceDialog(t,s){if(!this.host._serverStorage||!this.host._serverCfg)return void this.host._showToast(this.host._t("toast.integration_missing"));if("edit"===t){const e=this.host._serverCfg.spaces.find(t=>t.id===s);if(!e)return;const o=i(e),a=e.settings?.custom_fill&&"object"==typeof e.settings.custom_fill?l(e.settings.custom_fill):null,p="none"===o.fill?{...a||h,a:0}:a;return void(this.host._spaceDialog={mode:t,spaceId:s,title:e.title,planUrl:e.plan_url||null,planFile:null,source:e.plan_url?"file":"draw",showBorders:o.showBorders,showNames:o.showNames,zeroWallStyle:c(e),displayTouched:!0,hideDecor:o.hideDecor,hideOpenings:o.hideOpenings,roomColor:o.color,roomOpacity:o.opacity,fillMode:"none"===o.fill?"custom":o.fill,customFill:p,glowEnabled:o.glow,bgColor:o.bgColor,bgMode:"static"===e.settings?.bg_mode||"daynight"===e.settings?.bg_mode?e.settings.bg_mode:null,northDeg:r({},e.settings),northDegInput:null===r({},e.settings)?"":String(r({},e.settings)),sunRays:"boolean"==typeof e.settings?.sun_rays?e.settings.sun_rays:null,tempMin:o.tempMin,tempMax:o.tempMax,tempMinInput:String(o.tempMin),tempMaxInput:String(o.tempMax),showLqi:o.showLqi??this.host._config?.show_signal??!0,cardFontScale:o.cardFontScale,labelTemp:o.labelTemp,labelHum:o.labelHum,labelLqi:o.labelLqi,labelLight:o.labelLight,cellCm:Number(e.cell_cm)>0?Number(e.cell_cm):5,cellCmInput:n(Number(e.cell_cm)>0?Number(e.cell_cm):5,this.host._imperial),cellCmTouched:!1,busy:!1})}const e=p(this.host._imperial);this.host._spaceDialog={mode:t,title:"",planUrl:null,planFile:null,...m(),hideDecor:!1,hideOpenings:!1,zeroWallStyle:"dashed",roomColor:g,roomOpacity:u,fillMode:"custom",customFill:{...h,a:0},glowEnabled:!0,bgColor:null,bgMode:"daynight",northDeg:null,northDegInput:"",sunRays:null,tempMin:_,tempMax:d,tempMinInput:String(_),tempMaxInput:String(d),showLqi:this.host._config?.show_signal??!0,cardFontScale:1,labelTemp:!1,labelHum:!1,labelLqi:!1,labelLight:!1,cellCm:e,cellCmInput:n(e,this.host._imperial),cellCmTouched:!1,busy:!1},f(this.host,this.host._spaceDialog)}async _pickPlanFile(t){const s=t.target,e=s.files?.[0];if(!e||!this.host._spaceDialog)return;s.value="";const o=await v(this.host,e);o&&this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:o})}_renderBackdropGuard(){return y(this.host,t=>{this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:t})},()=>{this.host._backdropGuard=null},this.host.hass)??e}_useServerPlan(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,planUrl:t,planFile:null,pickSaved:!1,savedAspect:void 0},this.host._aspectJob=this._readPlanAspect(t))}async _readPlanAspect(t){for(let s=0;s<40;s++){const s=this.host._display(t);if(s){const e=await new Promise(t=>{const e=new Image;e.onload=()=>t(e.naturalWidth&&e.naturalHeight?e.naturalWidth/e.naturalHeight:0),e.onerror=()=>t(0),e.src=s}),o=this.host._spaceDialog;return o&&o.planUrl===t&&Number.isFinite(e)&&e>0?(this.host._spaceDialog={...o,savedAspect:e},e):0}if(await new Promise(t=>setTimeout(t,150)),this.host._spaceDialog?.planUrl!==t)return 0}return 0}async _deleteServerPlan(t){const s=this.host._spaceDialog,e=s?.saved?.find(s=>s.name===t);if(!s||!e||e.used_by.length||e.url===s.planUrl)return;const o=await this.host._confirmDanger({key:"delete-plan",kind:"destructive",title:this.host._t("confirm.delete_plan_title"),message:this.host._t("confirm.delete_plan_body"),objectName:t,confirmLabel:this.host._t("btn.delete"),cancelLabel:this.host._t("btn.cancel")}),a=this.host._spaceDialog,i=a?.saved?.find(s=>s.name===t);if(o&&a&&i&&i.url===e.url&&i.modified===e.modified&&!i.used_by.length&&i.url!==a.planUrl)try{await this.host.hass.callWS({type:"houseplan/plans/delete",name:t});const s=this.host._spaceDialog;s?.saved&&(this.host._spaceDialog={...s,saved:s.saved.filter(s=>s.name!==t)})}catch(t){this.host._showToast(this.host._t("toast.plan_delete_failed",{err:this.host._errText(t)}))}}_renderServerPlans(t){if(t.savedBusy)return a`<div class="savedplans muted">${this.host._t("space.loading")}</div>`;const s=t.saved||[];if(!s.length)return a`<div class="savedplans muted">${this.host._t("space.no_saved")}</div>`;return a`<div class="savedplans">
|
||||
${s.map(s=>{return a`
|
||||
<div class="savedplan ${s.url===t.planUrl?"cur":""}">
|
||||
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";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="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";export{e as dictionary,n as fingerprint};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";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="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";export{e as dictionary,n as fingerprint};
|
||||
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";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="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";export{e as dictionary,a as fingerprint};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";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="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";export{e as dictionary,a as fingerprint};
|
||||
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";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="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";export{e as dictionary,d as fingerprint};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";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="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";export{e as dictionary,d as fingerprint};
|
||||
@@ -1,47 +0,0 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";import{eu as e,eC as t,c6 as o,eJ as s,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-jTmPF7EN.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-BmYmi_Wl.js";const M="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";let F,L=null,U=null;function x(e,t){return L||U||F===e||""===F||(U=(void 0===F?import("./led-strip-field-C-QXfKME.js"):import(new URL(`./led-strip-field-C-QXfKME.js?${Date.now()}`,import.meta.url).href)).then(e=>{e.LED_FIELD_FINGERPRINT===s?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(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 I(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}}const T=new WeakMap;function j(e,t,o){const s=P*o;const i=T.get(e);if(i&&i.faces===t&&i.epsilon===t?.epsilon&&i.value.t===s&&i.points.length===e.points.length&&i.points.every((t,o)=>t[0]===e.points[o][0]&&t[1]===e.points[o][1]))return i.value;const n=R(e.points),a=y(n,t,s/2),r={t:s,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,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,d:a}=j(o.strip,e.faces,e.d),r="unavailable"===o.state,l=r?"#9e9e9e":"on"===o.state&&!o.glow&&o.appearance?o.appearance.c:"#FFFFFF",c=2*b(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.strip,o.faces,o.d);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="${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,o,s){return(t?e.find(e=>e.id===t):void 0)??(o?e.find(e=>s(o,e)):void 0)}function N(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=H(e.space.rooms,l.marker?.room_id,$(R(a.points)),e.inRoom);r.push(I({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: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,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=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:s,glowFor:e=>l(o,e),inRoom:(t,o)=>e._pointInRoom(t,o),showHidden:"devices"===e._mode&&e._showAll});return!1!==e.isConnected&&q.set(e,{key:n,frame:c}),c}function W(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=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&&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 z(e,t,o){if(!1===e.isConnected)return d``;const s=O(e,t,o),i=s.scene&&(D(s.views)||L?.hasLedField(e))?L||x(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=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}),s=e.live?o.views:o.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.scene&&e.live&&(D(s)||L?.hasLedField(e.owner))?x(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}${G({views:s,d:o.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,47 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";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-DNuV5X02.js";import{L as g,v as w,s as $,a as y,b as _,p as k,c as b,d as C,e as P}from"./led-strip-geometry-DCOEb7ps.js";const M="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";let F,L=null,U=null;function x(e,t){return L||U||F===e||""===F||(U=(void 0===F?import("./led-strip-field-aqwdQqPw.js"):import(new URL(`./led-strip-field-aqwdQqPw.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=_(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=y/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},y/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__="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";const t=t=>[t.left,t.top,t.right,t.bottom,t.width,t.height].every(Number.isFinite)&&t.right>=t.left&&t.bottom>=t.top&&t.width>=0&&t.height>=0;function e(e){const{preferred:o,size:i,bounds:h,blockers:r,gap:n=8,edge:d=8}=e;if(![o.x,o.y,i.width,i.height,n,d].every(Number.isFinite)||i.width<=0||i.height<=0||n<0||d<0||!t(h)||r.some(e=>!t(e)))return null;const f=h.left+d,s=h.right-d-i.width,l=h.top+d,a=h.bottom-d-i.height;if(![f,s,l,a].every(Number.isFinite)||s<f||a<l)return null;const g=r.filter(t=>t.right>t.left&&t.bottom>t.top).map(t=>({left:t.left-n-i.width,right:t.right+n,top:t.top-n-i.height,bottom:t.bottom+n})),b=(t,e,o)=>Math.max(e,Math.min(o,t)),m=new Set([f,s,b(o.x,f,s)]),p=new Set([l,a,b(o.y,l,a)]);for(const t of g)m.add(b(t.left,f,s)),m.add(b(t.right,f,s)),p.add(b(t.top,l,a)),p.add(b(t.bottom,l,a));const c=[...m].sort((t,e)=>t-e),u=[...p].sort((t,e)=>t-e);let w=null,y=1/0;for(const t of u)for(const e of c){if(g.some(o=>e>o.left&&e<o.right&&t>o.top&&t<o.bottom))continue;const i=Math.hypot(e-o.x,t-o.y);(!w||i<y)&&(w={left:e,top:t},y=i)}return w}export{e as p};
|
||||
@@ -0,0 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";import{eR as e,eS as a,eG as d}from"./houseplan-card-DNuV5X02.js";function n(d,n){return new e([{code:"en",dictionary:d},{code:"ru",loadDictionary:n.ru},{code:"de",loadDictionary:n.de},{code:"fr",loadDictionary:n.fr}],"06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698",console.warn,a)}function o(e){return function(e,a){return{state:d=>{const n=e.state(d);return"pending"!==n&&a.some(e=>"pending"===e.state(d))?"pending":n},dictionary:a=>e.dictionary(a),ensure:d=>Promise.all([e,...a].map(e=>e.ensure(d))).then(()=>{})}}(d,e)}export{n,o as s};
|
||||
@@ -1 +0,0 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";import{eR as e,eS as a,eG as n}from"./houseplan-card-jTmPF7EN.js";function c(n,c){return new e([{code:"en",dictionary:n},{code:"ru",loadDictionary:c.ru},{code:"de",loadDictionary:c.de},{code:"fr",loadDictionary:c.fr}],"f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47",console.warn,a)}function o(e){return function(e,a){return{state:n=>{const c=e.state(n);return"pending"!==c&&a.some(e=>"pending"===e.state(n))?"pending":c},dictionary:a=>e.dictionary(a),ensure:n=>Promise.all([e,...a].map(e=>e.ensure(n))).then(()=>{})}}(n,e)}export{c as n,o as s};
|
||||
@@ -1,6 +1,6 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";import{aG as e,l as t,aJ as s,A as a,eF as o,eG as i,eH as n,E as c,eQ as l,c as r}from"./houseplan-card-jTmPF7EN.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__="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";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-DNuV5X02.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__="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";import{c as a,A as s}from"./houseplan-card-jTmPF7EN.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-DodMV5zo.js";import"./form-kit.styles-CeNtVtY3.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__="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";import{c as a,A as e}from"./houseplan-card-DNuV5X02.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-l2frpvJL.js";import"./form-kit.styles-DNNRm1qV.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__="f743fc49cc94c6862c340a1ba75e195ff515
|
||||
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__="f743fc49cc94c6862c340a1ba75e195ff515
|
||||
<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__="f743fc49cc94c6862c340a1ba75e195ff515
|
||||
?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__="f743fc49cc94c6862c340a1ba75e195ff515
|
||||
@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__="f743fc49cc94c6862c340a1ba75e195ff515
|
||||
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__="f743fc49cc94c6862c340a1ba75e195ff515
|
||||
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__="f743fc49cc94c6862c340a1ba75e195ff515
|
||||
<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__="f743fc49cc94c6862c340a1ba75e195ff515
|
||||
${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">
|
||||
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";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 c,b4 as l,b3 as d,b6 as u,f1 as f,f2 as m,ch as g,f3 as v}from"./houseplan-card-jTmPF7EN.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*b(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 b=h.next();for(;!b.done;)yield,b=h.next();y=b.value;const p=g.cellCm/o;f+=c(y)*p*p/1e4}return f}catch{return null}}function p(e,t,n=h){const i=b(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{b as cleanFloorAreaSteps,y as representedHaDeviceIds,h as spaceWallGeometry,C as summaryEntityValue,S as summarySystemValue,p as totalCleanFloorAreaM2};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";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-DNuV5X02.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 h(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*p(c,d,u=h){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 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+=l(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__="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";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="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";export{e as dictionary,r as fingerprint};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";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="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";export{e as dictionary,r as fingerprint};
|
||||
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";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="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";export{e as dictionary,r as fingerprint};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";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="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";export{e as dictionary,r as fingerprint};
|
||||
@@ -1 +0,0 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";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="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";export{e as dictionary,n as fingerprint};
|
||||
@@ -0,0 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";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 länger als 10 Minuten dauern. House Plan wartet im Hintergrund weiter. Der Scan kann Zigbee vorübergehend verlangsamen.",scan_connecting:"Verbindung zu Zigbee2MQTT wird hergestellt",scan_waiting:"Warten auf die Karte von Zigbee2MQTT",scan_elapsed:"Vergangen: {time}",scan_background_hint:"Du kannst die Einstellungen schließen — das Warten wird im Hintergrund fortgesetzt.",scan_long_wait:"Zigbee2MQTT hat noch nicht geantwortet. Das Warten wird fortgesetzt.",scan_cancel:"Anfrage abbrechen",scan_cancel_hint:"Nur das Warten von House Plan wird beendet. Zigbee2MQTT kann den Scan fortsetzen.",scan_cancelled:"Warten abgebrochen. Der Scan von Zigbee2MQTT ist möglicherweise noch nicht beendet.",scan_backend_required:"Aktualisieren Sie die House-Plan-Integration und starten Sie Home Assistant neu, um Kartenscans im Hintergrund zu nutzen.",scan_connection_lost:"Die MQTT-Verbindung wurde unterbrochen; das Ergebnis ist möglicherweise nicht angekommen. Das Warten wurde beendet, Zigbee2MQTT scannt möglicherweise weiter.",scan_frontend_disconnected:"Die Verbindung zu Home Assistant wurde unterbrochen. Das Warten wird im Hintergrund fortgesetzt. Stelle die Verbindung wieder her, um den Status zu sehen.",scan_unavailable:"MQTT ist in Home Assistant nicht verfügbar oder wird nicht unterstützt.",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_other_space_named:"{space} ({name})",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="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";export{e as dictionary,n as fingerprint};
|
||||
@@ -1 +0,0 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";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="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";export{e as dictionary,s as fingerprint};
|
||||
@@ -0,0 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";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 plus de 10 minutes. House Plan continue d’attendre en arrière-plan. L’analyse peut réduire temporairement la réactivité de Zigbee.",scan_connecting:"Connexion à Zigbee2MQTT",scan_waiting:"En attente de la carte de Zigbee2MQTT",scan_elapsed:"Temps écoulé : {time}",scan_background_hint:"Vous pouvez fermer les réglages — l’attente continuera en arrière-plan.",scan_long_wait:"Zigbee2MQTT n’a pas encore répondu. L’attente continue.",scan_cancel:"Annuler la demande",scan_cancel_hint:"Seule l’attente de House Plan est annulée. L’analyse de Zigbee2MQTT peut continuer.",scan_cancelled:"Attente annulée. L’analyse de Zigbee2MQTT n’est peut-être pas encore terminée.",scan_backend_required:"Mettez à jour l’intégration House Plan et redémarrez Home Assistant pour utiliser les analyses de carte en arrière-plan.",scan_connection_lost:"La connexion MQTT a été perdue ; le résultat n’est peut-être pas arrivé. L’attente est terminée, mais Zigbee2MQTT peut encore analyser le réseau.",scan_frontend_disconnected:"La connexion à Home Assistant a été interrompue. L’attente continue en arrière-plan. Reconnectez-vous pour retrouver l’état de la demande.",scan_unavailable:"MQTT n’est pas disponible ou n’est pas pris en charge dans Home Assistant.",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_other_space_named:"{space} ({name})",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="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";export{e as dictionary,n as fingerprint};
|
||||
@@ -1 +0,0 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";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="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";export{e as dictionary,a as fingerprint};
|
||||
@@ -1 +0,0 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";import{n as t,c as n}from"./zigbee-topology-FegR1hpF.js";import{aP as e}from"./houseplan-card-jTmPF7EN.js";import"./namespace-language-Cx9fDV_P.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 p(t){if(!0!==t?.user?.is_admin)throw a("permission")}function f(n){const e=i(n);return e?c(e,"zha",async()=>{if(p(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(p(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,f=null,h=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=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 p=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&&f?.(n):c&&h?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),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{f as readZhaTopology,h as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
|
||||
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";try{await import("./houseplan-assets/houseplan-card-jTmPF7EN.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__="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";try{await import("./houseplan-assets/houseplan-card-DNuV5X02.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)}
|
||||
|
||||
@@ -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.7"
|
||||
"version": "1.80.0-beta.4"
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
@@ -21,6 +21,10 @@
|
||||
* 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
|
||||
@@ -44,6 +48,7 @@ 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');
|
||||
@@ -118,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 });
|
||||
@@ -182,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 });
|
||||
@@ -190,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));
|
||||
};
|
||||
};
|
||||
@@ -250,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);
|
||||
@@ -266,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,
|
||||
@@ -301,6 +320,7 @@ async function sample() {
|
||||
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,
|
||||
@@ -410,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,
|
||||
@@ -429,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];
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
@@ -1,29 +1,50 @@
|
||||
{
|
||||
"schema": 3,
|
||||
"matrixVersion": 71,
|
||||
"acceptedAt": "2026-10-03T15:57:17.589Z",
|
||||
"sourceFingerprint": "6cd33bbad3c9a6a101afc1d501a8959df6ad58b693802489873660c043677fa7",
|
||||
"acceptedAt": "2026-10-05T12:14:58.027Z",
|
||||
"sourceFingerprint": "14a902be33654296da3bbc915dcdd2c5b918936f24526ddc7a2e4b45a73afe25",
|
||||
"chromium": "151.0.7922.34",
|
||||
"capturedOn": "linux",
|
||||
"acceptedOn": "win32",
|
||||
"acceptedOn": "linux",
|
||||
"capture": {
|
||||
"platform": "linux",
|
||||
"arch": "x64",
|
||||
"chromium": "151.0.7922.34",
|
||||
"buildFingerprint": "6cd33bbad3c9a6a101afc1d501a8959df6ad58b693802489873660c043677fa7",
|
||||
"ci": {
|
||||
"buildFingerprint": "14a902be33654296da3bbc915dcdd2c5b918936f24526ddc7a2e4b45a73afe25",
|
||||
"ci": null
|
||||
},
|
||||
"localAttestation": {
|
||||
"schema": "houseplan-golden-wsl/v1",
|
||||
"sha256": "c0d5ed83d3bf2591a21fff465403ce4ab71c10df781a78736cf690a578a5df52",
|
||||
"artifactSha256": "5d2082d6a19c7f4ecce6ea5bdb40da9ec76d804052847b9863f770213dd0b0c0",
|
||||
"createdAt": "2026-10-05T12:14:24.651Z",
|
||||
"source": {
|
||||
"repository": "Matysh/houseplan-card",
|
||||
"run": 37134548622,
|
||||
"attempt": 1,
|
||||
"sha": "c142e4f7b5b3ffb46d3a2b88222a9d697e8144b1"
|
||||
"branch": "issue/798-provider-zigbee-routes",
|
||||
"commit": "22828495bb3ca3c038a87b68327d068e60874d9d",
|
||||
"tree": "0959cf050c960f44d6ada12c31e76335dd380430",
|
||||
"remoteSha": "22828495bb3ca3c038a87b68327d068e60874d9d",
|
||||
"clean": true,
|
||||
"status": ""
|
||||
},
|
||||
"environment": {
|
||||
"platform": "linux",
|
||||
"arch": "x64",
|
||||
"kernel": "6.18.33.2-microsoft-standard-WSL2",
|
||||
"wsl": true,
|
||||
"distro": "Ubuntu",
|
||||
"filesystem": "ext2/ext3"
|
||||
},
|
||||
"toolchain": {
|
||||
"node": "22.23.2",
|
||||
"npm": "10.9.8",
|
||||
"playwright": "1.62.0",
|
||||
"chromiumExecutableSha256": "0b20b130e7edd9dd51873be867761295fe0cfad490c2b9a64f95bd3cfc08fa71"
|
||||
}
|
||||
},
|
||||
"localAttestation": null,
|
||||
"foreignCapture": {
|
||||
"reason": "Owner-authorized #788 acceptance on Windows of Linux CI artifact Validate 37134548622; capture is not Windows (#455)"
|
||||
},
|
||||
"foreignCapture": null,
|
||||
"witnesses": {
|
||||
"count": 101,
|
||||
"count": 107,
|
||||
"floor": 10
|
||||
},
|
||||
"scenarios": {
|
||||
@@ -199,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",
|
||||
@@ -220,12 +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-endcaps-zoom-light": "57703b53bd9d2eaae1b3142903a8b574e5d12b761b9b7240543ee2463c44c74d",
|
||||
"led-strip-rectangle-door-zoom-light": "549e9e9110cc3b01537d07bcf6ab89896069a49183a27c22904b89c99e35347c",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 107 KiB After Width: | Height: | Size: 108 KiB |
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 96 KiB After Width: | Height: | Size: 96 KiB |
|
Before Width: | Height: | Size: 260 KiB After Width: | Height: | Size: 258 KiB |
|
Before Width: | Height: | Size: 185 KiB After Width: | Height: | Size: 185 KiB |
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 41 KiB |
@@ -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 };
|
||||
}
|
||||
@@ -464,3 +464,18 @@ batch; all batches render as one positive-winding clip path per strip. The
|
||||
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.
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
@@ -6,8 +6,51 @@
|
||||
* 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]] },
|
||||
@@ -37,6 +80,8 @@ for (const scenario of cases) {
|
||||
}, { 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
|
||||
@@ -101,4 +146,60 @@ for (const scenario of cases) {
|
||||
}
|
||||
}
|
||||
}
|
||||
await finish(browser, results);
|
||||
// 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 });
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -89,8 +89,11 @@ for (const scenario of scenarios) {
|
||||
// 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 } } };
|
||||
'light.ceiling': { ...previous, state,
|
||||
attributes: { ...previous.attributes, rgb_color: [255, 255, 255] } } } };
|
||||
await window.__hpTest.settled();
|
||||
}, state);
|
||||
await page.waitForFunction(state => window.__card.shadowRoot
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
@@ -129,7 +129,9 @@ const result = await page.evaluate(async () => {
|
||||
|
||||
root().querySelector('.dev').dispatchEvent(mouse('pointermove', 200, 200));
|
||||
await card.updateComplete;
|
||||
out.deviceTipSurvives = card._tip?.room === false && !!root().querySelector('.tip');
|
||||
const deviceTip = root().querySelector('.tip');
|
||||
out.deviceTipSurvives = card._tip?.room === false && !!deviceTip && !deviceTip.hidden
|
||||
&& deviceTip.textContent.includes(card._tip.title);
|
||||
|
||||
card._openSettingsDialog();
|
||||
out.reopenShowsOff = card._settingsDialog?.showRoomTooltip === false;
|
||||
|
||||
@@ -0,0 +1,471 @@
|
||||
// #802: real pointer + public HA/config inputs. No private card writes: the
|
||||
// fixture delivers registry events and the integration's normal topology feed.
|
||||
import { mkdirSync, writeFileSync } from 'node:fs';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { launch, checkAll, finish } from './serve.mjs';
|
||||
|
||||
const artifacts = new URL('../artifacts/zigbee-topology-802/', import.meta.url);
|
||||
mkdirSync(artifacts, { recursive: true });
|
||||
const out = {};
|
||||
const evidence = [];
|
||||
const ieee = (n) => `00124b000000000${n}`;
|
||||
const remoteName = 'Landing <router> & "night light"';
|
||||
const nodes = [
|
||||
['d_light1', 1, 1, 'Router'], ['d_lamp', 2, 0, 'Coordinator'],
|
||||
['d_mower', 3, 3, 'EndDevice'], ['d_temp', 4, 4, 'EndDevice'],
|
||||
['not_on_plan', 6, 6, 'Router'], ['d_kettle', 7, 7, 'EndDevice'],
|
||||
];
|
||||
const z2m = {
|
||||
nodes: nodes.map(([id, n, nwk, type]) => ({ ieeeAddr: ieee(n), networkAddress: nwk, type,
|
||||
friendlyName: id === 'not_on_plan' ? 'Unplaced <router> & target' : 'Provider target' })),
|
||||
links: [
|
||||
{ source: ieee(2), target: ieee(1), linkquality: 130, routes: [
|
||||
{ destinationAddress: 0, nextHopAddress: 0, status: 'ACTIVE' },
|
||||
] },
|
||||
{ source: ieee(1), target: ieee(3), relationship: 'Parent', linkquality: 140 },
|
||||
{ source: ieee(6), target: ieee(4), relationship: 'Parent', linkquality: 90 },
|
||||
{ source: ieee(2), target: ieee(6), linkquality: 110, routes: [
|
||||
{ destinationAddress: 0, nextHopAddress: 0, status: 'ACTIVE' },
|
||||
] },
|
||||
],
|
||||
};
|
||||
const zha = nodes.map(([id, n, nwk, type]) => ({ ieee: ieee(n), nwk, device_reg_id: id,
|
||||
device_type: type, name: id === 'not_on_plan' ? 'Unplaced <router> & target' : 'Provider target',
|
||||
neighbors: n === 3 ? [{ ieee: ieee(1), relationship: 'Parent', lqi: 140 }]
|
||||
: n === 4 ? [{ ieee: ieee(6), relationship: 'Parent', lqi: 90 }] : [],
|
||||
...(n === 1 || n === 6 ? { routes: [{ dest_nwk: 0, next_hop: 0, route_status: 'Active' }] } : {}),
|
||||
}));
|
||||
|
||||
for (const provider of ['z2m', 'zha']) {
|
||||
const { page, browser } = await launch({ width: 1100, height: 900 });
|
||||
const root = page.locator('#host > houseplan-card');
|
||||
const marker = (id) => root.locator(`[data-hp="device"][data-id="${id}"]`);
|
||||
const bubble = root.locator('[data-hp="zigbee-topology-parent-bubble"]');
|
||||
const settle = () => page.evaluate(() => window.__hpTest.settled());
|
||||
// Like smoke_preloader, keep the RAF-backed facade operation rooted in the
|
||||
// page and wait from Playwright: CDP can otherwise collect the returned
|
||||
// pending evaluate promise. Start once; never retry a config mutation.
|
||||
const setVolumetricView = async (on) => {
|
||||
await page.evaluate((on) => {
|
||||
const probe = { done: false, error: null, promise: null };
|
||||
window.__zigbeeProjectionSwitch = probe;
|
||||
probe.promise = window.__hpTest.setVolumetricView(on);
|
||||
void probe.promise.then(() => { probe.done = true; }, (error) => {
|
||||
probe.error = error instanceof Error ? error.stack || error.message : String(error);
|
||||
probe.done = true;
|
||||
});
|
||||
}, on);
|
||||
try {
|
||||
await page.waitForFunction(() => window.__zigbeeProjectionSwitch?.done,
|
||||
null, { polling: 25, timeout: 15000 });
|
||||
const error = await page.evaluate(() => window.__zigbeeProjectionSwitch.error);
|
||||
if (error) throw new Error(`projection fixture failed: ${error}`);
|
||||
} finally {
|
||||
await page.evaluate(() => { delete window.__zigbeeProjectionSwitch; });
|
||||
}
|
||||
};
|
||||
let pointer;
|
||||
const hover = async (id, vertical = 0.5) => {
|
||||
await page.mouse.move(2, 2);
|
||||
const box = await marker(id).boundingBox();
|
||||
if (!box) throw new Error(`missing marker ${id}`);
|
||||
pointer = { x: box.x + box.width / 2, y: box.y + box.height * vertical };
|
||||
await page.mouse.move(pointer.x, pointer.y);
|
||||
await settle();
|
||||
};
|
||||
const sample = async (id) => page.evaluate((id) => {
|
||||
const card = window.__card;
|
||||
const root = card.shadowRoot;
|
||||
const topology = root.querySelector('hp-zigbee-topology-overlay');
|
||||
const tip = root.querySelector('[data-hp-live-tip]');
|
||||
const rect = (element) => {
|
||||
const r = element.getBoundingClientRect();
|
||||
return { left: r.left, top: r.top, right: r.right, bottom: r.bottom, width: r.width, height: r.height };
|
||||
};
|
||||
const visible = (element) => !!element && !element.hidden && element.getBoundingClientRect().width > 0
|
||||
&& getComputedStyle(element).display !== 'none' && getComputedStyle(element).visibility !== 'hidden';
|
||||
const stage = rect(root.querySelector('.stage'));
|
||||
const bounds = { left: Math.max(stage.left, 0), top: Math.max(stage.top, 0),
|
||||
right: Math.min(stage.right, innerWidth), bottom: Math.min(stage.bottom, innerHeight) };
|
||||
const source = rect(root.querySelector(`[data-hp="device"][data-id="${id}"]`));
|
||||
const badges = [...(topology?.shadowRoot?.querySelectorAll('.parent-bubble,.remote,.route-status') || [])]
|
||||
.filter(visible).map((element) => ({ rect: rect(element), text: element.textContent.trim(),
|
||||
kind: element.className, pointerEvents: getComputedStyle(element).pointerEvents }));
|
||||
const tipRect = tip ? rect(tip) : null;
|
||||
const overlap = (a, b) => Math.max(0, Math.min(a.right, b.right) - Math.max(a.left, b.left))
|
||||
* Math.max(0, Math.min(a.bottom, b.bottom) - Math.max(a.top, b.top));
|
||||
const tipVisible = visible(tip);
|
||||
const badgesDisjoint = badges.every((badge, i) => badges.slice(i + 1)
|
||||
.every((other) => overlap(badge.rect, other.rect) < 0.5));
|
||||
const inside = (r) => r.left >= bounds.left - 1 && r.top >= bounds.top - 1
|
||||
&& r.right <= bounds.right + 1 && r.bottom <= bounds.bottom + 1;
|
||||
const sourceElement = root.querySelector(`[data-hp="device"][data-id="${id}"]`);
|
||||
const floor = sourceElement.getAttribute('data-hp-iso-floor')?.split(',').map(Number);
|
||||
const visual = sourceElement.getAttribute('data-hp-iso-visual')?.split(',').map(Number);
|
||||
return { source, bounds, badges, tip: tipRect, tipVisible,
|
||||
projectionIso: root.querySelector('.stage').classList.contains('projection-iso'),
|
||||
isoWalls: !!root.querySelector('[data-hp="iso-walls"]'),
|
||||
sourceRaised: floor?.length === 2 && visual?.length === 2
|
||||
&& Math.hypot(floor[0] - visual[0], floor[1] - visual[1]) > 0.1,
|
||||
tipText: tip?.textContent || '', badgesDisjoint,
|
||||
clean: tipVisible && badges.length > 0 && badges.every((badge) => overlap(tipRect, badge.rect) < 0.5)
|
||||
&& overlap(tipRect, source) < 0.5 && inside(tipRect),
|
||||
badgeInside: badges.every((badge) => inside(badge.rect)),
|
||||
pointerTransparent: !!topology && getComputedStyle(topology).pointerEvents === 'none'
|
||||
&& badges.every((badge) => badge.pointerEvents === 'none'),
|
||||
safeText: !topology?.shadowRoot?.querySelector('router,img,script'),
|
||||
endpoint: root.querySelector(`[data-hp="device"][data-id="${id}"]`)?.hasAttribute('data-hp-zigbee-topology-endpoint'),
|
||||
lines: [...(topology?.shadowRoot?.querySelectorAll('line,polygon') || [])].map((element) =>
|
||||
['x1', 'x2', 'y1', 'y2', 'points'].map((name) => element.getAttribute(name)).join(',')),
|
||||
calls: { ...window.__tooltipFixture.calls },
|
||||
};
|
||||
}, id);
|
||||
const witness = async (name, id, { hidden = false } = {}) => {
|
||||
const value = await sample(id);
|
||||
evidence.push({ provider, name, ...value });
|
||||
out[`${provider}_${name}`] = value.badgesDisjoint
|
||||
&& (hidden ? !value.tipVisible && value.badges.length > 0 : value.clean);
|
||||
return value;
|
||||
};
|
||||
const deliver = async (options = {}) => page.evaluate((options) => {
|
||||
const fixture = window.__tooltipFixture;
|
||||
if (options.name !== undefined) {
|
||||
fixture.devices.d_light1 = { ...fixture.devices.d_light1,
|
||||
name_by_user: options.name, name: options.registryName ?? '' };
|
||||
window.__card.hass = { ...window.__card.hass, devices: { ...fixture.devices } };
|
||||
for (const callback of fixture.registryCallbacks) callback({ action: 'update', device_id: 'd_light1' });
|
||||
}
|
||||
if (options.clear) fixture.result = null;
|
||||
else if (options.restore) fixture.result = fixture.originalResult;
|
||||
if (options.providerName !== undefined && fixture.result) {
|
||||
fixture.result = structuredClone(fixture.result);
|
||||
fixture.result.nodes[0].friendlyName = options.providerName;
|
||||
}
|
||||
fixture.phase = options.phase || 'ready';
|
||||
fixture.stale = options.stale === true;
|
||||
for (const callback of fixture.callbacks) callback(fixture.event());
|
||||
}, options);
|
||||
try {
|
||||
// A delayed overlay chunk makes the first hover occur before upgrade. The
|
||||
// source pointer stays still while the public backend reset supplies data.
|
||||
let releaseOverlay;
|
||||
let overlayWasDelayed = false;
|
||||
const overlayReady = new Promise((resolve) => { releaseOverlay = resolve; });
|
||||
if (provider === 'z2m') await page.route('**/*hp-zigbee-topology-overlay*.js', async (route) => {
|
||||
overlayWasDelayed = true;
|
||||
await overlayReady; await route.fallback();
|
||||
});
|
||||
await page.evaluate(async ({ provider, nodes, z2m, zha, remoteName }) => {
|
||||
const card = window.__card;
|
||||
const original = card.hass;
|
||||
const fixture = { devices: structuredClone(original.devices), callbacks: new Set(), registryCallbacks: new Set(),
|
||||
calls: { zha: 0, start: 0, subscriptions: 0 }, revision: 0, phase: 'ready', stale: false,
|
||||
result: provider === 'z2m' ? z2m : null, originalResult: z2m, zha };
|
||||
for (const [id, n] of nodes) if (fixture.devices[id]) fixture.devices[id].identifiers = [['zha', `00124b000000000${n}`]];
|
||||
fixture.devices.d_light1 = { ...fixture.devices.d_light1, name_by_user: remoteName };
|
||||
fixture.event = () => fixture.result ? {
|
||||
kind: 'state', session_id: 'tooltip-802', revision: ++fixture.revision,
|
||||
provider: { topic: 'zigbee2mqtt', job_id: 'fixture', phase: fixture.phase, elapsed_ms: 1200,
|
||||
obtained_at: Date.now() - (fixture.stale ? 360000 : 0), stale: fixture.stale,
|
||||
...(fixture.phase === 'error' ? { error: 'provider' } : {}), result: fixture.result },
|
||||
} : { kind: 'removed', session_id: 'tooltip-802', revision: ++fixture.revision, topic: 'zigbee2mqtt' };
|
||||
const connection = { ...original.connection,
|
||||
subscribeEvents: async (callback, type) => {
|
||||
if (type === 'device_registry_updated') fixture.registryCallbacks.add(callback);
|
||||
const release = await original.connection.subscribeEvents(callback, type);
|
||||
return () => { fixture.registryCallbacks.delete(callback); release(); };
|
||||
},
|
||||
subscribeMessage: async (callback, message) => {
|
||||
if (message.type !== 'houseplan/zigbee/subscribe') return original.connection.subscribeMessage(callback, message);
|
||||
fixture.calls.subscriptions++;
|
||||
fixture.callbacks.add(callback);
|
||||
callback({ kind: 'reset', session_id: 'tooltip-802', revision: fixture.revision,
|
||||
topics: fixture.result ? ['zigbee2mqtt'] : [] });
|
||||
if (fixture.result) callback(fixture.event());
|
||||
return () => fixture.callbacks.delete(callback);
|
||||
},
|
||||
};
|
||||
card.hass = { ...original, devices: fixture.devices, connection,
|
||||
callWS: async (message) => {
|
||||
if (message.type === 'config/device_registry/list') return Object.values(fixture.devices);
|
||||
if (message.type === 'zha/devices') { fixture.calls.zha++; return fixture.zha; }
|
||||
if (message.type === 'houseplan/zigbee/start') { fixture.calls.start++; return fixture.event(); }
|
||||
const response = await original.callWS(message);
|
||||
return message.type === 'houseplan/config/get' ? { ...response, zigbee_scan_api: 1 } : response;
|
||||
},
|
||||
};
|
||||
window.__tooltipFixture = fixture;
|
||||
document.getElementById('host').style.width = '900px';
|
||||
await window.__hpTest.setServerConfig((cfg) => {
|
||||
cfg.settings = { ...cfg.settings, zigbee_topology: { enabled: true, z2m_base_topics: ['zigbee2mqtt'] } };
|
||||
cfg.spaces = cfg.spaces.map((space) => ({ ...space,
|
||||
settings: { ...space.settings, show_borders: true, show_names: true },
|
||||
}));
|
||||
return cfg;
|
||||
});
|
||||
await window.__hpTest.setLayout((layout) => ({ ...layout,
|
||||
d_kettle: { s: 'f1', x: 0.50, y: 0.40 }, d_temp: { s: 'f1', x: 0.22, y: 0.62 },
|
||||
d_light1: { s: 'f1', x: 0.25, y: 0.27 }, d_mower: { s: 'garden', x: 0.50, y: 0.48 },
|
||||
}));
|
||||
}, { provider, nodes, z2m, zha, remoteName });
|
||||
if (provider === 'zha') {
|
||||
await page.evaluate(() => window.__hpTest.setMode('plan'));
|
||||
await root.locator('[data-hp="settings"]').click();
|
||||
await root.locator('hp-zigbee-topology-settings').getByRole('button', { name: /Read ZHA/ }).click();
|
||||
await page.waitForFunction(() => window.__tooltipFixture.calls.zha === 1);
|
||||
await page.evaluate(() => window.__hpTest.close());
|
||||
await page.evaluate(() => window.__hpTest.setMode('view'));
|
||||
}
|
||||
await page.evaluate(() => window.__hpTest.switchSpace('garden'));
|
||||
await hover('d_mower');
|
||||
if (provider === 'z2m') out.mouseReallyPrecedesLazyUpgrade = overlayWasDelayed && await page.evaluate(() =>
|
||||
!customElements.get('hp-zigbee-topology-overlay')
|
||||
&& !window.__card.shadowRoot.querySelector('[data-hp-live-tip]').hidden);
|
||||
releaseOverlay();
|
||||
await bubble.waitFor({ state: 'visible' });
|
||||
await settle();
|
||||
out[`${provider}_remoteCaption`] = (await bubble.innerText()).trim() === `Ground floor (${remoteName})`;
|
||||
const remote = await witness(provider === 'z2m' ? 'firstHoverAfterLazyUpgrade' : 'firstMouseHover', 'd_mower');
|
||||
out[`${provider}_safeTextAndPointerTransparent`] = remote.safeText && remote.pointerTransparent;
|
||||
await page.screenshot({ path: fileURLToPath(new URL(`${provider}-remote-caption.png`, artifacts)) });
|
||||
|
||||
if (provider === 'z2m') {
|
||||
for (const [name, registryName, providerName, expected] of [
|
||||
[' ', 'Registry target', 'Provider target', 'Ground floor (Registry target)'],
|
||||
[' ', ' ', 'Provider target', 'Ground floor (Provider target)'],
|
||||
[' ', ' ', ' ', 'Ground floor'],
|
||||
]) {
|
||||
await deliver({ name, registryName, providerName });
|
||||
await page.waitForTimeout(300);
|
||||
await hover('d_mower');
|
||||
await page.waitForFunction((expected) => window.__card.shadowRoot.querySelector('hp-zigbee-topology-overlay')
|
||||
?.shadowRoot?.querySelector('.parent-bubble')?.textContent.trim() === expected, expected);
|
||||
out[`${provider}_nameFallback_${expected}`] = (await bubble.innerText()).trim() === expected;
|
||||
}
|
||||
await deliver({ name: remoteName });
|
||||
await page.evaluate(() => window.__hpTest.setServerConfig((cfg) => {
|
||||
cfg.spaces.find((space) => space.id === 'f1').title = ''; return cfg;
|
||||
}));
|
||||
await hover('d_mower');
|
||||
out.z2m_missingSpaceTitle = (await bubble.innerText()).trim() === `another space (${remoteName})`;
|
||||
await page.evaluate(() => window.__hpTest.setServerConfig((cfg) => {
|
||||
cfg.spaces.find((space) => space.id === 'f1').title = 'Ground floor'; return cfg;
|
||||
}));
|
||||
|
||||
for (const iso of [false, true]) for (const theme of ['light', 'dark']) {
|
||||
await setVolumetricView(iso);
|
||||
await page.evaluate(({ theme }) => {
|
||||
const card = window.__card;
|
||||
card.hass = { ...card.hass, themes: { ...card.hass.themes, darkMode: theme === 'dark' } };
|
||||
for (const [key, value] of Object.entries(theme === 'light' ? {
|
||||
'--card-background-color': '#ffffff', '--ha-card-background': '#ffffff',
|
||||
'--primary-text-color': '#202020', '--secondary-text-color': '#606060',
|
||||
} : { '--card-background-color': '#1c2530', '--ha-card-background': '#1c2530',
|
||||
'--primary-text-color': '#e1e1e1', '--secondary-text-color': '#9aa4ad' })) card.style.setProperty(key, value);
|
||||
}, { theme });
|
||||
await page.evaluate(() => window.__hpTest.switchSpace('f1'));
|
||||
for (const [id, name] of [['d_temp', 'unplaced'], ['d_light1', 'remote-count'], ['d_kettle', 'status-only']]) {
|
||||
await hover(id, 0.25);
|
||||
await root.locator('.route-status').waitFor({ state: 'visible' });
|
||||
const value = await witness(`${iso ? 'iso' : 'flat'}_${theme}_${name}`, id);
|
||||
out[`actualProjection_${iso}_${theme}_${name}`] = value.projectionIso === iso
|
||||
&& (!iso || (value.isoWalls && value.sourceRaised));
|
||||
if (name === 'remote-count') out[`remoteCount_${iso}_${theme}`] = value.badges.some((badge) => /1/.test(badge.text) && badge.kind === 'remote');
|
||||
if (name === 'status-only') {
|
||||
out[`statusOnlyHasNoEndpoint_${iso}_${theme}`] = !value.endpoint && value.lines.length === 0
|
||||
&& value.badges.some((badge) => /No route data/.test(badge.text));
|
||||
await page.screenshot({ path: fileURLToPath(new URL(`status-only-${iso ? 'iso' : 'flat'}-${theme}.png`, artifacts)) });
|
||||
if (!iso && theme === 'light') {
|
||||
// Recreate only the old display position, not product state. The
|
||||
// same intersection oracle must reject the original defect.
|
||||
const negative = await page.evaluate(({ x, y }) => {
|
||||
const tip = window.__card.shadowRoot.querySelector('[data-hp-live-tip]');
|
||||
const before = tip.getAttribute('style');
|
||||
tip.style.left = `${Math.min(innerWidth - tip.offsetWidth - 8, x + 12)}px`;
|
||||
tip.style.top = `${Math.min(innerHeight - tip.offsetHeight - 8, y + 12)}px`;
|
||||
return before;
|
||||
}, pointer);
|
||||
const oldPlacement = await sample(id);
|
||||
evidence.push({ provider, name: 'negative-control-cursor-plus-12', ...oldPlacement });
|
||||
out.oldPlacementNegativeControlFails = !oldPlacement.clean && oldPlacement.tipVisible
|
||||
&& oldPlacement.badges.some(({ rect }) => Math.max(0, Math.min(rect.right, oldPlacement.tip.right)
|
||||
- Math.max(rect.left, oldPlacement.tip.left)) * Math.max(0, Math.min(rect.bottom, oldPlacement.tip.bottom)
|
||||
- Math.max(rect.top, oldPlacement.tip.top)) > 10);
|
||||
await page.screenshot({ path: fileURLToPath(new URL('negative-control-old-placement.png', artifacts)) });
|
||||
await root.locator('[data-hp-live-tip]').evaluate((tip, style) => tip.setAttribute('style', style), negative);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// Live provider status arrives while the mouse remains stationary.
|
||||
await deliver({ phase: 'error', stale: true });
|
||||
await page.waitForFunction(() => /Stale data/i.test(window.__card.shadowRoot.querySelector('hp-zigbee-topology-overlay')
|
||||
?.shadowRoot?.querySelector('.route-status')?.textContent || ''));
|
||||
await settle();
|
||||
const changed = await witness('runtimeErrorStaleNoPointerMove', 'd_kettle');
|
||||
out.runtimeIncludesPartialStaleError = changed.badges.some((badge) => /Incomplete data/.test(badge.text)
|
||||
&& /Stale data/i.test(badge.text) && /could not be loaded/i.test(badge.text));
|
||||
await deliver();
|
||||
await setVolumetricView(false);
|
||||
await page.evaluate(() => window.__hpTest.switchSpace('garden'));
|
||||
const longName = ('Long landing router <safe> & ' + 'north corridor diagnostic lighting '.repeat(5)).trim();
|
||||
await deliver({ name: longName });
|
||||
await page.waitForTimeout(300);
|
||||
await hover('d_mower');
|
||||
const long = await witness('longName', 'd_mower');
|
||||
out.longNameWrapsInsideStage = long.badgeInside && long.safeText
|
||||
&& long.badges.some((badge) => badge.text.includes(longName) && badge.rect.height > 25);
|
||||
await page.screenshot({ path: fileURLToPath(new URL('long-remote-caption.png', artifacts)) });
|
||||
// Freeze the fixture header/stage height so horizontal container resize
|
||||
// cannot move the marker away and create an unrelated native pointerout.
|
||||
await deliver({ name: remoteName });
|
||||
await page.evaluate(() => {
|
||||
const style = document.createElement('style');
|
||||
style.textContent = '.head{height:100px!important;min-height:100px!important;max-height:100px!important;overflow:hidden}.stage{height:400px!important;min-height:400px!important;max-height:400px!important}';
|
||||
window.__card.shadowRoot.append(style);
|
||||
});
|
||||
await page.waitForTimeout(150);
|
||||
await hover('d_mower');
|
||||
const beforeResize = await sample('d_mower');
|
||||
await page.evaluate(() => { document.getElementById('host').style.width = '95px'; });
|
||||
await page.waitForTimeout(150);
|
||||
await witness('narrowHidesOnlyOrdinaryTip', 'd_mower', { hidden: true });
|
||||
await page.screenshot({ path: fileURLToPath(new URL('narrow-priority.png', artifacts)) });
|
||||
await deliver({ clear: true }); await settle();
|
||||
const narrowWithoutBadges = await sample('d_mower');
|
||||
out.removingBadgesRestoresHiddenTipWithoutNewHover = narrowWithoutBadges.tipVisible
|
||||
&& narrowWithoutBadges.badges.length === 0;
|
||||
await deliver({ restore: true }); await settle();
|
||||
await witness('returningBadgesReappliesNarrowFallback', 'd_mower', { hidden: true });
|
||||
await page.evaluate(() => { document.getElementById('host').style.width = '900px'; });
|
||||
await page.waitForTimeout(150);
|
||||
const restored = await witness('resizeRestoresWithoutNewHover', 'd_mower');
|
||||
out.resizePreservesSourceAndRoute = JSON.stringify(restored.source) === JSON.stringify(beforeResize.source)
|
||||
&& JSON.stringify(restored.lines) === JSON.stringify(beforeResize.lines);
|
||||
await deliver({ clear: true });
|
||||
await settle();
|
||||
const removed = await sample('d_mower');
|
||||
out.removingDiagnosticsRestoresOrdinaryTip = removed.tipVisible && removed.badges.length === 0;
|
||||
await deliver({ restore: true, name: remoteName });
|
||||
await hover('d_mower');
|
||||
const networkBefore = JSON.stringify((await sample('d_mower')).calls);
|
||||
for (let i = 0; i < 12; i++) await page.mouse.move(pointer.x + i % 3, pointer.y + i % 2);
|
||||
out.pointerMotionNeverFetches = JSON.stringify((await sample('d_mower')).calls) === networkBefore;
|
||||
await page.mouse.move(2, 2); await settle();
|
||||
const left = await sample('d_mower');
|
||||
out.pointerLeaveClearsBoth = !left.tipVisible && left.badges.length === 0;
|
||||
await page.evaluate(() => window.__hpTest.switchSpace('f1'));
|
||||
await hover('d_tv');
|
||||
const ordinary = await sample('d_tv');
|
||||
out.nonZigbeeRetainsOrdinaryTooltip = ordinary.tipVisible && ordinary.badges.length === 0;
|
||||
await page.evaluate(() => window.__hpTest.switchSpace('garden'));
|
||||
await page.evaluate(() => window.__hpTest.setLayout((layout) => ({ ...layout,
|
||||
d_mower: { s: 'garden', x: 0.94, y: 0.12 },
|
||||
})));
|
||||
await hover('d_mower');
|
||||
const edge = await witness('edgeCaption', 'd_mower');
|
||||
out.edgeCaptionInsideWorkingArea = edge.badgeInside;
|
||||
await page.mouse.wheel(0, -180);
|
||||
await page.waitForTimeout(450);
|
||||
const zoomed = await witness('cameraZoomWithoutNewHover', 'd_mower');
|
||||
out.cameraActuallyChangesGeometry = Math.abs(edge.source.width - zoomed.source.width) > 0.1
|
||||
|| Math.abs(edge.source.left - zoomed.source.left) > 0.1;
|
||||
await page.screenshot({ path: fileURLToPath(new URL('edge-zoom.png', artifacts)) });
|
||||
// A second production card shares the HA connection/runtime but owns its
|
||||
// own pointer/focus tip and layout observers.
|
||||
await page.evaluate(() => {
|
||||
const second = document.createElement('houseplan-card');
|
||||
second.id = 'second-tooltip-card';
|
||||
second.setConfig({ type: 'custom:houseplan-card', icon_size: 3.4 });
|
||||
second.hass = window.__card.hass;
|
||||
second.style.cssText = 'position:fixed;left:5px;top:5px;width:350px;z-index:100';
|
||||
document.body.append(second);
|
||||
});
|
||||
const second = page.locator('#second-tooltip-card');
|
||||
await second.locator('[data-hp="device"]').first().waitFor({ state: 'visible' });
|
||||
await second.locator('[data-hp="device"]').first().focus();
|
||||
await page.keyboard.press('Tab');
|
||||
await settle();
|
||||
out.secondCardKeyboardTipDoesNotActivateTopology = await second.evaluate((card) => {
|
||||
const root = card.shadowRoot;
|
||||
return root.activeElement?.matches('[data-hp="device"]:focus-visible')
|
||||
&& !root.querySelector('[data-hp-live-tip]').hidden
|
||||
&& !root.querySelector('hp-zigbee-topology-overlay')?.shadowRoot?.querySelector('.parent-bubble,.remote,.route-status');
|
||||
});
|
||||
await hover('d_mower');
|
||||
const firstWithSecond = await sample('d_mower');
|
||||
await second.evaluate((card) => card.remove());
|
||||
await settle();
|
||||
const afterSecondRemoved = await sample('d_mower');
|
||||
out.secondCardUnmountDoesNotClearFirstHover = firstWithSecond.clean && afterSecondRemoved.clean
|
||||
&& JSON.stringify(firstWithSecond.badges) === JSON.stringify(afterSecondRemoved.badges);
|
||||
for (const pointerType of ['touch', 'pen']) {
|
||||
await marker('d_mower').dispatchEvent('pointerdown', { pointerType, pointerId: 82,
|
||||
bubbles: true, composed: true, clientX: pointer.x, clientY: pointer.y });
|
||||
await settle();
|
||||
const cleared = await sample('d_mower');
|
||||
out[`${pointerType}ClearsTooltipAndTopology`] = !cleared.tipVisible && cleared.badges.length === 0;
|
||||
await hover('d_mower');
|
||||
await witness(`mouseRestoresAfter_${pointerType}`, 'd_mower');
|
||||
}
|
||||
await page.mouse.move(2, 2);
|
||||
await page.keyboard.press('Tab');
|
||||
await marker('d_mower').focus();
|
||||
await settle();
|
||||
const keyboardOnly = await sample('d_mower');
|
||||
out.focusAloneShowsOrdinaryTipWithoutTopology = keyboardOnly.tipVisible && keyboardOnly.badges.length === 0
|
||||
&& await marker('d_mower').evaluate((element) => element.matches(':focus-visible'));
|
||||
await hover('d_mower');
|
||||
await witness('focusedDeviceMouseDiagnostics', 'd_mower');
|
||||
await page.mouse.move(2, 2); await settle();
|
||||
const focusRestored = await sample('d_mower');
|
||||
out.pointerLeaveRestoresKeyboardTipAfterDiagnostics = focusRestored.tipVisible
|
||||
&& focusRestored.tipText === keyboardOnly.tipText && focusRestored.badges.length === 0;
|
||||
await marker('d_mower').evaluate((element) => element.blur());
|
||||
// A transformed HA/dashboard ancestor establishes the containing block
|
||||
// for a position:fixed tooltip. Measure the actual screen result, not
|
||||
// the CSS left/top values, before and after document scrolling.
|
||||
await hover('d_mower');
|
||||
const beforeAncestorTransform = await sample('d_mower');
|
||||
await page.evaluate(() => {
|
||||
document.body.style.minHeight = '1800px';
|
||||
const host = document.getElementById('host');
|
||||
host.style.transformOrigin = '0 0';
|
||||
host.style.transform = 'translate(35px, 125px) scale(0.82)';
|
||||
});
|
||||
await hover('d_mower');
|
||||
const transformed = await witness('transformedContainingAncestor', 'd_mower');
|
||||
out.ancestorScaleReallyAppliesToFixedTooltip = Math.abs(
|
||||
transformed.source.width / beforeAncestorTransform.source.width - 0.82,
|
||||
) < 0.02 && await root.locator('[data-hp-live-tip]').evaluate((tip) =>
|
||||
getComputedStyle(tip).position === 'fixed');
|
||||
out.transformedBadgesInsideVisibleStage = transformed.badgeInside;
|
||||
await page.screenshot({ path: fileURLToPath(new URL('ancestor-transform.png', artifacts)) });
|
||||
// Six CSS pixels keep the pointer inside the marker, so this check also
|
||||
// witnesses the scroll observer without a new pointer event/hover.
|
||||
await page.evaluate(() => window.scrollTo(0, 6));
|
||||
await settle();
|
||||
const smallScroll = await witness('ancestorScrollWithoutNewHover', 'd_mower');
|
||||
out.scrollActuallyMovesScreenGeometry = Math.abs(transformed.source.top - smallScroll.source.top - 6) < 1;
|
||||
// A larger document scroll moves the source away from the old pointer;
|
||||
// re-enter the still-visible marker with a real mouse.
|
||||
await page.evaluate(() => window.scrollTo(0, 180));
|
||||
await hover('d_mower');
|
||||
const scrolled = await witness('transformedAncestorAfterPageScroll', 'd_mower');
|
||||
out.largePageScrollKeepsBadgesInsideVisibleStage = scrolled.badgeInside
|
||||
&& Math.abs(transformed.source.top - scrolled.source.top - 180) < 1
|
||||
&& await page.evaluate(() => window.scrollY === 180);
|
||||
await page.screenshot({ path: fileURLToPath(new URL('ancestor-transform-scrolled.png', artifacts)) });
|
||||
}
|
||||
} catch (error) {
|
||||
out[`${provider}_completed`] = false;
|
||||
console.error(error);
|
||||
await page.screenshot({ path: fileURLToPath(new URL(`${provider}-failure.png`, artifacts)) });
|
||||
} finally {
|
||||
// Keep the shared smoke page-error guard authoritative for both browsers.
|
||||
await finish(browser);
|
||||
}
|
||||
}
|
||||
writeFileSync(new URL('layout-evidence.json', artifacts), JSON.stringify({ out, evidence }, null, 2));
|
||||
checkAll(out);
|
||||
await finish(null, out);
|
||||
@@ -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;
|
||||
@@ -271,8 +343,9 @@ const result = await page.evaluate(async () => {
|
||||
?.querySelector('[data-hp="zigbee-topology-parent-bubble"]'), 'remote parent bubble');
|
||||
let activeOverlay = root().querySelector('hp-zigbee-topology-overlay');
|
||||
const firstTitle = card._serverCfg.spaces.find((space) => space.id === 'f1')?.title;
|
||||
const remoteParentName = card.hass.devices.d_light1.name_by_user || card.hass.devices.d_light1.name;
|
||||
out.remoteParentBubble = activeOverlay.shadowRoot
|
||||
.querySelector('[data-hp="zigbee-topology-parent-bubble"]')?.textContent.trim() === firstTitle
|
||||
.querySelector('[data-hp="zigbee-topology-parent-bubble"]')?.textContent.trim() === `${firstTitle} (${remoteParentName})`
|
||||
&& activeOverlay.shadowRoot.querySelector('[data-hp="zigbee-topology-parent-bubble"]')
|
||||
?.getAttribute('data-kind') === 'remote-space'
|
||||
&& !!activeOverlay.shadowRoot.querySelector('[data-hp="zigbee-topology-parent-arrow"]')
|
||||
@@ -287,8 +360,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 +377,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 +444,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 +729,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 +745,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 +773,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 +792,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 +807,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 +820,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 +848,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 +873,168 @@ 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;
|
||||
}
|
||||
/* #802: isolate route ink. At scale=.5 the ordinary pointer tooltip can
|
||||
cover the target arrow; its dark background is not outline coverage.
|
||||
Real tooltip/badge coexistence is witnessed in smoke_zigbee_tooltip_layout. */
|
||||
[data-hp-live-tip] { display: none !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 +1069,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' });
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
@@ -1,598 +1,626 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"fingerprint": "f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47",
|
||||
"fingerprint": "06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698",
|
||||
"entry": "houseplan-card.js",
|
||||
"panelEntry": "houseplan-panel.js",
|
||||
"initialViewFiles": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js",
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"houseplan-card.js"
|
||||
],
|
||||
"initialViewGzipBytes": 300133,
|
||||
"initialViewGzipBytes": 301044,
|
||||
"initialPanelFiles": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js",
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelGzipBytes": 301657,
|
||||
"initialPanelGzipBytes": 302566,
|
||||
"initialPanelOnlyFiles": [
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelOnlyGzipBytes": 2327,
|
||||
"initialPanelOnlyGzipBytes": 2326,
|
||||
"lazyFiles": [
|
||||
"houseplan-assets/backdrop-pick-CZVGAeU-.js",
|
||||
"houseplan-assets/de-OdAXBAeQ.js",
|
||||
"houseplan-assets/editor-CwGhln6q.js",
|
||||
"houseplan-assets/form-kit.styles-CeNtVtY3.js",
|
||||
"houseplan-assets/fr-Biv7-u6n.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BAcdlNmw.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-CG4OcOnH.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-Cercm8ch.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-ngF800eZ.js",
|
||||
"houseplan-assets/iso-scene-render-Dz6TjBBK.js",
|
||||
"houseplan-assets/led-strip-editor-CYr90qWm.js",
|
||||
"houseplan-assets/led-strip-geometry-BmYmi_Wl.js",
|
||||
"houseplan-assets/led-strip-runtime-BFC6kyfR.js",
|
||||
"houseplan-assets/live-interaction-runtime-DOdg_Aoz.js",
|
||||
"houseplan-assets/moon-runtime-CKujBO8X.js",
|
||||
"houseplan-assets/namespace-language-Cx9fDV_P.js",
|
||||
"houseplan-assets/pdf-export-Ck6Q7DhV.js",
|
||||
"houseplan-assets/space-editor-fFzB1fav.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-DodMV5zo.js",
|
||||
"houseplan-assets/zigbee-topology-FegR1hpF.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-B5WvzSzW.js"
|
||||
"houseplan-assets/backdrop-pick-BlKYl_U7.js",
|
||||
"houseplan-assets/de-7Zku19fP.js",
|
||||
"houseplan-assets/editor-CmIdArPY.js",
|
||||
"houseplan-assets/floating-surface-pyD_i_Ly.js",
|
||||
"houseplan-assets/form-kit.styles-DNNRm1qV.js",
|
||||
"houseplan-assets/fr-CmN_ktKN.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-D2WZwvLw.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-2dyTGznE.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-D3GuUom3.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-TWYzHq8F.js",
|
||||
"houseplan-assets/iso-scene-render-3D4T2rIf.js",
|
||||
"houseplan-assets/led-strip-editor-BV28Sv6H.js",
|
||||
"houseplan-assets/led-strip-geometry-DCOEb7ps.js",
|
||||
"houseplan-assets/led-strip-runtime-C3jpBGK_.js",
|
||||
"houseplan-assets/live-interaction-runtime-BI3F6BM_.js",
|
||||
"houseplan-assets/live-tip-placement-DJeWazgc.js",
|
||||
"houseplan-assets/moon-runtime-BOGkZE2h.js",
|
||||
"houseplan-assets/namespace-language-COmALraj.js",
|
||||
"houseplan-assets/pdf-export-C6l2UAvp.js",
|
||||
"houseplan-assets/space-editor-BItHjX5t.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-l2frpvJL.js",
|
||||
"houseplan-assets/zigbee-topology-DtQtLxJ3.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-9_MBQQpH.js"
|
||||
],
|
||||
"lazyGzipBytes": 478823,
|
||||
"lazyGzipBytes": 485800,
|
||||
"lazyEditorFiles": [
|
||||
"houseplan-assets/backdrop-pick-CZVGAeU-.js",
|
||||
"houseplan-assets/editor-CwGhln6q.js",
|
||||
"houseplan-assets/form-kit.styles-CeNtVtY3.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BAcdlNmw.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-CG4OcOnH.js",
|
||||
"houseplan-assets/namespace-language-Cx9fDV_P.js",
|
||||
"houseplan-assets/zigbee-topology-FegR1hpF.js"
|
||||
"houseplan-assets/backdrop-pick-BlKYl_U7.js",
|
||||
"houseplan-assets/editor-CmIdArPY.js",
|
||||
"houseplan-assets/floating-surface-pyD_i_Ly.js",
|
||||
"houseplan-assets/form-kit.styles-DNNRm1qV.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-D2WZwvLw.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-2dyTGznE.js",
|
||||
"houseplan-assets/namespace-language-COmALraj.js",
|
||||
"houseplan-assets/zigbee-topology-DtQtLxJ3.js"
|
||||
],
|
||||
"lazyEditorGzipBytes": 240857,
|
||||
"lazyEditorGzipBytes": 243791,
|
||||
"lazyOnboardingFiles": [
|
||||
"houseplan-assets/backdrop-pick-CZVGAeU-.js",
|
||||
"houseplan-assets/form-kit.styles-CeNtVtY3.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-Cercm8ch.js",
|
||||
"houseplan-assets/namespace-language-Cx9fDV_P.js"
|
||||
"houseplan-assets/backdrop-pick-BlKYl_U7.js",
|
||||
"houseplan-assets/floating-surface-pyD_i_Ly.js",
|
||||
"houseplan-assets/form-kit.styles-DNNRm1qV.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-D3GuUom3.js",
|
||||
"houseplan-assets/namespace-language-COmALraj.js"
|
||||
],
|
||||
"lazyOnboardingGzipBytes": 28406,
|
||||
"lazyOnboardingGzipBytes": 28672,
|
||||
"lazyLocaleFiles": [
|
||||
"houseplan-assets/de-OdAXBAeQ.js",
|
||||
"houseplan-assets/fr-Biv7-u6n.js"
|
||||
"houseplan-assets/de-7Zku19fP.js",
|
||||
"houseplan-assets/fr-CmN_ktKN.js"
|
||||
],
|
||||
"lazyLocaleGzipBytes": 53864,
|
||||
"lazyLocaleGzipBytes": 53862,
|
||||
"lazyIsometricFiles": [
|
||||
"houseplan-assets/iso-scene-render-Dz6TjBBK.js"
|
||||
"houseplan-assets/iso-scene-render-3D4T2rIf.js"
|
||||
],
|
||||
"lazyIsometricGzipBytes": 12349,
|
||||
"lazyIsometricGzipBytes": 12347,
|
||||
"lazyFurnitureArtFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-BAcdlNmw.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-D2WZwvLw.js"
|
||||
],
|
||||
"lazyFurnitureArtGzipBytes": 16940,
|
||||
"lazyFurnitureArtGzipBytes": 16939,
|
||||
"lazyPdfFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-BAcdlNmw.js",
|
||||
"houseplan-assets/pdf-export-Ck6Q7DhV.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-D2WZwvLw.js",
|
||||
"houseplan-assets/pdf-export-C6l2UAvp.js"
|
||||
],
|
||||
"lazyPdfGzipBytes": 126938,
|
||||
"lazyPdfGzipBytes": 126936,
|
||||
"lazyMoonFiles": [
|
||||
"houseplan-assets/moon-runtime-CKujBO8X.js"
|
||||
"houseplan-assets/moon-runtime-BOGkZE2h.js"
|
||||
],
|
||||
"lazyMoonGzipBytes": 11715,
|
||||
"lazyLedFiles": [
|
||||
"houseplan-assets/led-strip-field-C-QXfKME.js",
|
||||
"houseplan-assets/led-strip-geometry-BmYmi_Wl.js",
|
||||
"houseplan-assets/led-strip-runtime-BFC6kyfR.js"
|
||||
"houseplan-assets/led-strip-field-aqwdQqPw.js",
|
||||
"houseplan-assets/led-strip-geometry-DCOEb7ps.js",
|
||||
"houseplan-assets/led-strip-runtime-C3jpBGK_.js"
|
||||
],
|
||||
"lazyLedGzipBytes": 10608,
|
||||
"lazyLedGzipBytes": 10686,
|
||||
"lazyLedEditorFiles": [
|
||||
"houseplan-assets/led-strip-editor-CYr90qWm.js",
|
||||
"houseplan-assets/led-strip-geometry-BmYmi_Wl.js",
|
||||
"houseplan-assets/namespace-language-Cx9fDV_P.js"
|
||||
"houseplan-assets/led-strip-editor-BV28Sv6H.js",
|
||||
"houseplan-assets/led-strip-geometry-DCOEb7ps.js",
|
||||
"houseplan-assets/namespace-language-COmALraj.js"
|
||||
],
|
||||
"lazyLedEditorGzipBytes": 10707,
|
||||
"lazyLedEditorGzipBytes": 10704,
|
||||
"lazyNamespaceLocaleFiles": [
|
||||
"houseplan-assets/led-de-Cyc5JSYX.js",
|
||||
"houseplan-assets/led-fr-D35czkVh.js",
|
||||
"houseplan-assets/led-ru-3UT1uLJM.js",
|
||||
"houseplan-assets/settings-de-DduqUD8A.js",
|
||||
"houseplan-assets/settings-fr-dGkZH4QA.js",
|
||||
"houseplan-assets/settings-ru-DlTTeZSD.js",
|
||||
"houseplan-assets/support-de-B1x5MhBx.js",
|
||||
"houseplan-assets/support-fr-BBk5swZV.js",
|
||||
"houseplan-assets/support-ru-BryxAsau.js",
|
||||
"houseplan-assets/tools-de-BdHNnR7q.js",
|
||||
"houseplan-assets/tools-fr-4AvnrKW4.js",
|
||||
"houseplan-assets/tools-ru-DkRXe0vq.js",
|
||||
"houseplan-assets/topology-de-j5awVHUt.js",
|
||||
"houseplan-assets/topology-fr-BNvn6hS_.js",
|
||||
"houseplan-assets/topology-ru-CLr3lSHb.js"
|
||||
"houseplan-assets/led-de-DrXCZ2sy.js",
|
||||
"houseplan-assets/led-fr-Dpe8-hj5.js",
|
||||
"houseplan-assets/led-ru-Bn4KLybY.js",
|
||||
"houseplan-assets/settings-de-NUJhD35v.js",
|
||||
"houseplan-assets/settings-fr-BxWFQjqM.js",
|
||||
"houseplan-assets/settings-ru-DxtPqpRy.js",
|
||||
"houseplan-assets/support-de-B189S_5G.js",
|
||||
"houseplan-assets/support-fr-BO-hSBLk.js",
|
||||
"houseplan-assets/support-ru-DslL3KcH.js",
|
||||
"houseplan-assets/tools-de-DaCueVOA.js",
|
||||
"houseplan-assets/tools-fr-rOKrLY3t.js",
|
||||
"houseplan-assets/tools-ru-qWSdpJow.js",
|
||||
"houseplan-assets/topology-de-wNwfkZjf.js",
|
||||
"houseplan-assets/topology-fr-D9pmNHVr.js",
|
||||
"houseplan-assets/topology-ru-D6m0B05V.js"
|
||||
],
|
||||
"lazyNamespaceLocaleGzipBytes": 30067,
|
||||
"lazyNamespaceLocaleGzipBytes": 31734,
|
||||
"files": [
|
||||
{
|
||||
"path": "houseplan-assets/backdrop-pick-CZVGAeU-.js",
|
||||
"sha256": "8ba250c89f76f99a0f570d17ffed41bc5784598a3aff36f2e90e9d9d9b57d176",
|
||||
"rawBytes": 55329,
|
||||
"gzipBytes": 18027,
|
||||
"path": "houseplan-assets/backdrop-pick-BlKYl_U7.js",
|
||||
"sha256": "6b955d4d79600a2ea568047ed158afc056fdafda5d5fea3fa6b6d3f4c7e336fc",
|
||||
"rawBytes": 54425,
|
||||
"gzipBytes": 17699,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/form-kit.styles-CeNtVtY3.js",
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js",
|
||||
"houseplan-assets/namespace-language-Cx9fDV_P.js"
|
||||
"houseplan-assets/floating-surface-pyD_i_Ly.js",
|
||||
"houseplan-assets/form-kit.styles-DNNRm1qV.js",
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"houseplan-assets/namespace-language-COmALraj.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/settings-de-DduqUD8A.js",
|
||||
"houseplan-assets/settings-fr-dGkZH4QA.js",
|
||||
"houseplan-assets/settings-ru-DlTTeZSD.js"
|
||||
"houseplan-assets/settings-de-NUJhD35v.js",
|
||||
"houseplan-assets/settings-fr-BxWFQjqM.js",
|
||||
"houseplan-assets/settings-ru-DxtPqpRy.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/de-OdAXBAeQ.js",
|
||||
"sha256": "99c051943b522a553faa2437dbf7fe403a6f680125231b6a4555cd3382a7bdab",
|
||||
"path": "houseplan-assets/de-7Zku19fP.js",
|
||||
"sha256": "fc6989b8d40ada5fa07cc3e7e96b7869e1ce1b8518dbd75319ffbfef2c241db4",
|
||||
"rawBytes": 89873,
|
||||
"gzipBytes": 27164,
|
||||
"gzipBytes": 27163,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/editor-CwGhln6q.js",
|
||||
"sha256": "0a6e4095edddd9a3d4ad4d724e3029ac05b019f97f3ac6da382de4f36fb1f08a",
|
||||
"path": "houseplan-assets/editor-CmIdArPY.js",
|
||||
"sha256": "f0ddb6c0402f2a4cd7160f5cf06bf424f57bc831031e95d8defa4310c0149b44",
|
||||
"rawBytes": 3833,
|
||||
"gzipBytes": 1583,
|
||||
"gzipBytes": 1585,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js"
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/form-kit.styles-CeNtVtY3.js",
|
||||
"sha256": "30b67a478f01106f27a2200f2702c3978d69c7d91d03c8269bf0c23e3abaefdb",
|
||||
"path": "houseplan-assets/floating-surface-pyD_i_Ly.js",
|
||||
"sha256": "036f5149e71d886f8707d7b8a6335a4222e564ea5b260d5cfda5e2e13729c040",
|
||||
"rawBytes": 1104,
|
||||
"gzipBytes": 578,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/form-kit.styles-DNNRm1qV.js",
|
||||
"sha256": "6dd7fe7e624218dfe80e0c02df0a555f509b6bee7c8855f644ced209682a4e46",
|
||||
"rawBytes": 25605,
|
||||
"gzipBytes": 5060,
|
||||
"gzipBytes": 5058,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/fr-Biv7-u6n.js",
|
||||
"sha256": "edf1a8c8ade07fc524f55f0cc05b0360bc3f83615fdb4b538290c0f95fe49e67",
|
||||
"path": "houseplan-assets/fr-CmN_ktKN.js",
|
||||
"sha256": "00270b63c9403ccc23c216d1f12c55d3f552db97afc001892e3bf7c914737c4a",
|
||||
"rawBytes": 92266,
|
||||
"gzipBytes": 26700,
|
||||
"gzipBytes": 26699,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-BAcdlNmw.js",
|
||||
"sha256": "f43a8912c4ff8c0d32b11528a532f2ef813619a7524f476aaa3847b163b7b15a",
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-D2WZwvLw.js",
|
||||
"sha256": "2b7ab5e089eb0d16b27f3963e56a7cb60693f4462594fe88e6cb430dc9eaec31",
|
||||
"rawBytes": 52035,
|
||||
"gzipBytes": 16940,
|
||||
"gzipBytes": 16939,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-card-jTmPF7EN.js",
|
||||
"sha256": "608a92c0cf104af3990a1821725aab9983db2915aefc040c0f30b249f2e12f2d",
|
||||
"rawBytes": 1056412,
|
||||
"gzipBytes": 299330,
|
||||
"path": "houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"sha256": "3b1c90b7c98aa0e02bbeff529e4434a216b1a3a071f0da2d2a610800e0ecf1c6",
|
||||
"rawBytes": 1059200,
|
||||
"gzipBytes": 300240,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/de-OdAXBAeQ.js",
|
||||
"houseplan-assets/editor-CwGhln6q.js",
|
||||
"houseplan-assets/fr-Biv7-u6n.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BAcdlNmw.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-CG4OcOnH.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-Cercm8ch.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-ngF800eZ.js",
|
||||
"houseplan-assets/iso-scene-render-Dz6TjBBK.js",
|
||||
"houseplan-assets/led-strip-editor-CYr90qWm.js",
|
||||
"houseplan-assets/led-strip-runtime-BFC6kyfR.js",
|
||||
"houseplan-assets/live-interaction-runtime-DOdg_Aoz.js",
|
||||
"houseplan-assets/moon-runtime-CKujBO8X.js",
|
||||
"houseplan-assets/pdf-export-Ck6Q7DhV.js",
|
||||
"houseplan-assets/space-editor-fFzB1fav.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-DodMV5zo.js"
|
||||
"houseplan-assets/de-7Zku19fP.js",
|
||||
"houseplan-assets/editor-CmIdArPY.js",
|
||||
"houseplan-assets/fr-CmN_ktKN.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-D2WZwvLw.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-2dyTGznE.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-D3GuUom3.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-TWYzHq8F.js",
|
||||
"houseplan-assets/iso-scene-render-3D4T2rIf.js",
|
||||
"houseplan-assets/led-strip-editor-BV28Sv6H.js",
|
||||
"houseplan-assets/led-strip-runtime-C3jpBGK_.js",
|
||||
"houseplan-assets/live-interaction-runtime-BI3F6BM_.js",
|
||||
"houseplan-assets/moon-runtime-BOGkZE2h.js",
|
||||
"houseplan-assets/pdf-export-C6l2UAvp.js",
|
||||
"houseplan-assets/space-editor-BItHjX5t.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-l2frpvJL.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-CG4OcOnH.js",
|
||||
"sha256": "668d7a9ce6b17ce2434919ae7d80b57d41b31ae7b92c332c3ab3acc810910191",
|
||||
"rawBytes": 695360,
|
||||
"gzipBytes": 194536,
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-2dyTGznE.js",
|
||||
"sha256": "7e71fabc225c825694c7f1dca1ab89859ae7d1f8481f62a01d11d971b5486a86",
|
||||
"rawBytes": 698926,
|
||||
"gzipBytes": 195573,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-CZVGAeU-.js",
|
||||
"houseplan-assets/form-kit.styles-CeNtVtY3.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BAcdlNmw.js",
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js",
|
||||
"houseplan-assets/namespace-language-Cx9fDV_P.js",
|
||||
"houseplan-assets/zigbee-topology-FegR1hpF.js"
|
||||
"houseplan-assets/backdrop-pick-BlKYl_U7.js",
|
||||
"houseplan-assets/floating-surface-pyD_i_Ly.js",
|
||||
"houseplan-assets/form-kit.styles-DNNRm1qV.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-D2WZwvLw.js",
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"houseplan-assets/namespace-language-COmALraj.js",
|
||||
"houseplan-assets/zigbee-topology-DtQtLxJ3.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/support-de-B1x5MhBx.js",
|
||||
"houseplan-assets/support-fr-BBk5swZV.js",
|
||||
"houseplan-assets/support-ru-BryxAsau.js",
|
||||
"houseplan-assets/tools-de-BdHNnR7q.js",
|
||||
"houseplan-assets/tools-fr-4AvnrKW4.js",
|
||||
"houseplan-assets/tools-ru-DkRXe0vq.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-B5WvzSzW.js"
|
||||
"houseplan-assets/support-de-B189S_5G.js",
|
||||
"houseplan-assets/support-fr-BO-hSBLk.js",
|
||||
"houseplan-assets/support-ru-DslL3KcH.js",
|
||||
"houseplan-assets/tools-de-DaCueVOA.js",
|
||||
"houseplan-assets/tools-fr-rOKrLY3t.js",
|
||||
"houseplan-assets/tools-ru-qWSdpJow.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-9_MBQQpH.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-Cercm8ch.js",
|
||||
"sha256": "4929b3040b3430a7325c9fabf42ae799b8b6f50b4a56f7de229b29b432a3f212",
|
||||
"rawBytes": 15886,
|
||||
"gzipBytes": 4909,
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-D3GuUom3.js",
|
||||
"sha256": "d77f02c0917154f5c1fefc63ad7445b6260fbbd3ec2ac4738e22777c75dc5bf9",
|
||||
"rawBytes": 15930,
|
||||
"gzipBytes": 4930,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-CZVGAeU-.js",
|
||||
"houseplan-assets/form-kit.styles-CeNtVtY3.js",
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js",
|
||||
"houseplan-assets/namespace-language-Cx9fDV_P.js"
|
||||
"houseplan-assets/backdrop-pick-BlKYl_U7.js",
|
||||
"houseplan-assets/floating-surface-pyD_i_Ly.js",
|
||||
"houseplan-assets/form-kit.styles-DNNRm1qV.js",
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"houseplan-assets/namespace-language-COmALraj.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-ngF800eZ.js",
|
||||
"sha256": "6740199c84bf1358848f8674f693d624ef60e7273565b8f7dfdc63ab54a5cfad",
|
||||
"rawBytes": 10958,
|
||||
"gzipBytes": 3768,
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-TWYzHq8F.js",
|
||||
"sha256": "9f9a41dc101f986e5579580b487fa443763ae84b983e7002557feb1d87477997",
|
||||
"rawBytes": 16715,
|
||||
"gzipBytes": 5524,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js",
|
||||
"houseplan-assets/namespace-language-Cx9fDV_P.js",
|
||||
"houseplan-assets/zigbee-topology-FegR1hpF.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-B5WvzSzW.js"
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"houseplan-assets/live-tip-placement-DJeWazgc.js",
|
||||
"houseplan-assets/namespace-language-COmALraj.js",
|
||||
"houseplan-assets/zigbee-topology-DtQtLxJ3.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-9_MBQQpH.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/iso-scene-render-Dz6TjBBK.js",
|
||||
"sha256": "5e089c12ef5f23f0cc4955adbeda549d4b6148fa1185dec73499e3f28c16cd8f",
|
||||
"path": "houseplan-assets/iso-scene-render-3D4T2rIf.js",
|
||||
"sha256": "b9afcc206e4008d23d18a588a43bb05b4929f51fcbe4d19411cacf09dd13c2d3",
|
||||
"rawBytes": 36700,
|
||||
"gzipBytes": 12349,
|
||||
"gzipBytes": 12347,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js"
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/led-de-Cyc5JSYX.js",
|
||||
"sha256": "3798fe1e504d559516bca4ea9dfa43e256c40cae7a7fa8c9cf95e790c492a717",
|
||||
"path": "houseplan-assets/led-de-DrXCZ2sy.js",
|
||||
"sha256": "6c289c749204ef31d1404170038deda2503fc2bcac407ad00cf9b3143feeb660",
|
||||
"rawBytes": 1907,
|
||||
"gzipBytes": 920,
|
||||
"gzipBytes": 919,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/led-fr-D35czkVh.js",
|
||||
"sha256": "3c529fdecc7487819c43a3fa661f3093db6f01ff2634c93f891eb947736e16dc",
|
||||
"path": "houseplan-assets/led-fr-Dpe8-hj5.js",
|
||||
"sha256": "97410cb19c4d915f7e74b0d7fe30a3c5560ff07cba6de06daf32731c852415eb",
|
||||
"rawBytes": 1886,
|
||||
"gzipBytes": 905,
|
||||
"gzipBytes": 903,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/led-ru-3UT1uLJM.js",
|
||||
"sha256": "e969269aae76f25bc9eac8652465e59b589c070c495bc98f8750f03a3cda63be",
|
||||
"path": "houseplan-assets/led-ru-Bn4KLybY.js",
|
||||
"sha256": "bef109c08ac7fdce7e9c7046bd699a524d6645ea1548e98c89cbb0e25e7867a0",
|
||||
"rawBytes": 2525,
|
||||
"gzipBytes": 1106,
|
||||
"gzipBytes": 1104,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/led-strip-editor-CYr90qWm.js",
|
||||
"sha256": "04367f8873c25d58df3218bc7a3effb07b3fe5e6e0c237696e063473b371715a",
|
||||
"path": "houseplan-assets/led-strip-editor-BV28Sv6H.js",
|
||||
"sha256": "3c57d810c1248e97f41e10cd54bf688c4954ec9fd63f323d8dc464bd21179889",
|
||||
"rawBytes": 21704,
|
||||
"gzipBytes": 7383,
|
||||
"gzipBytes": 7380,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js",
|
||||
"houseplan-assets/led-strip-geometry-BmYmi_Wl.js",
|
||||
"houseplan-assets/namespace-language-Cx9fDV_P.js"
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"houseplan-assets/led-strip-geometry-DCOEb7ps.js",
|
||||
"houseplan-assets/namespace-language-COmALraj.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/led-de-Cyc5JSYX.js",
|
||||
"houseplan-assets/led-fr-D35czkVh.js",
|
||||
"houseplan-assets/led-ru-3UT1uLJM.js"
|
||||
"houseplan-assets/led-de-DrXCZ2sy.js",
|
||||
"houseplan-assets/led-fr-Dpe8-hj5.js",
|
||||
"houseplan-assets/led-ru-Bn4KLybY.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/led-strip-field-C-QXfKME.js",
|
||||
"sha256": "bffa7b3933838eb4b59c5346055fc7e6b6ba52dc6abc1e744715c2887d29b03e",
|
||||
"rawBytes": 7915,
|
||||
"gzipBytes": 3317,
|
||||
"path": "houseplan-assets/led-strip-field-aqwdQqPw.js",
|
||||
"sha256": "edc05f9c9778f7bf784797dbdc538109a6e5a2da131ca222b37b5716d3eb6f45",
|
||||
"rawBytes": 8066,
|
||||
"gzipBytes": 3380,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js",
|
||||
"houseplan-assets/led-strip-geometry-BmYmi_Wl.js"
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"houseplan-assets/led-strip-geometry-DCOEb7ps.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/led-strip-geometry-BmYmi_Wl.js",
|
||||
"sha256": "306d5ce23240d4fbf752d15d54912540937bcd90633d44acf1232c8a99e45172",
|
||||
"path": "houseplan-assets/led-strip-geometry-DCOEb7ps.js",
|
||||
"sha256": "6ea10abf3d2ebba4e2ad88b8b7c8bd9b1448f8d425ac2a509efe5837acf66ec3",
|
||||
"rawBytes": 7055,
|
||||
"gzipBytes": 2914,
|
||||
"gzipBytes": 2917,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/led-strip-runtime-BFC6kyfR.js",
|
||||
"sha256": "29cc93e49fbffb853664bb1e1c1d0ffb7e32fb6b9bc3a301e61a1990ed1e8c3c",
|
||||
"rawBytes": 11179,
|
||||
"gzipBytes": 4377,
|
||||
"path": "houseplan-assets/led-strip-runtime-C3jpBGK_.js",
|
||||
"sha256": "8098a7c8724a4af566e58019e69d99950b29ad43575b31ad0f87afca3a430b8d",
|
||||
"rawBytes": 11248,
|
||||
"gzipBytes": 4389,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js",
|
||||
"houseplan-assets/led-strip-geometry-BmYmi_Wl.js"
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"houseplan-assets/led-strip-geometry-DCOEb7ps.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/led-strip-field-C-QXfKME.js"
|
||||
"houseplan-assets/led-strip-field-aqwdQqPw.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/live-interaction-runtime-DOdg_Aoz.js",
|
||||
"sha256": "1f59d0fec3ef47363b16bd1806e0b43e0bbdb3467c8e711666047bd400367224",
|
||||
"rawBytes": 8370,
|
||||
"gzipBytes": 3281,
|
||||
"path": "houseplan-assets/live-interaction-runtime-BI3F6BM_.js",
|
||||
"sha256": "0b61352b8dc2a78900f6a3029b65dba6d0ea07c1ede08db1ffa05426a31ad5ee",
|
||||
"rawBytes": 9686,
|
||||
"gzipBytes": 3774,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js"
|
||||
"houseplan-assets/floating-surface-pyD_i_Ly.js",
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"houseplan-assets/live-tip-placement-DJeWazgc.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/moon-runtime-CKujBO8X.js",
|
||||
"sha256": "ff9784e9e755dae0f53b6676105aadfbe0a18cc00eda6c4de5dae7a0a721f595",
|
||||
"path": "houseplan-assets/live-tip-placement-DJeWazgc.js",
|
||||
"sha256": "307cc62e611a50e98ce322d26236f00b9a39e212018e81ce7b4a8d3ee1c0edab",
|
||||
"rawBytes": 1191,
|
||||
"gzipBytes": 681,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/moon-runtime-BOGkZE2h.js",
|
||||
"sha256": "2d8e1065f280249d2ef767708272932876d8d3416ea39a9b6735c53477c32307",
|
||||
"rawBytes": 30292,
|
||||
"gzipBytes": 11715,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js"
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/namespace-language-Cx9fDV_P.js",
|
||||
"sha256": "c494abeb11e1ae3f8b23403722bf41f4734a6b6fe4bb360e8346070cf61ac6f0",
|
||||
"rawBytes": 675,
|
||||
"gzipBytes": 410,
|
||||
"path": "houseplan-assets/namespace-language-COmALraj.js",
|
||||
"sha256": "24db675a12ac3f446b676bc47e897b9c370a021c3b5226a9858b1c4207e39166",
|
||||
"rawBytes": 670,
|
||||
"gzipBytes": 407,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js"
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/pdf-export-Ck6Q7DhV.js",
|
||||
"sha256": "387f3c47e00e0bb1803bb5c1d6ea973ccda1fe4ca82dd25ad173aacb8bd0abea",
|
||||
"path": "houseplan-assets/pdf-export-C6l2UAvp.js",
|
||||
"sha256": "b575454475fc1df4c064a32d298405c456a4556269dbcb6acbd348c73f5c9e08",
|
||||
"rawBytes": 236714,
|
||||
"gzipBytes": 109998,
|
||||
"gzipBytes": 109997,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/furniture-plan-art.generated-BAcdlNmw.js",
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-D2WZwvLw.js",
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/settings-de-DduqUD8A.js",
|
||||
"sha256": "90e33d1d7801b4b8316480bcf0759e8a64ae01a84f10f7bf113f60670a4c7b94",
|
||||
"path": "houseplan-assets/settings-de-NUJhD35v.js",
|
||||
"sha256": "ef301ab4e061002a69c0b56235b4a72bad553e95191067c76b2e290443dd53e8",
|
||||
"rawBytes": 8886,
|
||||
"gzipBytes": 3409,
|
||||
"gzipBytes": 3407,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/settings-fr-dGkZH4QA.js",
|
||||
"sha256": "39f31dba628c1e6918a0158d7ebfacd5161fc728a9b8227a8c8cfbb41f74f67c",
|
||||
"path": "houseplan-assets/settings-fr-BxWFQjqM.js",
|
||||
"sha256": "5b6e67388b6ec9dcae763d6e6f00c68ced961f71159c132606d51eabddc27800",
|
||||
"rawBytes": 9297,
|
||||
"gzipBytes": 3383,
|
||||
"gzipBytes": 3381,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/settings-ru-DlTTeZSD.js",
|
||||
"sha256": "0cc453eb1de203871336bc1c6afa4f9ae89ba869f0cfc7c2bacfc55edbd52e95",
|
||||
"path": "houseplan-assets/settings-ru-DxtPqpRy.js",
|
||||
"sha256": "c3bfb770748ae6ea309042c1308d8e0a3cd3e5a659eb0a9c9a1e322af273074b",
|
||||
"rawBytes": 12284,
|
||||
"gzipBytes": 3899,
|
||||
"gzipBytes": 3897,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/space-editor-fFzB1fav.js",
|
||||
"sha256": "b170c0e5fc2303c12a59019d5f1ab2cbc4196534ec59c318de11110c50cf1c0e",
|
||||
"path": "houseplan-assets/space-editor-BItHjX5t.js",
|
||||
"sha256": "e2afb8f0c686d2639641a5986b0b0777ba8a866484be820421dcc98d9b59c989",
|
||||
"rawBytes": 2619,
|
||||
"gzipBytes": 1128,
|
||||
"gzipBytes": 1129,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js"
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-editor-CMYQ3VTf.js",
|
||||
"sha256": "317f66330b81b669c5f821178f0e144349ead1529791eb1842707221da1c2d1b",
|
||||
"rawBytes": 14867,
|
||||
"gzipBytes": 3428,
|
||||
"path": "houseplan-assets/summary-panel-editor-D8zcin5K.js",
|
||||
"sha256": "4544e4f4536440df602849a85577ca64615000d867eb8721f9d3b9773f81887a",
|
||||
"rawBytes": 14862,
|
||||
"gzipBytes": 3426,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/form-kit.styles-CeNtVtY3.js",
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-DodMV5zo.js"
|
||||
"houseplan-assets/form-kit.styles-DNNRm1qV.js",
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-l2frpvJL.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-metrics-DNxFqlCo.js",
|
||||
"sha256": "3a12d843b8e3764257f515a11ec31b51307fa9346ccad99505f6a6ef560be1f7",
|
||||
"path": "houseplan-assets/summary-panel-metrics-DMn7iDbG.js",
|
||||
"sha256": "10dc343eb95eee0d6d09fbf936e7771314d8a14f76eadea7dbc5d8fb80caf688",
|
||||
"rawBytes": 2701,
|
||||
"gzipBytes": 1346,
|
||||
"gzipBytes": 1345,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js"
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-DodMV5zo.js",
|
||||
"sha256": "ee328d2319f9113e51037b87ecfabb23140dd261a0a9172b04066bf5960c3565",
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-l2frpvJL.js",
|
||||
"sha256": "ea892ff2a96524e2bda9592343fb5896211ab67cd4cff4b6168464e9f753fac2",
|
||||
"rawBytes": 73476,
|
||||
"gzipBytes": 20490,
|
||||
"gzipBytes": 20487,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/form-kit.styles-CeNtVtY3.js",
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js"
|
||||
"houseplan-assets/form-kit.styles-DNNRm1qV.js",
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/summary-panel-editor-CMYQ3VTf.js",
|
||||
"houseplan-assets/summary-panel-metrics-DNxFqlCo.js"
|
||||
"houseplan-assets/summary-panel-editor-D8zcin5K.js",
|
||||
"houseplan-assets/summary-panel-metrics-DMn7iDbG.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/support-de-B1x5MhBx.js",
|
||||
"sha256": "f5fb2a4a3885b98ea0741fc26a1a5faa5d2c1b910f3309efe4799a3d61ee1ba2",
|
||||
"path": "houseplan-assets/support-de-B189S_5G.js",
|
||||
"sha256": "ec04fe04c616f01d3aedcc04dac23e05422c6a81dff7f9f637b76eb3493befd5",
|
||||
"rawBytes": 6167,
|
||||
"gzipBytes": 2397,
|
||||
"gzipBytes": 2396,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/support-fr-BBk5swZV.js",
|
||||
"sha256": "fa494dfb5ab5aea45d3d9988ea5b4f383bb1faddafdfafadaf53b245334bae31",
|
||||
"path": "houseplan-assets/support-fr-BO-hSBLk.js",
|
||||
"sha256": "608332d7e2dc32b71dbae536d7876dc51116c17195f234333c983cdb92f026ae",
|
||||
"rawBytes": 6333,
|
||||
"gzipBytes": 2432,
|
||||
"gzipBytes": 2431,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/support-ru-BryxAsau.js",
|
||||
"sha256": "91c550b59708fdcbfc1384d58c7e79ae994b0fb0ee32cc12df1c7bf852eef7f2",
|
||||
"path": "houseplan-assets/support-ru-DslL3KcH.js",
|
||||
"sha256": "7bc2dc39a74c9fa30bb443c58db75adb427477eac6d3a5db47a90038a6bc1669",
|
||||
"rawBytes": 8376,
|
||||
"gzipBytes": 2876,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/tools-de-DaCueVOA.js",
|
||||
"sha256": "da4aa9fa59fe352d6d1c9330c0700bbb849e77522ada7783f6e29a114b7b3033",
|
||||
"rawBytes": 4130,
|
||||
"gzipBytes": 1375,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/tools-fr-rOKrLY3t.js",
|
||||
"sha256": "69db41722abfa2f591aa865a8edbf1faaca6d1c727b3722c1896fd84e7c271d4",
|
||||
"rawBytes": 4136,
|
||||
"gzipBytes": 1357,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/tools-ru-qWSdpJow.js",
|
||||
"sha256": "f78c576ce3f26c1b042e0c78131f305ef3a6d9c897d7fbf843f3386a44907ef0",
|
||||
"rawBytes": 5633,
|
||||
"gzipBytes": 1695,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/topology-de-wNwfkZjf.js",
|
||||
"sha256": "a35835cc2e0640b793f5d4b47f68bbe473ca6441da5891a8cc0ac88f2646db07",
|
||||
"rawBytes": 4237,
|
||||
"gzipBytes": 1888,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/topology-fr-D9pmNHVr.js",
|
||||
"sha256": "353d6d4ac82acf236a4cbf85399586cc03de2ac488900061682e31853f3f7236",
|
||||
"rawBytes": 4321,
|
||||
"gzipBytes": 1869,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/topology-ru-D6m0B05V.js",
|
||||
"sha256": "f73e4f25634c63aa2a05047910891e4f8eb83b18487cd833858ef6d5e171099f",
|
||||
"rawBytes": 5880,
|
||||
"gzipBytes": 2236,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-DtQtLxJ3.js",
|
||||
"sha256": "170d522fa5224dce0b9dbe9f2ed9178ea90c76250db39c52d5bdfe324bad8ae1",
|
||||
"rawBytes": 15905,
|
||||
"gzipBytes": 5952,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"houseplan-assets/namespace-language-COmALraj.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/topology-de-wNwfkZjf.js",
|
||||
"houseplan-assets/topology-fr-D9pmNHVr.js",
|
||||
"houseplan-assets/topology-ru-D6m0B05V.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-9_MBQQpH.js",
|
||||
"sha256": "7c0cb913d002611acac9ba45a3bf2ea7f6c3a07839769567975e8298c4210565",
|
||||
"rawBytes": 7883,
|
||||
"gzipBytes": 2877,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/tools-de-BdHNnR7q.js",
|
||||
"sha256": "ff29e3db5cc0da7cdf7936e89f0f28356603054e405ac5283aab21a2196b4f1d",
|
||||
"rawBytes": 4130,
|
||||
"gzipBytes": 1376,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/tools-fr-4AvnrKW4.js",
|
||||
"sha256": "f7d55c813b289ae92d578feaa5d308fa4cfa60bfba3a893c0095631183029eb5",
|
||||
"rawBytes": 4136,
|
||||
"gzipBytes": 1359,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/tools-ru-DkRXe0vq.js",
|
||||
"sha256": "d21c0e42e8abcf0845440f573a9100559ce1c1a328dfeae3a33ab81a53f86ee8",
|
||||
"rawBytes": 5633,
|
||||
"gzipBytes": 1696,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/topology-de-j5awVHUt.js",
|
||||
"sha256": "40bbc1d738d847adf202cd22322e67e6cc1f781290659d066d096360a3f9bd58",
|
||||
"rawBytes": 2698,
|
||||
"gzipBytes": 1337,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/topology-fr-BNvn6hS_.js",
|
||||
"sha256": "d4791317a79d5389bcd936f64705e0945de413a4972031498ed6631b609f2f56",
|
||||
"rawBytes": 2718,
|
||||
"gzipBytes": 1355,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/topology-ru-CLr3lSHb.js",
|
||||
"sha256": "b344bc9cb2a622b4162ef0e3aba99b359cd49de39af04864b51384ef90283474",
|
||||
"rawBytes": 3669,
|
||||
"gzipBytes": 1616,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-FegR1hpF.js",
|
||||
"sha256": "10dbbbc51a44161d925a4c75cca21d7a10f9fa76666803c58693a0988cabf64e",
|
||||
"rawBytes": 10958,
|
||||
"gzipBytes": 4301,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js",
|
||||
"houseplan-assets/namespace-language-Cx9fDV_P.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/topology-de-j5awVHUt.js",
|
||||
"houseplan-assets/topology-fr-BNvn6hS_.js",
|
||||
"houseplan-assets/topology-ru-CLr3lSHb.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-B5WvzSzW.js",
|
||||
"sha256": "3ddb7cee59194b8cf899e429a9572447ffd1f45acfbcf37722998388c25ee745",
|
||||
"rawBytes": 3983,
|
||||
"gzipBytes": 1790,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js",
|
||||
"houseplan-assets/namespace-language-Cx9fDV_P.js",
|
||||
"houseplan-assets/zigbee-topology-FegR1hpF.js"
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js",
|
||||
"houseplan-assets/namespace-language-COmALraj.js",
|
||||
"houseplan-assets/zigbee-topology-DtQtLxJ3.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-card.js",
|
||||
"sha256": "3fc6bfa3531052c2963c09ab9b3a9edcc29a9a8f705cb13cb47590f5d503dd1d",
|
||||
"sha256": "cf76e68979acd8077ed8b389b5566ffd36e447a6d2598a09c80adc6d85d9cbb6",
|
||||
"rawBytes": 1205,
|
||||
"gzipBytes": 803,
|
||||
"gzipBytes": 804,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js"
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-panel.js",
|
||||
"sha256": "fa5a2359f0f6afc55fb23d970fea59c6994369f392afca21ce616a6352c3155e",
|
||||
"sha256": "df9e9feb016b89df1e58abb42132832ca1f31676446fe3a70ba4c1fbe79eebf0",
|
||||
"rawBytes": 6165,
|
||||
"gzipBytes": 2327,
|
||||
"gzipBytes": 2326,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-jTmPF7EN.js"
|
||||
"houseplan-assets/houseplan-card-DNuV5X02.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
}
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";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-jTmPF7EN.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__="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";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-DNuV5X02.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);
|
||||
@@ -0,0 +1 @@
|
||||
function t(t){const a=t.visualViewport;return a&&Number.isFinite(a.width)&&Number.isFinite(a.height)?{left:Number(a.offsetLeft)||0,top:Number(a.offsetTop)||0,width:Math.max(0,Number(a.width)||0),height:Math.max(0,Number(a.height)||0)}:{left:0,top:0,width:t.innerWidth,height:t.innerHeight}}function a(t,a,h,e=7,i=8){const o=h.left+i,n=h.top+i,m=Math.max(o,h.left+h.width-i),r=Math.max(n,h.top+h.height-i),M=Math.max(0,m-o),d=Math.max(0,r-n),f=Math.min(Math.max(0,a.width),M),u=Math.min(Math.max(0,a.height),d);let p=t.left;p+f>m&&(p=t.right-f),p=Math.min(Math.max(o,p),Math.max(o,m-f));const x=t.bottom+e,s=t.top-e-u;let l="bottom",b=x;return x+u>r&&s>=n?(l="top",b=Math.min(Math.max(n,s),Math.max(n,r-u))):b=Math.min(Math.max(n,x),Math.max(n,r-u)),{left:Math.round(p),top:Math.round(b),side:l,maxWidth:Math.round(M),maxHeight:Math.round(d)}}function h(t){const a=t.HTMLElement?.prototype;return"function"==typeof a?.showPopover&&"function"==typeof a?.hidePopover}globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";export{h as a,t as f,a as p};
|
||||
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47";import{l as t,bS as s,A as e,aJ as o,c as a,m as i,d2 as l,d3 as h,d4 as n,bO as r,d5 as c,da as p,d6 as d,d7 as _,d8 as u,d9 as g,db as m,dc as b}from"./houseplan-card-jTmPF7EN.js";import{z as f,A as v,C as y,D,E as w,G as S,H as $,I as C,n as M,S as k}from"./backdrop-pick-CZVGAeU-.js";import{s as I}from"./namespace-language-Cx9fDV_P.js";import"./form-kit.styles-CeNtVtY3.js";const x="f743fc49cc94c6862c340a1ba75e195ff515ebab9f8d35caba999f146823bd47",T=I([k]);class F{constructor(t){this.host=t,this.languageRuntime=T,this._toggleServerPlans=async()=>{const t=this.host._spaceDialog;if(t)if(t.pickSaved)this.host._spaceDialog={...t,pickSaved:!1};else{this.host._spaceDialog={...t,pickSaved:!0,savedBusy:!0};try{const t=await this.host.hass.callWS({type:"houseplan/plans/list"}),s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:t?.plans||[],savedBusy:!1})}catch(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:[],savedBusy:!1}),this.host._showToast(this.host._t("toast.plans_list_failed",{err:this.host._errText(t)}))}}}}_help(i){const l=`${i}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,i)&&s(h,l)?a`<hp-help data-help-key=${i}
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698";import{l as t,bS as s,A as e,aJ as o,c as a,m as i,d2 as l,d3 as h,d4 as n,bO as r,d5 as c,da as p,d6 as d,d7 as _,d8 as u,d9 as g,db as m,dc as b}from"./houseplan-card-DNuV5X02.js";import{x as f,y as v,A as y,B as D,C as w,D as S,E as $,G as C,n as M,S as k}from"./backdrop-pick-BlKYl_U7.js";import{s as I}from"./namespace-language-COmALraj.js";import"./form-kit.styles-DNNRm1qV.js";import"./floating-surface-pyD_i_Ly.js";const x="06f4c9f5768e50e86177cdd0ad3d4e55e568a796d9ba6db4d99a8ada55669698",T=I([k]);class F{constructor(t){this.host=t,this.languageRuntime=T,this._toggleServerPlans=async()=>{const t=this.host._spaceDialog;if(t)if(t.pickSaved)this.host._spaceDialog={...t,pickSaved:!1};else{this.host._spaceDialog={...t,pickSaved:!0,savedBusy:!0};try{const t=await this.host.hass.callWS({type:"houseplan/plans/list"}),s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:t?.plans||[],savedBusy:!1})}catch(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:[],savedBusy:!1}),this.host._showToast(this.host._t("toast.plans_list_failed",{err:this.host._errText(t)}))}}}}_help(i){const l=`${i}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,i)&&s(h,l)?a`<hp-help data-help-key=${i}
|
||||
.text=${o(h,i)} .ariaLabel=${o(h,l)}></hp-help>`:e}_openSpaceDialog(t,s){if(!this.host._serverStorage||!this.host._serverCfg)return void this.host._showToast(this.host._t("toast.integration_missing"));if("edit"===t){const e=this.host._serverCfg.spaces.find(t=>t.id===s);if(!e)return;const o=i(e),a=e.settings?.custom_fill&&"object"==typeof e.settings.custom_fill?l(e.settings.custom_fill):null,p="none"===o.fill?{...a||h,a:0}:a;return void(this.host._spaceDialog={mode:t,spaceId:s,title:e.title,planUrl:e.plan_url||null,planFile:null,source:e.plan_url?"file":"draw",showBorders:o.showBorders,showNames:o.showNames,zeroWallStyle:c(e),displayTouched:!0,hideDecor:o.hideDecor,hideOpenings:o.hideOpenings,roomColor:o.color,roomOpacity:o.opacity,fillMode:"none"===o.fill?"custom":o.fill,customFill:p,glowEnabled:o.glow,bgColor:o.bgColor,bgMode:"static"===e.settings?.bg_mode||"daynight"===e.settings?.bg_mode?e.settings.bg_mode:null,northDeg:r({},e.settings),northDegInput:null===r({},e.settings)?"":String(r({},e.settings)),sunRays:"boolean"==typeof e.settings?.sun_rays?e.settings.sun_rays:null,tempMin:o.tempMin,tempMax:o.tempMax,tempMinInput:String(o.tempMin),tempMaxInput:String(o.tempMax),showLqi:o.showLqi??this.host._config?.show_signal??!0,cardFontScale:o.cardFontScale,labelTemp:o.labelTemp,labelHum:o.labelHum,labelLqi:o.labelLqi,labelLight:o.labelLight,cellCm:Number(e.cell_cm)>0?Number(e.cell_cm):5,cellCmInput:n(Number(e.cell_cm)>0?Number(e.cell_cm):5,this.host._imperial),cellCmTouched:!1,busy:!1})}const e=p(this.host._imperial);this.host._spaceDialog={mode:t,title:"",planUrl:null,planFile:null,...m(),hideDecor:!1,hideOpenings:!1,zeroWallStyle:"dashed",roomColor:g,roomOpacity:u,fillMode:"custom",customFill:{...h,a:0},glowEnabled:!0,bgColor:null,bgMode:"daynight",northDeg:null,northDegInput:"",sunRays:null,tempMin:_,tempMax:d,tempMinInput:String(_),tempMaxInput:String(d),showLqi:this.host._config?.show_signal??!0,cardFontScale:1,labelTemp:!1,labelHum:!1,labelLqi:!1,labelLight:!1,cellCm:e,cellCmInput:n(e,this.host._imperial),cellCmTouched:!1,busy:!1},f(this.host,this.host._spaceDialog)}async _pickPlanFile(t){const s=t.target,e=s.files?.[0];if(!e||!this.host._spaceDialog)return;s.value="";const o=await v(this.host,e);o&&this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:o})}_renderBackdropGuard(){return y(this.host,t=>{this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:t})},()=>{this.host._backdropGuard=null},this.host.hass)??e}_useServerPlan(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,planUrl:t,planFile:null,pickSaved:!1,savedAspect:void 0},this.host._aspectJob=this._readPlanAspect(t))}async _readPlanAspect(t){for(let s=0;s<40;s++){const s=this.host._display(t);if(s){const e=await new Promise(t=>{const e=new Image;e.onload=()=>t(e.naturalWidth&&e.naturalHeight?e.naturalWidth/e.naturalHeight:0),e.onerror=()=>t(0),e.src=s}),o=this.host._spaceDialog;return o&&o.planUrl===t&&Number.isFinite(e)&&e>0?(this.host._spaceDialog={...o,savedAspect:e},e):0}if(await new Promise(t=>setTimeout(t,150)),this.host._spaceDialog?.planUrl!==t)return 0}return 0}async _deleteServerPlan(t){const s=this.host._spaceDialog,e=s?.saved?.find(s=>s.name===t);if(!s||!e||e.used_by.length||e.url===s.planUrl)return;const o=await this.host._confirmDanger({key:"delete-plan",kind:"destructive",title:this.host._t("confirm.delete_plan_title"),message:this.host._t("confirm.delete_plan_body"),objectName:t,confirmLabel:this.host._t("btn.delete"),cancelLabel:this.host._t("btn.cancel")}),a=this.host._spaceDialog,i=a?.saved?.find(s=>s.name===t);if(o&&a&&i&&i.url===e.url&&i.modified===e.modified&&!i.used_by.length&&i.url!==a.planUrl)try{await this.host.hass.callWS({type:"houseplan/plans/delete",name:t});const s=this.host._spaceDialog;s?.saved&&(this.host._spaceDialog={...s,saved:s.saved.filter(s=>s.name!==t)})}catch(t){this.host._showToast(this.host._t("toast.plan_delete_failed",{err:this.host._errText(t)}))}}_renderServerPlans(t){if(t.savedBusy)return a`<div class="savedplans muted">${this.host._t("space.loading")}</div>`;const s=t.saved||[];if(!s.length)return a`<div class="savedplans muted">${this.host._t("space.no_saved")}</div>`;return a`<div class="savedplans">
|
||||
${s.map(s=>{return a`
|
||||
<div class="savedplan ${s.url===t.planUrl?"cur":""}">
|
||||