fix: сохранить точную активацию маркера (#564)

Issue: #564
User-Visible: yes
This commit is contained in:
Sergey Matyunin
2026-09-14 02:57:50 +03:00
parent 6de854a03d
commit f9ed9d2ae8
50 changed files with 443 additions and 402 deletions
@@ -1,117 +1,117 @@
{
"schema": 1,
"fingerprint": "cb9420d3dbda63da3e028656329cf0c84296ab364f43c0d4710e279294bc8f98",
"fingerprint": "b9fc9e3485e171367db91b8386e18e79c8d2f4b0e379d14db6dfc2dd93e8423d",
"entry": "houseplan-card.js",
"panelEntry": "houseplan-panel.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-CjYLOThL.js",
"houseplan-assets/houseplan-card-sltdEKFS.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 290181,
"initialViewGzipBytes": 290173,
"initialPanelFiles": [
"houseplan-assets/houseplan-card-CjYLOThL.js",
"houseplan-assets/houseplan-card-sltdEKFS.js",
"houseplan-panel.js"
],
"initialPanelGzipBytes": 291704,
"initialPanelGzipBytes": 291697,
"initialPanelOnlyFiles": [
"houseplan-panel.js"
],
"initialPanelOnlyGzipBytes": 2328,
"initialPanelOnlyGzipBytes": 2326,
"lazyFiles": [
"houseplan-assets/backdrop-pick-Dzy_EAoX.js",
"houseplan-assets/de-CSVKIQMS.js",
"houseplan-assets/editor-1VsR6F6H.js",
"houseplan-assets/fr-BTuA9VPA.js",
"houseplan-assets/furniture-plan-art.generated-BjRO3-vk.js",
"houseplan-assets/guard-ClzlQzGc.js",
"houseplan-assets/houseplan-editor-runtime-BRhl2OxF.js",
"houseplan-assets/houseplan-onboarding-runtime-BacuK2j5.js",
"houseplan-assets/hp-zigbee-topology-overlay-C1F_6xm0.js",
"houseplan-assets/iso-scene-render-gpUJH-i5.js",
"houseplan-assets/live-interaction-runtime-BwW5kv5Y.js",
"houseplan-assets/pdf-export-9JTSXR3t.js",
"houseplan-assets/summary-panel-runtime-loaded-DiYlmvMc.js",
"houseplan-assets/zigbee-topology-Dok-0LZF.js",
"houseplan-assets/zigbee-topology-runtime-DzEG7Mwm.js"
"houseplan-assets/backdrop-pick-DN-2tcOT.js",
"houseplan-assets/de-C6F-eg43.js",
"houseplan-assets/editor-Ce0BQpJ-.js",
"houseplan-assets/fr-DjiokT_b.js",
"houseplan-assets/furniture-plan-art.generated-B24_xJbE.js",
"houseplan-assets/guard-BuxOGplD.js",
"houseplan-assets/houseplan-editor-runtime-C9YWmQNQ.js",
"houseplan-assets/houseplan-onboarding-runtime-BuOtxAIl.js",
"houseplan-assets/hp-zigbee-topology-overlay-BAqKJEV5.js",
"houseplan-assets/iso-scene-render-BAa5l9tq.js",
"houseplan-assets/live-interaction-runtime-DKhsH9o9.js",
"houseplan-assets/pdf-export-CTnhlVcd.js",
"houseplan-assets/summary-panel-runtime-loaded--HpxRg3N.js",
"houseplan-assets/zigbee-topology-Nr9i4fmi.js",
"houseplan-assets/zigbee-topology-runtime-BWmqNI5x.js"
],
"lazyGzipBytes": 417913,
"lazyGzipBytes": 417876,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-Dzy_EAoX.js",
"houseplan-assets/editor-1VsR6F6H.js",
"houseplan-assets/furniture-plan-art.generated-BjRO3-vk.js",
"houseplan-assets/guard-ClzlQzGc.js",
"houseplan-assets/houseplan-editor-runtime-BRhl2OxF.js",
"houseplan-assets/zigbee-topology-Dok-0LZF.js"
"houseplan-assets/backdrop-pick-DN-2tcOT.js",
"houseplan-assets/editor-Ce0BQpJ-.js",
"houseplan-assets/furniture-plan-art.generated-B24_xJbE.js",
"houseplan-assets/guard-BuxOGplD.js",
"houseplan-assets/houseplan-editor-runtime-C9YWmQNQ.js",
"houseplan-assets/zigbee-topology-Nr9i4fmi.js"
],
"lazyEditorGzipBytes": 205056,
"lazyEditorGzipBytes": 205041,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-Dzy_EAoX.js",
"houseplan-assets/houseplan-onboarding-runtime-BacuK2j5.js"
"houseplan-assets/backdrop-pick-DN-2tcOT.js",
"houseplan-assets/houseplan-onboarding-runtime-BuOtxAIl.js"
],
"lazyOnboardingGzipBytes": 13919,
"lazyOnboardingGzipBytes": 13914,
"lazyLocaleFiles": [
"houseplan-assets/de-CSVKIQMS.js",
"houseplan-assets/fr-BTuA9VPA.js"
"houseplan-assets/de-C6F-eg43.js",
"houseplan-assets/fr-DjiokT_b.js"
],
"lazyLocaleGzipBytes": 54824,
"lazyLocaleGzipBytes": 54818,
"lazyIsometricFiles": [
"houseplan-assets/guard-ClzlQzGc.js",
"houseplan-assets/iso-scene-render-gpUJH-i5.js"
"houseplan-assets/guard-BuxOGplD.js",
"houseplan-assets/iso-scene-render-BAa5l9tq.js"
],
"lazyIsometricGzipBytes": 13458,
"lazyIsometricGzipBytes": 13453,
"lazyFurnitureArtFiles": [
"houseplan-assets/furniture-plan-art.generated-BjRO3-vk.js"
"houseplan-assets/furniture-plan-art.generated-B24_xJbE.js"
],
"lazyFurnitureArtGzipBytes": 10254,
"lazyPdfFiles": [
"houseplan-assets/furniture-plan-art.generated-BjRO3-vk.js",
"houseplan-assets/pdf-export-9JTSXR3t.js"
"houseplan-assets/furniture-plan-art.generated-B24_xJbE.js",
"houseplan-assets/pdf-export-CTnhlVcd.js"
],
"lazyPdfGzipBytes": 120125,
"lazyPdfGzipBytes": 120126,
"files": [
{
"path": "houseplan-assets/backdrop-pick-Dzy_EAoX.js",
"sha256": "d158cb34f030fb9433d1fec6b8d2ee575a99c83d1426bb358ccd6cc9251e5efd",
"path": "houseplan-assets/backdrop-pick-DN-2tcOT.js",
"sha256": "a27dc1661c6203ce7d114a5985791f2d27d5dccd171f1c5965cc53455ee3e9eb",
"rawBytes": 19956,
"gzipBytes": 6881,
"gzipBytes": 6879,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CjYLOThL.js"
"houseplan-assets/houseplan-card-sltdEKFS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/de-CSVKIQMS.js",
"sha256": "32d733407bfb847f34016710110471cb5537e4c4d8953da76829506c099f4759",
"path": "houseplan-assets/de-C6F-eg43.js",
"sha256": "a496b5f2164c8ece60bfd7819a992c8821cdc3a250da94ade633853f96ddd8d5",
"rawBytes": 91402,
"gzipBytes": 27695,
"gzipBytes": 27693,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-1VsR6F6H.js",
"sha256": "0ef3344be713961d01e08cfc52b0ea3ffe92e8682729378341a2e998710c8f22",
"path": "houseplan-assets/editor-Ce0BQpJ-.js",
"sha256": "5b15efb75f8fcd388761011369a8733c97a7fd9c018398536e0d22a7eb7bc0a3",
"rawBytes": 3832,
"gzipBytes": 1585,
"gzipBytes": 1583,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CjYLOThL.js"
"houseplan-assets/houseplan-card-sltdEKFS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-BTuA9VPA.js",
"sha256": "2e5cc1b9dcbcab552ecce7942f6cbc65ea1507cc47e89abdfcee6f1fa7c7cb04",
"path": "houseplan-assets/fr-DjiokT_b.js",
"sha256": "9358eace06b200d704c840dab68669aead728ce5536c90862d5305ac81639a7f",
"rawBytes": 93667,
"gzipBytes": 27129,
"gzipBytes": 27125,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/furniture-plan-art.generated-BjRO3-vk.js",
"sha256": "4ed28342e4dfe797520cafccd4a06f64eb1d37c63964e3c1ce07328649c175e3",
"path": "houseplan-assets/furniture-plan-art.generated-B24_xJbE.js",
"sha256": "e38cd9cb67be92d2d9fd2e3ae0fa69523d214e448bef309897ebdeb0843245b3",
"rawBytes": 33655,
"gzipBytes": 10254,
"isEntry": false,
@@ -119,193 +119,193 @@
"dynamicImports": []
},
{
"path": "houseplan-assets/guard-ClzlQzGc.js",
"sha256": "749cb567f0b82de5ec1e951147227014413e6ee01ce5249156ed45e506ed6173",
"path": "houseplan-assets/guard-BuxOGplD.js",
"sha256": "6f982643134192c4816627ae9c0c873c09fd480d2c3794662a96f8d4a653e062",
"rawBytes": 518,
"gzipBytes": 370,
"gzipBytes": 366,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CjYLOThL.js"
"houseplan-assets/houseplan-card-sltdEKFS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-CjYLOThL.js",
"sha256": "f44c0c95d289a585fc55f4725884aed279902de5a63a79132deb174503d92ddb",
"rawBytes": 1030747,
"gzipBytes": 289376,
"path": "houseplan-assets/houseplan-card-sltdEKFS.js",
"sha256": "6979d29cb9740e8e37d4c3717932b63068be43ecf57c55e3d8a7cc45df7fdabc",
"rawBytes": 1030749,
"gzipBytes": 289371,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-CSVKIQMS.js",
"houseplan-assets/editor-1VsR6F6H.js",
"houseplan-assets/fr-BTuA9VPA.js",
"houseplan-assets/furniture-plan-art.generated-BjRO3-vk.js",
"houseplan-assets/houseplan-editor-runtime-BRhl2OxF.js",
"houseplan-assets/houseplan-onboarding-runtime-BacuK2j5.js",
"houseplan-assets/hp-zigbee-topology-overlay-C1F_6xm0.js",
"houseplan-assets/iso-scene-render-gpUJH-i5.js",
"houseplan-assets/live-interaction-runtime-BwW5kv5Y.js",
"houseplan-assets/pdf-export-9JTSXR3t.js",
"houseplan-assets/summary-panel-runtime-loaded-DiYlmvMc.js"
"houseplan-assets/de-C6F-eg43.js",
"houseplan-assets/editor-Ce0BQpJ-.js",
"houseplan-assets/fr-DjiokT_b.js",
"houseplan-assets/furniture-plan-art.generated-B24_xJbE.js",
"houseplan-assets/houseplan-editor-runtime-C9YWmQNQ.js",
"houseplan-assets/houseplan-onboarding-runtime-BuOtxAIl.js",
"houseplan-assets/hp-zigbee-topology-overlay-BAqKJEV5.js",
"houseplan-assets/iso-scene-render-BAa5l9tq.js",
"houseplan-assets/live-interaction-runtime-DKhsH9o9.js",
"houseplan-assets/pdf-export-CTnhlVcd.js",
"houseplan-assets/summary-panel-runtime-loaded--HpxRg3N.js"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-BRhl2OxF.js",
"sha256": "b64d5daccda0c842fc55f0ebaa5846fd4ae862fc036f84b802e5dac405557f14",
"path": "houseplan-assets/houseplan-editor-runtime-C9YWmQNQ.js",
"sha256": "8fc4aa226dc304ab75914a05c61e61dd1f578f11152358f762fbf450fb5c6d03",
"rawBytes": 668940,
"gzipBytes": 178534,
"gzipBytes": 178532,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-Dzy_EAoX.js",
"houseplan-assets/furniture-plan-art.generated-BjRO3-vk.js",
"houseplan-assets/guard-ClzlQzGc.js",
"houseplan-assets/houseplan-card-CjYLOThL.js",
"houseplan-assets/zigbee-topology-Dok-0LZF.js"
"houseplan-assets/backdrop-pick-DN-2tcOT.js",
"houseplan-assets/furniture-plan-art.generated-B24_xJbE.js",
"houseplan-assets/guard-BuxOGplD.js",
"houseplan-assets/houseplan-card-sltdEKFS.js",
"houseplan-assets/zigbee-topology-Nr9i4fmi.js"
],
"dynamicImports": [
"houseplan-assets/zigbee-topology-runtime-DzEG7Mwm.js"
"houseplan-assets/zigbee-topology-runtime-BWmqNI5x.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime-BacuK2j5.js",
"sha256": "cd6a3b5154294e56b6905bea3ea7ee1ef79ef9c64c162563d5f628af5af8865b",
"path": "houseplan-assets/houseplan-onboarding-runtime-BuOtxAIl.js",
"sha256": "d43cc9955fd13308508529cff764d5607899e3424116f60a3b69c169e009229b",
"rawBytes": 28287,
"gzipBytes": 7038,
"gzipBytes": 7035,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-Dzy_EAoX.js",
"houseplan-assets/houseplan-card-CjYLOThL.js"
"houseplan-assets/backdrop-pick-DN-2tcOT.js",
"houseplan-assets/houseplan-card-sltdEKFS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-C1F_6xm0.js",
"sha256": "3d82c76ae3231ad619ffaf205b2f1533c31e979631b0d8a2f87a0ed0842f7f14",
"path": "houseplan-assets/hp-zigbee-topology-overlay-BAqKJEV5.js",
"sha256": "933f069fd8e49ba2cb84e44435291259710c2dee792293ea4deda05bab85192f",
"rawBytes": 10756,
"gzipBytes": 3683,
"gzipBytes": 3679,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CjYLOThL.js",
"houseplan-assets/zigbee-topology-Dok-0LZF.js",
"houseplan-assets/zigbee-topology-runtime-DzEG7Mwm.js"
"houseplan-assets/houseplan-card-sltdEKFS.js",
"houseplan-assets/zigbee-topology-Nr9i4fmi.js",
"houseplan-assets/zigbee-topology-runtime-BWmqNI5x.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/iso-scene-render-gpUJH-i5.js",
"sha256": "bf7475dbc19e72322892f8de760613c65f1efc59c054a13c0ec55a2ac32ad3f6",
"path": "houseplan-assets/iso-scene-render-BAa5l9tq.js",
"sha256": "b4acedbe48cb242fa676dd896bf10e01e152de12b51e25bca9f484fe5c560fc7",
"rawBytes": 38562,
"gzipBytes": 13088,
"gzipBytes": 13087,
"isEntry": false,
"imports": [
"houseplan-assets/guard-ClzlQzGc.js",
"houseplan-assets/houseplan-card-CjYLOThL.js"
"houseplan-assets/guard-BuxOGplD.js",
"houseplan-assets/houseplan-card-sltdEKFS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/live-interaction-runtime-BwW5kv5Y.js",
"sha256": "51e5429914e2b80c7852fa3bc6e0a683b5aa4582d4cfd202f68e70f2b2ad09ee",
"path": "houseplan-assets/live-interaction-runtime-DKhsH9o9.js",
"sha256": "943a780fe9b53872a85ccf3e772f73735489a7e625f6a13bfd91039ecd7ed524",
"rawBytes": 6233,
"gzipBytes": 2499,
"gzipBytes": 2497,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CjYLOThL.js"
"houseplan-assets/houseplan-card-sltdEKFS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/pdf-export-9JTSXR3t.js",
"sha256": "16d218b19f99db9f563c88c39392bebe9c53afda174f43881a7836a50d75687d",
"path": "houseplan-assets/pdf-export-CTnhlVcd.js",
"sha256": "fa7107ab2bd2f10f011959429d097cf439326680e179ae082143a71b50c06c2b",
"rawBytes": 236244,
"gzipBytes": 109871,
"gzipBytes": 109872,
"isEntry": false,
"imports": [
"houseplan-assets/furniture-plan-art.generated-BjRO3-vk.js",
"houseplan-assets/houseplan-card-CjYLOThL.js"
"houseplan-assets/furniture-plan-art.generated-B24_xJbE.js",
"houseplan-assets/houseplan-card-sltdEKFS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-editor-CL_nmnS1.js",
"sha256": "ccfe975a9a07ff0e320b7ac6386828a1870b58ba10cd983702c06b424d6e958c",
"path": "houseplan-assets/summary-panel-editor-C0mf6c_y.js",
"sha256": "69e89730f4ed2023504d4ee14a76ef6c750f06b61610623b767be3d4f5227b9b",
"rawBytes": 14824,
"gzipBytes": 3402,
"gzipBytes": 3397,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CjYLOThL.js",
"houseplan-assets/summary-panel-runtime-loaded-DiYlmvMc.js"
"houseplan-assets/houseplan-card-sltdEKFS.js",
"houseplan-assets/summary-panel-runtime-loaded--HpxRg3N.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-metrics-CSAIN0n9.js",
"sha256": "49fbae069107af7e8507c0149768cae81806a268ef0efe56bc58f757520c881e",
"path": "houseplan-assets/summary-panel-metrics-_3hH5UlC.js",
"sha256": "a151ee21a940503df39ee5cc8fdd044091486c1028ba54149f75f466bf20b3a7",
"rawBytes": 2610,
"gzipBytes": 1308,
"gzipBytes": 1306,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CjYLOThL.js"
"houseplan-assets/houseplan-card-sltdEKFS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-runtime-loaded-DiYlmvMc.js",
"sha256": "f187b08847775fccc1264e0e3e6cbf677db991fe1ac692078c2bb43b165a8b25",
"path": "houseplan-assets/summary-panel-runtime-loaded--HpxRg3N.js",
"sha256": "925c98e3a20e79190d1dca7baf60a020086c65d6f38b76030916a77989ed0adb",
"rawBytes": 73366,
"gzipBytes": 20088,
"gzipBytes": 20085,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CjYLOThL.js"
"houseplan-assets/houseplan-card-sltdEKFS.js"
],
"dynamicImports": [
"houseplan-assets/summary-panel-editor-CL_nmnS1.js",
"houseplan-assets/summary-panel-metrics-CSAIN0n9.js"
"houseplan-assets/summary-panel-editor-C0mf6c_y.js",
"houseplan-assets/summary-panel-metrics-_3hH5UlC.js"
]
},
{
"path": "houseplan-assets/zigbee-topology-Dok-0LZF.js",
"sha256": "a0562545792c722e5c7a6a0b31d016b8a034a4b635559011c27a232b4c19b4de",
"path": "houseplan-assets/zigbee-topology-Nr9i4fmi.js",
"sha256": "b8bc9ef2f7ae94d1cb6fe8bbc61f405ca1d776748952f7e45c6269060b7db4f3",
"rawBytes": 18961,
"gzipBytes": 7432,
"gzipBytes": 7427,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CjYLOThL.js"
"houseplan-assets/houseplan-card-sltdEKFS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-runtime-DzEG7Mwm.js",
"sha256": "342ca286774b0503fcfa071961f4b0d53e9b53a53a6e4edc2391647d8038ddce",
"path": "houseplan-assets/zigbee-topology-runtime-BWmqNI5x.js",
"sha256": "de20368d5b24934a550a70dd51f247b615acb32cd717630a07509438fa0948e3",
"rawBytes": 3941,
"gzipBytes": 1766,
"gzipBytes": 1762,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CjYLOThL.js",
"houseplan-assets/zigbee-topology-Dok-0LZF.js"
"houseplan-assets/houseplan-card-sltdEKFS.js",
"houseplan-assets/zigbee-topology-Nr9i4fmi.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "e27de5098e5d0d1cb31b54b47f01112fe515e0aa35e2be54abe07242c8bd2ef9",
"sha256": "ba3f05f030017e34a51d285b74776e2e0199ec3da30ac394114510c90be0cfbd",
"rawBytes": 1205,
"gzipBytes": 805,
"gzipBytes": 802,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-CjYLOThL.js"
"houseplan-assets/houseplan-card-sltdEKFS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-panel.js",
"sha256": "e3b374d868f748d196dd536921d95582f381ff6172b2ce5164a4e5472213bd8a",
"sha256": "1fecde5b6428af6d91db6f774152c1338e8522a68383c4be499d9ff25888b68a",
"rawBytes": 6165,
"gzipBytes": 2328,
"gzipBytes": 2326,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-CjYLOThL.js"
"houseplan-assets/houseplan-card-sltdEKFS.js"
],
"dynamicImports": []
}
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="cb9420d3dbda63da3e028656329cf0c84296ab364f43c0d4710e279294bc8f98";import{m as e,l as o,t,e3 as s,A as a,e4 as i,e5 as l,e6 as n,dU as r,b as c}from"./houseplan-card-CjYLOThL.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
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b9fc9e3485e171367db91b8386e18e79c8d2f4b0e379d14db6dfc2dd93e8423d";import{m as e,l as o,t,e3 as s,A as a,e4 as i,e5 as l,e6 as n,dU as r,b as c}from"./houseplan-card-sltdEKFS.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}
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b9fc9e3485e171367db91b8386e18e79c8d2f4b0e379d14db6dfc2dd93e8423d";import{dS as r,dT as e,dU as t}from"./houseplan-card-sltdEKFS.js";const s={},d=r(class extends e{constructor(){super(...arguments),this.ot=s}render(r,e){return e()}update(r,[e,s]){if(Array.isArray(e)){if(Array.isArray(this.ot)&&this.ot.length===e.length&&e.every((r,e)=>r===this.ot[e]))return t}else if(this.ot===e)return t;return this.ot=Array.isArray(e)?Array.from(e):e,this.render(e,s)}});export{d as i};
@@ -1 +0,0 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="cb9420d3dbda63da3e028656329cf0c84296ab364f43c0d4710e279294bc8f98";import{dS as r,dT as t,dU as s}from"./houseplan-card-CjYLOThL.js";const e={},a=r(class extends t{constructor(){super(...arguments),this.ot=e}render(r,t){return t()}update(r,[t,e]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return s}else if(this.ot===t)return s;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,e)}});export{a as i};
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="cb9420d3dbda63da3e028656329cf0c84296ab364f43c0d4710e279294bc8f98";import{b as a,A as e}from"./houseplan-card-CjYLOThL.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-DiYlmvMc.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">
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b9fc9e3485e171367db91b8386e18e79c8d2f4b0e379d14db6dfc2dd93e8423d";import{b as a,A as e}from"./houseplan-card-sltdEKFS.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--HpxRg3N.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"
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="cb9420d3dbda63da3e028656329cf0c84296ab364f43c0d4710e279294bc8f98";import{e9 as e,L as t,a2 as n,J as i,an as o,N as r,bo as s,bn as a,a1 as c,a0 as l,ax as d,ea as u,eb as f,bq as m,ec as g}from"./houseplan-card-CjYLOThL.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=d(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 y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(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:l(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*h(c,l,d=_){try{let u=0;for(const f of l){const l=c.spaces.find(e=>String(e?.id)===f.id);if(!l)continue;const m=e(l,f),g=d(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(c,m.physicalBodies)),yield}const _=m.cellCm/o;u+=a(v)*_*_/1e4}return u}catch{return null}}function p(e,t,n=_){const i=h(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function b(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:m(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 S(e,t){const n=e?.states?.[t];if(!n)return null;const i=u(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{h as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,b as summarySystemValue,p as totalCleanFloorAreaM2};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b9fc9e3485e171367db91b8386e18e79c8d2f4b0e379d14db6dfc2dd93e8423d";import{e9 as e,L as t,a2 as n,J as i,an as o,N as r,bo as s,bn as a,a1 as c,a0 as l,ax as d,ea as u,eb as f,bq as m,ec as g}from"./houseplan-card-sltdEKFS.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=d(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 y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(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:l(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*b(c,l,d=_){try{let u=0;for(const f of l){const l=c.spaces.find(e=>String(e?.id)===f.id);if(!l)continue;const m=e(l,f),g=d(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(c,m.physicalBodies)),yield}const _=m.cellCm/o;u+=a(v)*_*_/1e4}return u}catch{return null}}function h(e,t,n=_){const i=b(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function p(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:m(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 S(e,t){const n=e?.states?.[t];if(!n)return null;const i=u(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{b as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,p as summarySystemValue,h as totalCleanFloorAreaM2};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="cb9420d3dbda63da3e028656329cf0c84296ab364f43c0d4710e279294bc8f98";import{n as t,b as n}from"./zigbee-topology-Dok-0LZF.js";import{B as e}from"./houseplan-card-CjYLOThL.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 h(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 m(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,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,m=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(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=h(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&&m?.(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,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b9fc9e3485e171367db91b8386e18e79c8d2f4b0e379d14db6dfc2dd93e8423d";import{n as t,b as n}from"./zigbee-topology-Nr9i4fmi.js";import{B as e}from"./houseplan-card-sltdEKFS.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 h(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 m(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,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,m=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(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=h(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&&m?.(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,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="cb9420d3dbda63da3e028656329cf0c84296ab364f43c0d4710e279294bc8f98";try{await import("./houseplan-assets/houseplan-card-CjYLOThL.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__="b9fc9e3485e171367db91b8386e18e79c8d2f4b0e379d14db6dfc2dd93e8423d";try{await import("./houseplan-assets/houseplan-card-sltdEKFS.js")}catch(e){if(!customElements.get("houseplan-card")){const l=String(navigator.language||"en").toLowerCase();const m=l.startsWith("ru")?"House Plan обновился — перезагрузите страницу (Ctrl+F5).":l.startsWith("de")?"House Plan wurde aktualisiert — bitte laden Sie die Seite neu (Strg+F5).":l.startsWith("fr")?"House Plan a été mis à jour — veuillez recharger la page (Ctrl+F5).":"House Plan was updated — please reload the page (Ctrl+F5).";customElements.define("houseplan-card",class extends HTMLElement{setConfig(){}getCardSize(){return 1}connectedCallback(){this.style.cssText="display:block;box-sizing:border-box;padding:16px;border:1px solid var(--divider-color,#e0e0e0);border-radius:var(--ha-card-border-radius,12px);background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);font:14px/1.4 var(--paper-font-body1_-_font-family,sans-serif)";this.textContent=m}})}console.error("[houseplan] stale houseplan-card.js: the implementation chunk is unavailable",e)}
File diff suppressed because one or more lines are too long
+40 -5
View File
@@ -15,10 +15,12 @@ const result = await page.evaluate(async () => {
const frame = () => new Promise((resolve) => requestAnimationFrame(
() => requestAnimationFrame(resolve),
));
const until = async (predicate, timeout = 6000) => {
const until = async (predicate, timeout = 6000, label = '') => {
const started = performance.now();
while (!predicate()) {
if (performance.now() - started > timeout) throw new Error('linked-light smoke timed out');
if (performance.now() - started > timeout) {
throw new Error(`linked-light smoke timed out${label ? `: ${label}` : ''}`);
}
await wait(25);
}
};
@@ -162,8 +164,24 @@ const result = await page.evaluate(async () => {
})}`, { cause: error });
}
};
let clickPointerId = 17300;
const click = async (id) => {
node(id).dispatchEvent(new MouseEvent('click', { bubbles: true, composed: true }));
const target = node(id);
const rect = target.getBoundingClientRect();
const clientX = rect.left + rect.width / 2;
const clientY = rect.top + rect.height / 2;
const pointerId = ++clickPointerId;
target.dispatchEvent(new PointerEvent('pointerdown', {
bubbles: true, composed: true, pointerId, pointerType: 'mouse',
clientX, clientY, button: 0, buttons: 1,
}));
target.dispatchEvent(new PointerEvent('pointerup', {
bubbles: true, composed: true, pointerId, pointerType: 'mouse',
clientX, clientY, button: 0, buttons: 0,
}));
target.dispatchEvent(new MouseEvent('click', {
bubbles: true, composed: true, clientX, clientY, button: 0,
}));
await wait(0);
};
const targetsOf = (call) => {
@@ -283,11 +301,28 @@ const result = await page.evaluate(async () => {
card._regSignature = '';
card._maybeRebuildDevices();
await card.updateComplete;
await until(() => !isOn(sourceId));
await until(() => !isOn(sourceId), 6000, 'unlink did not restore manual off');
const unlinkRestoresManualOff = !isOn(sourceId) && virtual.off.includes(sourceId);
const beforeManualService = serviceCalls.length;
await click(sourceId);
await until(() => isOn(sourceId));
try {
await until(() => isOn(sourceId), 6000, 'manual virtual toggle did not turn on');
} catch (error) {
throw new Error(`manual virtual toggle did not settle: ${JSON.stringify({
operationalToggleCalls,
serviceCalls: serviceCalls.length,
beforeManualService,
off: virtual.off,
suppressClick: card._suppressClick,
holdFired: card._holdFired,
deviceDrag: card._deviceDrag,
sourceAction: item(sourceId)?.tapAction,
sourceBinding: item(sourceId)?.binding,
sourceState: card._stateClass(item(sourceId)),
sourceIntent: card._toggleIntent(item(sourceId)),
sourceConnected: node(sourceId)?.isConnected,
})}`, { cause: error });
}
const manualToggleRestored = operationalToggleCalls === 1
&& serviceCalls.length === beforeManualService && !virtual.off.includes(sourceId);
+141 -141
View File
@@ -1,117 +1,117 @@
{
"schema": 1,
"fingerprint": "cb9420d3dbda63da3e028656329cf0c84296ab364f43c0d4710e279294bc8f98",
"fingerprint": "b9fc9e3485e171367db91b8386e18e79c8d2f4b0e379d14db6dfc2dd93e8423d",
"entry": "houseplan-card.js",
"panelEntry": "houseplan-panel.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-CjYLOThL.js",
"houseplan-assets/houseplan-card-sltdEKFS.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 290181,
"initialViewGzipBytes": 290173,
"initialPanelFiles": [
"houseplan-assets/houseplan-card-CjYLOThL.js",
"houseplan-assets/houseplan-card-sltdEKFS.js",
"houseplan-panel.js"
],
"initialPanelGzipBytes": 291704,
"initialPanelGzipBytes": 291697,
"initialPanelOnlyFiles": [
"houseplan-panel.js"
],
"initialPanelOnlyGzipBytes": 2328,
"initialPanelOnlyGzipBytes": 2326,
"lazyFiles": [
"houseplan-assets/backdrop-pick-Dzy_EAoX.js",
"houseplan-assets/de-CSVKIQMS.js",
"houseplan-assets/editor-1VsR6F6H.js",
"houseplan-assets/fr-BTuA9VPA.js",
"houseplan-assets/furniture-plan-art.generated-BjRO3-vk.js",
"houseplan-assets/guard-ClzlQzGc.js",
"houseplan-assets/houseplan-editor-runtime-BRhl2OxF.js",
"houseplan-assets/houseplan-onboarding-runtime-BacuK2j5.js",
"houseplan-assets/hp-zigbee-topology-overlay-C1F_6xm0.js",
"houseplan-assets/iso-scene-render-gpUJH-i5.js",
"houseplan-assets/live-interaction-runtime-BwW5kv5Y.js",
"houseplan-assets/pdf-export-9JTSXR3t.js",
"houseplan-assets/summary-panel-runtime-loaded-DiYlmvMc.js",
"houseplan-assets/zigbee-topology-Dok-0LZF.js",
"houseplan-assets/zigbee-topology-runtime-DzEG7Mwm.js"
"houseplan-assets/backdrop-pick-DN-2tcOT.js",
"houseplan-assets/de-C6F-eg43.js",
"houseplan-assets/editor-Ce0BQpJ-.js",
"houseplan-assets/fr-DjiokT_b.js",
"houseplan-assets/furniture-plan-art.generated-B24_xJbE.js",
"houseplan-assets/guard-BuxOGplD.js",
"houseplan-assets/houseplan-editor-runtime-C9YWmQNQ.js",
"houseplan-assets/houseplan-onboarding-runtime-BuOtxAIl.js",
"houseplan-assets/hp-zigbee-topology-overlay-BAqKJEV5.js",
"houseplan-assets/iso-scene-render-BAa5l9tq.js",
"houseplan-assets/live-interaction-runtime-DKhsH9o9.js",
"houseplan-assets/pdf-export-CTnhlVcd.js",
"houseplan-assets/summary-panel-runtime-loaded--HpxRg3N.js",
"houseplan-assets/zigbee-topology-Nr9i4fmi.js",
"houseplan-assets/zigbee-topology-runtime-BWmqNI5x.js"
],
"lazyGzipBytes": 417913,
"lazyGzipBytes": 417876,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-Dzy_EAoX.js",
"houseplan-assets/editor-1VsR6F6H.js",
"houseplan-assets/furniture-plan-art.generated-BjRO3-vk.js",
"houseplan-assets/guard-ClzlQzGc.js",
"houseplan-assets/houseplan-editor-runtime-BRhl2OxF.js",
"houseplan-assets/zigbee-topology-Dok-0LZF.js"
"houseplan-assets/backdrop-pick-DN-2tcOT.js",
"houseplan-assets/editor-Ce0BQpJ-.js",
"houseplan-assets/furniture-plan-art.generated-B24_xJbE.js",
"houseplan-assets/guard-BuxOGplD.js",
"houseplan-assets/houseplan-editor-runtime-C9YWmQNQ.js",
"houseplan-assets/zigbee-topology-Nr9i4fmi.js"
],
"lazyEditorGzipBytes": 205056,
"lazyEditorGzipBytes": 205041,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-Dzy_EAoX.js",
"houseplan-assets/houseplan-onboarding-runtime-BacuK2j5.js"
"houseplan-assets/backdrop-pick-DN-2tcOT.js",
"houseplan-assets/houseplan-onboarding-runtime-BuOtxAIl.js"
],
"lazyOnboardingGzipBytes": 13919,
"lazyOnboardingGzipBytes": 13914,
"lazyLocaleFiles": [
"houseplan-assets/de-CSVKIQMS.js",
"houseplan-assets/fr-BTuA9VPA.js"
"houseplan-assets/de-C6F-eg43.js",
"houseplan-assets/fr-DjiokT_b.js"
],
"lazyLocaleGzipBytes": 54824,
"lazyLocaleGzipBytes": 54818,
"lazyIsometricFiles": [
"houseplan-assets/guard-ClzlQzGc.js",
"houseplan-assets/iso-scene-render-gpUJH-i5.js"
"houseplan-assets/guard-BuxOGplD.js",
"houseplan-assets/iso-scene-render-BAa5l9tq.js"
],
"lazyIsometricGzipBytes": 13458,
"lazyIsometricGzipBytes": 13453,
"lazyFurnitureArtFiles": [
"houseplan-assets/furniture-plan-art.generated-BjRO3-vk.js"
"houseplan-assets/furniture-plan-art.generated-B24_xJbE.js"
],
"lazyFurnitureArtGzipBytes": 10254,
"lazyPdfFiles": [
"houseplan-assets/furniture-plan-art.generated-BjRO3-vk.js",
"houseplan-assets/pdf-export-9JTSXR3t.js"
"houseplan-assets/furniture-plan-art.generated-B24_xJbE.js",
"houseplan-assets/pdf-export-CTnhlVcd.js"
],
"lazyPdfGzipBytes": 120125,
"lazyPdfGzipBytes": 120126,
"files": [
{
"path": "houseplan-assets/backdrop-pick-Dzy_EAoX.js",
"sha256": "d158cb34f030fb9433d1fec6b8d2ee575a99c83d1426bb358ccd6cc9251e5efd",
"path": "houseplan-assets/backdrop-pick-DN-2tcOT.js",
"sha256": "a27dc1661c6203ce7d114a5985791f2d27d5dccd171f1c5965cc53455ee3e9eb",
"rawBytes": 19956,
"gzipBytes": 6881,
"gzipBytes": 6879,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CjYLOThL.js"
"houseplan-assets/houseplan-card-sltdEKFS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/de-CSVKIQMS.js",
"sha256": "32d733407bfb847f34016710110471cb5537e4c4d8953da76829506c099f4759",
"path": "houseplan-assets/de-C6F-eg43.js",
"sha256": "a496b5f2164c8ece60bfd7819a992c8821cdc3a250da94ade633853f96ddd8d5",
"rawBytes": 91402,
"gzipBytes": 27695,
"gzipBytes": 27693,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-1VsR6F6H.js",
"sha256": "0ef3344be713961d01e08cfc52b0ea3ffe92e8682729378341a2e998710c8f22",
"path": "houseplan-assets/editor-Ce0BQpJ-.js",
"sha256": "5b15efb75f8fcd388761011369a8733c97a7fd9c018398536e0d22a7eb7bc0a3",
"rawBytes": 3832,
"gzipBytes": 1585,
"gzipBytes": 1583,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CjYLOThL.js"
"houseplan-assets/houseplan-card-sltdEKFS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-BTuA9VPA.js",
"sha256": "2e5cc1b9dcbcab552ecce7942f6cbc65ea1507cc47e89abdfcee6f1fa7c7cb04",
"path": "houseplan-assets/fr-DjiokT_b.js",
"sha256": "9358eace06b200d704c840dab68669aead728ce5536c90862d5305ac81639a7f",
"rawBytes": 93667,
"gzipBytes": 27129,
"gzipBytes": 27125,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/furniture-plan-art.generated-BjRO3-vk.js",
"sha256": "4ed28342e4dfe797520cafccd4a06f64eb1d37c63964e3c1ce07328649c175e3",
"path": "houseplan-assets/furniture-plan-art.generated-B24_xJbE.js",
"sha256": "e38cd9cb67be92d2d9fd2e3ae0fa69523d214e448bef309897ebdeb0843245b3",
"rawBytes": 33655,
"gzipBytes": 10254,
"isEntry": false,
@@ -119,193 +119,193 @@
"dynamicImports": []
},
{
"path": "houseplan-assets/guard-ClzlQzGc.js",
"sha256": "749cb567f0b82de5ec1e951147227014413e6ee01ce5249156ed45e506ed6173",
"path": "houseplan-assets/guard-BuxOGplD.js",
"sha256": "6f982643134192c4816627ae9c0c873c09fd480d2c3794662a96f8d4a653e062",
"rawBytes": 518,
"gzipBytes": 370,
"gzipBytes": 366,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CjYLOThL.js"
"houseplan-assets/houseplan-card-sltdEKFS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-CjYLOThL.js",
"sha256": "f44c0c95d289a585fc55f4725884aed279902de5a63a79132deb174503d92ddb",
"rawBytes": 1030747,
"gzipBytes": 289376,
"path": "houseplan-assets/houseplan-card-sltdEKFS.js",
"sha256": "6979d29cb9740e8e37d4c3717932b63068be43ecf57c55e3d8a7cc45df7fdabc",
"rawBytes": 1030749,
"gzipBytes": 289371,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-CSVKIQMS.js",
"houseplan-assets/editor-1VsR6F6H.js",
"houseplan-assets/fr-BTuA9VPA.js",
"houseplan-assets/furniture-plan-art.generated-BjRO3-vk.js",
"houseplan-assets/houseplan-editor-runtime-BRhl2OxF.js",
"houseplan-assets/houseplan-onboarding-runtime-BacuK2j5.js",
"houseplan-assets/hp-zigbee-topology-overlay-C1F_6xm0.js",
"houseplan-assets/iso-scene-render-gpUJH-i5.js",
"houseplan-assets/live-interaction-runtime-BwW5kv5Y.js",
"houseplan-assets/pdf-export-9JTSXR3t.js",
"houseplan-assets/summary-panel-runtime-loaded-DiYlmvMc.js"
"houseplan-assets/de-C6F-eg43.js",
"houseplan-assets/editor-Ce0BQpJ-.js",
"houseplan-assets/fr-DjiokT_b.js",
"houseplan-assets/furniture-plan-art.generated-B24_xJbE.js",
"houseplan-assets/houseplan-editor-runtime-C9YWmQNQ.js",
"houseplan-assets/houseplan-onboarding-runtime-BuOtxAIl.js",
"houseplan-assets/hp-zigbee-topology-overlay-BAqKJEV5.js",
"houseplan-assets/iso-scene-render-BAa5l9tq.js",
"houseplan-assets/live-interaction-runtime-DKhsH9o9.js",
"houseplan-assets/pdf-export-CTnhlVcd.js",
"houseplan-assets/summary-panel-runtime-loaded--HpxRg3N.js"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-BRhl2OxF.js",
"sha256": "b64d5daccda0c842fc55f0ebaa5846fd4ae862fc036f84b802e5dac405557f14",
"path": "houseplan-assets/houseplan-editor-runtime-C9YWmQNQ.js",
"sha256": "8fc4aa226dc304ab75914a05c61e61dd1f578f11152358f762fbf450fb5c6d03",
"rawBytes": 668940,
"gzipBytes": 178534,
"gzipBytes": 178532,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-Dzy_EAoX.js",
"houseplan-assets/furniture-plan-art.generated-BjRO3-vk.js",
"houseplan-assets/guard-ClzlQzGc.js",
"houseplan-assets/houseplan-card-CjYLOThL.js",
"houseplan-assets/zigbee-topology-Dok-0LZF.js"
"houseplan-assets/backdrop-pick-DN-2tcOT.js",
"houseplan-assets/furniture-plan-art.generated-B24_xJbE.js",
"houseplan-assets/guard-BuxOGplD.js",
"houseplan-assets/houseplan-card-sltdEKFS.js",
"houseplan-assets/zigbee-topology-Nr9i4fmi.js"
],
"dynamicImports": [
"houseplan-assets/zigbee-topology-runtime-DzEG7Mwm.js"
"houseplan-assets/zigbee-topology-runtime-BWmqNI5x.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime-BacuK2j5.js",
"sha256": "cd6a3b5154294e56b6905bea3ea7ee1ef79ef9c64c162563d5f628af5af8865b",
"path": "houseplan-assets/houseplan-onboarding-runtime-BuOtxAIl.js",
"sha256": "d43cc9955fd13308508529cff764d5607899e3424116f60a3b69c169e009229b",
"rawBytes": 28287,
"gzipBytes": 7038,
"gzipBytes": 7035,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-Dzy_EAoX.js",
"houseplan-assets/houseplan-card-CjYLOThL.js"
"houseplan-assets/backdrop-pick-DN-2tcOT.js",
"houseplan-assets/houseplan-card-sltdEKFS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-C1F_6xm0.js",
"sha256": "3d82c76ae3231ad619ffaf205b2f1533c31e979631b0d8a2f87a0ed0842f7f14",
"path": "houseplan-assets/hp-zigbee-topology-overlay-BAqKJEV5.js",
"sha256": "933f069fd8e49ba2cb84e44435291259710c2dee792293ea4deda05bab85192f",
"rawBytes": 10756,
"gzipBytes": 3683,
"gzipBytes": 3679,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CjYLOThL.js",
"houseplan-assets/zigbee-topology-Dok-0LZF.js",
"houseplan-assets/zigbee-topology-runtime-DzEG7Mwm.js"
"houseplan-assets/houseplan-card-sltdEKFS.js",
"houseplan-assets/zigbee-topology-Nr9i4fmi.js",
"houseplan-assets/zigbee-topology-runtime-BWmqNI5x.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/iso-scene-render-gpUJH-i5.js",
"sha256": "bf7475dbc19e72322892f8de760613c65f1efc59c054a13c0ec55a2ac32ad3f6",
"path": "houseplan-assets/iso-scene-render-BAa5l9tq.js",
"sha256": "b4acedbe48cb242fa676dd896bf10e01e152de12b51e25bca9f484fe5c560fc7",
"rawBytes": 38562,
"gzipBytes": 13088,
"gzipBytes": 13087,
"isEntry": false,
"imports": [
"houseplan-assets/guard-ClzlQzGc.js",
"houseplan-assets/houseplan-card-CjYLOThL.js"
"houseplan-assets/guard-BuxOGplD.js",
"houseplan-assets/houseplan-card-sltdEKFS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/live-interaction-runtime-BwW5kv5Y.js",
"sha256": "51e5429914e2b80c7852fa3bc6e0a683b5aa4582d4cfd202f68e70f2b2ad09ee",
"path": "houseplan-assets/live-interaction-runtime-DKhsH9o9.js",
"sha256": "943a780fe9b53872a85ccf3e772f73735489a7e625f6a13bfd91039ecd7ed524",
"rawBytes": 6233,
"gzipBytes": 2499,
"gzipBytes": 2497,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CjYLOThL.js"
"houseplan-assets/houseplan-card-sltdEKFS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/pdf-export-9JTSXR3t.js",
"sha256": "16d218b19f99db9f563c88c39392bebe9c53afda174f43881a7836a50d75687d",
"path": "houseplan-assets/pdf-export-CTnhlVcd.js",
"sha256": "fa7107ab2bd2f10f011959429d097cf439326680e179ae082143a71b50c06c2b",
"rawBytes": 236244,
"gzipBytes": 109871,
"gzipBytes": 109872,
"isEntry": false,
"imports": [
"houseplan-assets/furniture-plan-art.generated-BjRO3-vk.js",
"houseplan-assets/houseplan-card-CjYLOThL.js"
"houseplan-assets/furniture-plan-art.generated-B24_xJbE.js",
"houseplan-assets/houseplan-card-sltdEKFS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-editor-CL_nmnS1.js",
"sha256": "ccfe975a9a07ff0e320b7ac6386828a1870b58ba10cd983702c06b424d6e958c",
"path": "houseplan-assets/summary-panel-editor-C0mf6c_y.js",
"sha256": "69e89730f4ed2023504d4ee14a76ef6c750f06b61610623b767be3d4f5227b9b",
"rawBytes": 14824,
"gzipBytes": 3402,
"gzipBytes": 3397,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CjYLOThL.js",
"houseplan-assets/summary-panel-runtime-loaded-DiYlmvMc.js"
"houseplan-assets/houseplan-card-sltdEKFS.js",
"houseplan-assets/summary-panel-runtime-loaded--HpxRg3N.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-metrics-CSAIN0n9.js",
"sha256": "49fbae069107af7e8507c0149768cae81806a268ef0efe56bc58f757520c881e",
"path": "houseplan-assets/summary-panel-metrics-_3hH5UlC.js",
"sha256": "a151ee21a940503df39ee5cc8fdd044091486c1028ba54149f75f466bf20b3a7",
"rawBytes": 2610,
"gzipBytes": 1308,
"gzipBytes": 1306,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CjYLOThL.js"
"houseplan-assets/houseplan-card-sltdEKFS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-runtime-loaded-DiYlmvMc.js",
"sha256": "f187b08847775fccc1264e0e3e6cbf677db991fe1ac692078c2bb43b165a8b25",
"path": "houseplan-assets/summary-panel-runtime-loaded--HpxRg3N.js",
"sha256": "925c98e3a20e79190d1dca7baf60a020086c65d6f38b76030916a77989ed0adb",
"rawBytes": 73366,
"gzipBytes": 20088,
"gzipBytes": 20085,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CjYLOThL.js"
"houseplan-assets/houseplan-card-sltdEKFS.js"
],
"dynamicImports": [
"houseplan-assets/summary-panel-editor-CL_nmnS1.js",
"houseplan-assets/summary-panel-metrics-CSAIN0n9.js"
"houseplan-assets/summary-panel-editor-C0mf6c_y.js",
"houseplan-assets/summary-panel-metrics-_3hH5UlC.js"
]
},
{
"path": "houseplan-assets/zigbee-topology-Dok-0LZF.js",
"sha256": "a0562545792c722e5c7a6a0b31d016b8a034a4b635559011c27a232b4c19b4de",
"path": "houseplan-assets/zigbee-topology-Nr9i4fmi.js",
"sha256": "b8bc9ef2f7ae94d1cb6fe8bbc61f405ca1d776748952f7e45c6269060b7db4f3",
"rawBytes": 18961,
"gzipBytes": 7432,
"gzipBytes": 7427,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CjYLOThL.js"
"houseplan-assets/houseplan-card-sltdEKFS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-runtime-DzEG7Mwm.js",
"sha256": "342ca286774b0503fcfa071961f4b0d53e9b53a53a6e4edc2391647d8038ddce",
"path": "houseplan-assets/zigbee-topology-runtime-BWmqNI5x.js",
"sha256": "de20368d5b24934a550a70dd51f247b615acb32cd717630a07509438fa0948e3",
"rawBytes": 3941,
"gzipBytes": 1766,
"gzipBytes": 1762,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CjYLOThL.js",
"houseplan-assets/zigbee-topology-Dok-0LZF.js"
"houseplan-assets/houseplan-card-sltdEKFS.js",
"houseplan-assets/zigbee-topology-Nr9i4fmi.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "e27de5098e5d0d1cb31b54b47f01112fe515e0aa35e2be54abe07242c8bd2ef9",
"sha256": "ba3f05f030017e34a51d285b74776e2e0199ec3da30ac394114510c90be0cfbd",
"rawBytes": 1205,
"gzipBytes": 805,
"gzipBytes": 802,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-CjYLOThL.js"
"houseplan-assets/houseplan-card-sltdEKFS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-panel.js",
"sha256": "e3b374d868f748d196dd536921d95582f381ff6172b2ce5164a4e5472213bd8a",
"sha256": "1fecde5b6428af6d91db6f774152c1338e8522a68383c4be499d9ff25888b68a",
"rawBytes": 6165,
"gzipBytes": 2328,
"gzipBytes": 2326,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-CjYLOThL.js"
"houseplan-assets/houseplan-card-sltdEKFS.js"
],
"dynamicImports": []
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="cb9420d3dbda63da3e028656329cf0c84296ab364f43c0d4710e279294bc8f98";import{m as e,l as o,t,e3 as s,A as a,e4 as i,e5 as l,e6 as n,dU as r,b as c}from"./houseplan-card-CjYLOThL.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
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b9fc9e3485e171367db91b8386e18e79c8d2f4b0e379d14db6dfc2dd93e8423d";import{m as e,l as o,t,e3 as s,A as a,e4 as i,e5 as l,e6 as n,dU as r,b as c}from"./houseplan-card-sltdEKFS.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}
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b9fc9e3485e171367db91b8386e18e79c8d2f4b0e379d14db6dfc2dd93e8423d";import{dS as r,dT as e,dU as t}from"./houseplan-card-sltdEKFS.js";const s={},d=r(class extends e{constructor(){super(...arguments),this.ot=s}render(r,e){return e()}update(r,[e,s]){if(Array.isArray(e)){if(Array.isArray(this.ot)&&this.ot.length===e.length&&e.every((r,e)=>r===this.ot[e]))return t}else if(this.ot===e)return t;return this.ot=Array.isArray(e)?Array.from(e):e,this.render(e,s)}});export{d as i};
-1
View File
@@ -1 +0,0 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="cb9420d3dbda63da3e028656329cf0c84296ab364f43c0d4710e279294bc8f98";import{dS as r,dT as t,dU as s}from"./houseplan-card-CjYLOThL.js";const e={},a=r(class extends t{constructor(){super(...arguments),this.ot=e}render(r,t){return t()}update(r,[t,e]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return s}else if(this.ot===t)return s;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,e)}});export{a as i};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="cb9420d3dbda63da3e028656329cf0c84296ab364f43c0d4710e279294bc8f98";import{b as a,A as e}from"./houseplan-card-CjYLOThL.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-DiYlmvMc.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">
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b9fc9e3485e171367db91b8386e18e79c8d2f4b0e379d14db6dfc2dd93e8423d";import{b as a,A as e}from"./houseplan-card-sltdEKFS.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--HpxRg3N.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"
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="cb9420d3dbda63da3e028656329cf0c84296ab364f43c0d4710e279294bc8f98";import{e9 as e,L as t,a2 as n,J as i,an as o,N as r,bo as s,bn as a,a1 as c,a0 as l,ax as d,ea as u,eb as f,bq as m,ec as g}from"./houseplan-card-CjYLOThL.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=d(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 y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(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:l(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*h(c,l,d=_){try{let u=0;for(const f of l){const l=c.spaces.find(e=>String(e?.id)===f.id);if(!l)continue;const m=e(l,f),g=d(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(c,m.physicalBodies)),yield}const _=m.cellCm/o;u+=a(v)*_*_/1e4}return u}catch{return null}}function p(e,t,n=_){const i=h(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function b(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:m(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 S(e,t){const n=e?.states?.[t];if(!n)return null;const i=u(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{h as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,b as summarySystemValue,p as totalCleanFloorAreaM2};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b9fc9e3485e171367db91b8386e18e79c8d2f4b0e379d14db6dfc2dd93e8423d";import{e9 as e,L as t,a2 as n,J as i,an as o,N as r,bo as s,bn as a,a1 as c,a0 as l,ax as d,ea as u,eb as f,bq as m,ec as g}from"./houseplan-card-sltdEKFS.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=d(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 y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(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:l(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*b(c,l,d=_){try{let u=0;for(const f of l){const l=c.spaces.find(e=>String(e?.id)===f.id);if(!l)continue;const m=e(l,f),g=d(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(c,m.physicalBodies)),yield}const _=m.cellCm/o;u+=a(v)*_*_/1e4}return u}catch{return null}}function h(e,t,n=_){const i=b(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function p(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:m(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 S(e,t){const n=e?.states?.[t];if(!n)return null;const i=u(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{b as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,p as summarySystemValue,h as totalCleanFloorAreaM2};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="cb9420d3dbda63da3e028656329cf0c84296ab364f43c0d4710e279294bc8f98";import{n as t,b as n}from"./zigbee-topology-Dok-0LZF.js";import{B as e}from"./houseplan-card-CjYLOThL.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 h(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 m(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,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,m=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(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=h(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&&m?.(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,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b9fc9e3485e171367db91b8386e18e79c8d2f4b0e379d14db6dfc2dd93e8423d";import{n as t,b as n}from"./zigbee-topology-Nr9i4fmi.js";import{B as e}from"./houseplan-card-sltdEKFS.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 h(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 m(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,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,m=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(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=h(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&&m?.(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,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
+1 -1
View File
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="cb9420d3dbda63da3e028656329cf0c84296ab364f43c0d4710e279294bc8f98";try{await import("./houseplan-assets/houseplan-card-CjYLOThL.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__="b9fc9e3485e171367db91b8386e18e79c8d2f4b0e379d14db6dfc2dd93e8423d";try{await import("./houseplan-assets/houseplan-card-sltdEKFS.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)}
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -1
View File
@@ -5,7 +5,8 @@
- Closely placed device markers no longer steal one another's hover, click,
long-press or drag target. The painted marker under the pointer now wins;
overlapping invisible touch areas fall back to the nearest marker while the
existing 44 px minimum target remains unchanged
existing 44 px minimum target remains unchanged. Keyboard and programmatic
activation stay attached to the explicitly targeted marker
([#564](https://github.com/Matysh/houseplan-card/issues/564)).
- Pinch-zooming the plan from a device marker no longer runs that device's
+3 -1
View File
@@ -11,7 +11,9 @@
- Близко размещённые значки устройств больше не перехватывают друг у друга
наведение, нажатие, долгое нажатие или перетаскивание. В нарисованной области
выбирается видимый значок; пересечение невидимых зон нажатия разрешается в
пользу ближайшего значка, а минимальная область 44 пикселя не уменьшается
пользу ближайшего значка, а минимальная область 44 пикселя не уменьшается.
Клавиатурная и программная активация остаётся привязана к явно выбранному
значку
([#564](https://github.com/Matysh/houseplan-card/issues/564)).
- Масштабирование плана щипком, начатое на значке устройства, больше не
+4 -2
View File
@@ -265,8 +265,10 @@ export class DeviceHitController {
public click<T extends RenderedDeviceHitItem>(
root: ParentNode, devices: readonly T[], space: string | null, ev: Event, fallback: T,
): T {
if (ev instanceof KeyboardEvent) return fallback;
const point = ev as PointerEvent;
// Keyboard/programmatic activation is already bound to an exact marker.
// Only a real pointer click carries coordinates that need arbitration.
if (!(ev instanceof PointerEvent)) return fallback;
const point = ev;
const id = Number.isFinite(point.pointerId) ? this.pointers.consumeClick(point.pointerId) : null;
return this.byId(devices, space, id)
|| this.at(root, devices, space, point.clientX, point.clientY)
+1 -1
View File
@@ -5742,7 +5742,7 @@ export class HouseplanCard extends LitElement {
const presentation = this._devicePresentation(d, showLqi);
const disabledReason = presentation.disabledReason;
const ghostLabel = presentation.haDisabled
? this._t((`marker.ha_disabled_${disabledReason}`) as any)
? this._t((`marker.ha_disabled_${disabledReason}`) as I18nKey)
: d.userHidden ? this._t('marker.hidden_ghost') : d.name;
const metrics = [
d.model,
+1
View File
@@ -13,6 +13,7 @@ test('#564 wires one semantic owner through pointer, click and hover paths', ()
assert.match(card, /private _pointerDown[\s\S]*?_deviceHits\.begin/);
assert.match(card, /private _pointerCancel[\s\S]*?_deviceHits\.cancel/);
assert.match(owner, /class DeviceHitController[\s\S]*?consumeClick/);
assert.match(owner, /if \(!\(ev instanceof PointerEvent\)\) return fallback/);
assert.match(owner, /hover\([\s\S]*?data-hp-device-hover/);
});