test: применять внешний луч как глобальную настройку (#577)

Issue: #577
User-Visible: no
This commit is contained in:
Sergey Matyunin
2026-09-15 00:58:06 +03:00
parent 18a08b91f9
commit 0d1df78f5d
45 changed files with 357 additions and 349 deletions
@@ -1,295 +1,295 @@
{
"schema": 1,
"fingerprint": "9f1d8751f6abef9a79dddc894962a1a1be5eb0a67014fd7ddbace7ce82f9a204",
"fingerprint": "09bdfa98edfc8feaa5f2e57eaf3915f817afefdf95ba0c1b2fe1f9ebbea93e52",
"entry": "houseplan-card.js",
"panelEntry": "houseplan-panel.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js",
"houseplan-assets/houseplan-card-Dc1nDalz.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 290610,
"initialViewGzipBytes": 290602,
"initialPanelFiles": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js",
"houseplan-assets/houseplan-card-Dc1nDalz.js",
"houseplan-panel.js"
],
"initialPanelGzipBytes": 292132,
"initialPanelGzipBytes": 292124,
"initialPanelOnlyFiles": [
"houseplan-panel.js"
],
"initialPanelOnlyGzipBytes": 2322,
"initialPanelOnlyGzipBytes": 2319,
"lazyFiles": [
"houseplan-assets/backdrop-pick-C3oQRhnF.js",
"houseplan-assets/de-oQhgeTFS.js",
"houseplan-assets/editor-C0z9uJB0.js",
"houseplan-assets/fr-CCuZR0qg.js",
"houseplan-assets/furniture-plan-art.generated-CgJzz-Xj.js",
"houseplan-assets/houseplan-editor-runtime-Bn529gF4.js",
"houseplan-assets/houseplan-onboarding-runtime-CLLcgsSI.js",
"houseplan-assets/hp-zigbee-topology-overlay-DFWvSeoe.js",
"houseplan-assets/iso-scene-render-CMLQQx0H.js",
"houseplan-assets/live-interaction-runtime-CI0RAG5r.js",
"houseplan-assets/pdf-export-DcOO4Xzs.js",
"houseplan-assets/summary-panel-runtime-loaded-DLmV4sHt.js",
"houseplan-assets/zigbee-topology-DICrvL82.js",
"houseplan-assets/zigbee-topology-runtime-BXE3wv_w.js"
"houseplan-assets/backdrop-pick-gPEGe1qK.js",
"houseplan-assets/de-Cv59WbbX.js",
"houseplan-assets/editor-B_aKOjOd.js",
"houseplan-assets/fr-f5HU1FOM.js",
"houseplan-assets/furniture-plan-art.generated-Bp606vE4.js",
"houseplan-assets/houseplan-editor-runtime-CzNlYRjc.js",
"houseplan-assets/houseplan-onboarding-runtime-nh2C2FaM.js",
"houseplan-assets/hp-zigbee-topology-overlay-DIpDzN0W.js",
"houseplan-assets/iso-scene-render-CPgYpwNC.js",
"houseplan-assets/live-interaction-runtime-BkFxBVMA.js",
"houseplan-assets/pdf-export-Co2Yz8xx.js",
"houseplan-assets/summary-panel-runtime-loaded-CVKoQCwS.js",
"houseplan-assets/zigbee-topology-CShPwd1w.js",
"houseplan-assets/zigbee-topology-runtime-Ck0cNC2p.js"
],
"lazyGzipBytes": 418704,
"lazyGzipBytes": 418658,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-C3oQRhnF.js",
"houseplan-assets/editor-C0z9uJB0.js",
"houseplan-assets/furniture-plan-art.generated-CgJzz-Xj.js",
"houseplan-assets/houseplan-editor-runtime-Bn529gF4.js",
"houseplan-assets/zigbee-topology-DICrvL82.js"
"houseplan-assets/backdrop-pick-gPEGe1qK.js",
"houseplan-assets/editor-B_aKOjOd.js",
"houseplan-assets/furniture-plan-art.generated-Bp606vE4.js",
"houseplan-assets/houseplan-editor-runtime-CzNlYRjc.js",
"houseplan-assets/zigbee-topology-CShPwd1w.js"
],
"lazyEditorGzipBytes": 204923,
"lazyEditorGzipBytes": 204916,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-C3oQRhnF.js",
"houseplan-assets/houseplan-onboarding-runtime-CLLcgsSI.js"
"houseplan-assets/backdrop-pick-gPEGe1qK.js",
"houseplan-assets/houseplan-onboarding-runtime-nh2C2FaM.js"
],
"lazyOnboardingGzipBytes": 13911,
"lazyOnboardingGzipBytes": 13906,
"lazyLocaleFiles": [
"houseplan-assets/de-oQhgeTFS.js",
"houseplan-assets/fr-CCuZR0qg.js"
"houseplan-assets/de-Cv59WbbX.js",
"houseplan-assets/fr-f5HU1FOM.js"
],
"lazyLocaleGzipBytes": 54908,
"lazyLocaleGzipBytes": 54895,
"lazyIsometricFiles": [
"houseplan-assets/iso-scene-render-CMLQQx0H.js"
"houseplan-assets/iso-scene-render-CPgYpwNC.js"
],
"lazyIsometricGzipBytes": 13230,
"lazyIsometricGzipBytes": 13228,
"lazyFurnitureArtFiles": [
"houseplan-assets/furniture-plan-art.generated-CgJzz-Xj.js"
"houseplan-assets/furniture-plan-art.generated-Bp606vE4.js"
],
"lazyFurnitureArtGzipBytes": 10256,
"lazyFurnitureArtGzipBytes": 10259,
"lazyPdfFiles": [
"houseplan-assets/furniture-plan-art.generated-CgJzz-Xj.js",
"houseplan-assets/pdf-export-DcOO4Xzs.js"
"houseplan-assets/furniture-plan-art.generated-Bp606vE4.js",
"houseplan-assets/pdf-export-Co2Yz8xx.js"
],
"lazyPdfGzipBytes": 120130,
"lazyPdfGzipBytes": 120131,
"files": [
{
"path": "houseplan-assets/backdrop-pick-C3oQRhnF.js",
"sha256": "19ff5b3d68fab85dca99a043f7a83c48bd6631e4817c9c0038778ad4335e3d90",
"path": "houseplan-assets/backdrop-pick-gPEGe1qK.js",
"sha256": "a4d457e11f5d70d298387f688dd86b504612eaa90a226399f75deeedf825bc16",
"rawBytes": 19956,
"gzipBytes": 6878,
"gzipBytes": 6877,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js"
"houseplan-assets/houseplan-card-Dc1nDalz.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/de-oQhgeTFS.js",
"sha256": "e72d2c047d8f8bca7cd5bd0b574d60944d1f24de2a274a18df4831adaf7a1198",
"path": "houseplan-assets/de-Cv59WbbX.js",
"sha256": "b4c92851382aa0cf0ed1aef196716e4b251dbc48bdc82abd06ca6e25517c956b",
"rawBytes": 91590,
"gzipBytes": 27738,
"gzipBytes": 27731,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-C0z9uJB0.js",
"sha256": "c9186166e32f33e62e6e86a473cb75721850efa45fda69f332c96b8d8c55a28e",
"path": "houseplan-assets/editor-B_aKOjOd.js",
"sha256": "a6df62742036a11689c9278e29cc831b10829495d941b3436ac05a844ebc659b",
"rawBytes": 3831,
"gzipBytes": 1581,
"gzipBytes": 1577,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js"
"houseplan-assets/houseplan-card-Dc1nDalz.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-CCuZR0qg.js",
"sha256": "0d1c352f58bd5fb5c369825a318a9087c60fac6af9019af11890ec264d17cbd4",
"path": "houseplan-assets/fr-f5HU1FOM.js",
"sha256": "d76dce08b7a46c90505228015672b760604f5f53ff61fffafe1893a0597e46a3",
"rawBytes": 93884,
"gzipBytes": 27170,
"gzipBytes": 27164,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/furniture-plan-art.generated-CgJzz-Xj.js",
"sha256": "6163ae09e4a50ccfac273ddf9cc115e5c108c83223f69c85ce28ae75e0443a76",
"path": "houseplan-assets/furniture-plan-art.generated-Bp606vE4.js",
"sha256": "29dd1098f6467fdf59c913cf98b60ef615b18607e31048614b7caa45d631b195",
"rawBytes": 33655,
"gzipBytes": 10256,
"gzipBytes": 10259,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-Bbv3jFGo.js",
"sha256": "fa22fa7a61b405f976d855bc5cc4366a08caab3db67873f770026795d5461eaf",
"path": "houseplan-assets/houseplan-card-Dc1nDalz.js",
"sha256": "efd4fe1185c5df6d6a473ae877bcfde512f47a1c364c2f7ce8bb907bb30fbbff",
"rawBytes": 1032408,
"gzipBytes": 289810,
"gzipBytes": 289805,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-oQhgeTFS.js",
"houseplan-assets/editor-C0z9uJB0.js",
"houseplan-assets/fr-CCuZR0qg.js",
"houseplan-assets/furniture-plan-art.generated-CgJzz-Xj.js",
"houseplan-assets/houseplan-editor-runtime-Bn529gF4.js",
"houseplan-assets/houseplan-onboarding-runtime-CLLcgsSI.js",
"houseplan-assets/hp-zigbee-topology-overlay-DFWvSeoe.js",
"houseplan-assets/iso-scene-render-CMLQQx0H.js",
"houseplan-assets/live-interaction-runtime-CI0RAG5r.js",
"houseplan-assets/pdf-export-DcOO4Xzs.js",
"houseplan-assets/summary-panel-runtime-loaded-DLmV4sHt.js"
"houseplan-assets/de-Cv59WbbX.js",
"houseplan-assets/editor-B_aKOjOd.js",
"houseplan-assets/fr-f5HU1FOM.js",
"houseplan-assets/furniture-plan-art.generated-Bp606vE4.js",
"houseplan-assets/houseplan-editor-runtime-CzNlYRjc.js",
"houseplan-assets/houseplan-onboarding-runtime-nh2C2FaM.js",
"houseplan-assets/hp-zigbee-topology-overlay-DIpDzN0W.js",
"houseplan-assets/iso-scene-render-CPgYpwNC.js",
"houseplan-assets/live-interaction-runtime-BkFxBVMA.js",
"houseplan-assets/pdf-export-Co2Yz8xx.js",
"houseplan-assets/summary-panel-runtime-loaded-CVKoQCwS.js"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-Bn529gF4.js",
"sha256": "dc6d6f87d1ac7c6055bd189a810bbe480f08b90b3886232834b31000da338ed2",
"path": "houseplan-assets/houseplan-editor-runtime-CzNlYRjc.js",
"sha256": "38a3ba534ded790e8c2d85ef1e62db6622e9b2938372fe51978ef509cf1a6782",
"rawBytes": 669985,
"gzipBytes": 178786,
"gzipBytes": 178781,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-C3oQRhnF.js",
"houseplan-assets/furniture-plan-art.generated-CgJzz-Xj.js",
"houseplan-assets/houseplan-card-Bbv3jFGo.js",
"houseplan-assets/zigbee-topology-DICrvL82.js"
"houseplan-assets/backdrop-pick-gPEGe1qK.js",
"houseplan-assets/furniture-plan-art.generated-Bp606vE4.js",
"houseplan-assets/houseplan-card-Dc1nDalz.js",
"houseplan-assets/zigbee-topology-CShPwd1w.js"
],
"dynamicImports": [
"houseplan-assets/zigbee-topology-runtime-BXE3wv_w.js"
"houseplan-assets/zigbee-topology-runtime-Ck0cNC2p.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime-CLLcgsSI.js",
"sha256": "99a509c53b2907d44a8a7ae93b4b0c297a0e42331356cf7f039b652ea2120a1e",
"path": "houseplan-assets/houseplan-onboarding-runtime-nh2C2FaM.js",
"sha256": "719ede0971fd464b77fb36ff0f6de9bcaa046eaa83d1b8e7153b6331aeedd370",
"rawBytes": 28287,
"gzipBytes": 7033,
"gzipBytes": 7029,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-C3oQRhnF.js",
"houseplan-assets/houseplan-card-Bbv3jFGo.js"
"houseplan-assets/backdrop-pick-gPEGe1qK.js",
"houseplan-assets/houseplan-card-Dc1nDalz.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-DFWvSeoe.js",
"sha256": "9686925be8689e4ed5bac159f284583470889528aa042c1933f0f8c859ff98b3",
"path": "houseplan-assets/hp-zigbee-topology-overlay-DIpDzN0W.js",
"sha256": "8f03467b478ee35d47244ab06fd53ce73e447bfd0ba456cd7795d097842f4c42",
"rawBytes": 10756,
"gzipBytes": 3683,
"gzipBytes": 3678,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js",
"houseplan-assets/zigbee-topology-DICrvL82.js",
"houseplan-assets/zigbee-topology-runtime-BXE3wv_w.js"
"houseplan-assets/houseplan-card-Dc1nDalz.js",
"houseplan-assets/zigbee-topology-CShPwd1w.js",
"houseplan-assets/zigbee-topology-runtime-Ck0cNC2p.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/iso-scene-render-CMLQQx0H.js",
"sha256": "8766f6a323410ecc7bca43ab0511817343810c0311d4d149cf362d090c6d05e3",
"path": "houseplan-assets/iso-scene-render-CPgYpwNC.js",
"sha256": "810b9e8d456ef1e1c2ffafd9a368f76e116b000cb14a9e6e60763eed229a3527",
"rawBytes": 39206,
"gzipBytes": 13230,
"gzipBytes": 13228,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js"
"houseplan-assets/houseplan-card-Dc1nDalz.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/live-interaction-runtime-CI0RAG5r.js",
"sha256": "bad97fc58028ddf6b8f158e873f234400d7b05b8a8e98d35e9593e81234b67dc",
"path": "houseplan-assets/live-interaction-runtime-BkFxBVMA.js",
"sha256": "69ced43aa2bad1e33b826eb191f289ed47cded26c831d6c76562932c3eca1a6b",
"rawBytes": 8216,
"gzipBytes": 3205,
"gzipBytes": 3200,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js"
"houseplan-assets/houseplan-card-Dc1nDalz.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/pdf-export-DcOO4Xzs.js",
"sha256": "ea3700c652c995c00cfd0ee8593c59ea7a93b3a9a6522367dd1f3aa9a474b096",
"path": "houseplan-assets/pdf-export-Co2Yz8xx.js",
"sha256": "4f5c8436f01c130098c3f6a3c1fe0ba93038112663017a4a044089b9a36886fa",
"rawBytes": 236244,
"gzipBytes": 109874,
"gzipBytes": 109872,
"isEntry": false,
"imports": [
"houseplan-assets/furniture-plan-art.generated-CgJzz-Xj.js",
"houseplan-assets/houseplan-card-Bbv3jFGo.js"
"houseplan-assets/furniture-plan-art.generated-Bp606vE4.js",
"houseplan-assets/houseplan-card-Dc1nDalz.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-editor-DFvlCWLz.js",
"sha256": "c3507dfba02deddc92bda2f21b7fefd1ca66e7956c174970fb62512155e73e40",
"path": "houseplan-assets/summary-panel-editor-3aux2NA6.js",
"sha256": "12bd2cb117766bbbf730d226145eb8de61caf290113c556bd3525bfa67a0831d",
"rawBytes": 14824,
"gzipBytes": 3396,
"gzipBytes": 3395,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js",
"houseplan-assets/summary-panel-runtime-loaded-DLmV4sHt.js"
"houseplan-assets/houseplan-card-Dc1nDalz.js",
"houseplan-assets/summary-panel-runtime-loaded-CVKoQCwS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-metrics-DgdrnmQ-.js",
"sha256": "c0fbb2a1de3fc7a4ef4a780590834baf3f1f6501785f2edead4a643bb54856a9",
"path": "houseplan-assets/summary-panel-metrics-CV2vlKGq.js",
"sha256": "1e0d0c6d9c8c1c0fec670ccd308cbb30e66b2cb4c736e78b6f09d4a85fe7827e",
"rawBytes": 2610,
"gzipBytes": 1304,
"gzipBytes": 1298,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js"
"houseplan-assets/houseplan-card-Dc1nDalz.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-runtime-loaded-DLmV4sHt.js",
"sha256": "9211bf01a594a2bdeabb0dc78ccaf61de456098b59c57a77acab982c7cee750f",
"path": "houseplan-assets/summary-panel-runtime-loaded-CVKoQCwS.js",
"sha256": "941dbe16bad854f7b6e3f1edd9a13b50b0f0aa7c845bae5d8f3414bf6c44cc34",
"rawBytes": 73366,
"gzipBytes": 20087,
"gzipBytes": 20084,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js"
"houseplan-assets/houseplan-card-Dc1nDalz.js"
],
"dynamicImports": [
"houseplan-assets/summary-panel-editor-DFvlCWLz.js",
"houseplan-assets/summary-panel-metrics-DgdrnmQ-.js"
"houseplan-assets/summary-panel-editor-3aux2NA6.js",
"houseplan-assets/summary-panel-metrics-CV2vlKGq.js"
]
},
{
"path": "houseplan-assets/zigbee-topology-DICrvL82.js",
"sha256": "06078df4645b5c170aa0e8550376d070e437219ccc01c4ed75bf92807a0c93c8",
"path": "houseplan-assets/zigbee-topology-CShPwd1w.js",
"sha256": "e46b3d6dc3dc0a53ab37cb860f0747fe138d6a2e837f52d63156b3f224800a25",
"rawBytes": 18961,
"gzipBytes": 7422,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js"
"houseplan-assets/houseplan-card-Dc1nDalz.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-runtime-BXE3wv_w.js",
"sha256": "337f5a9b5d5012735339ff458fe1b26cc2035e61fc403a3f8a0656b850c187fc",
"path": "houseplan-assets/zigbee-topology-runtime-Ck0cNC2p.js",
"sha256": "0764f96e95513374b2ba990746e448b48bd3a6c1c188af749c7a90bffb444382",
"rawBytes": 3941,
"gzipBytes": 1761,
"gzipBytes": 1756,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js",
"houseplan-assets/zigbee-topology-DICrvL82.js"
"houseplan-assets/houseplan-card-Dc1nDalz.js",
"houseplan-assets/zigbee-topology-CShPwd1w.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "e002e8e90f626b80d54dda8fbb0de814066af34d5518ab2df177cb2be3137cd4",
"sha256": "443fc598ffba775459fb2672975c5fd5aeb2c9231ed8e2c0701db0204dbd4d0b",
"rawBytes": 1205,
"gzipBytes": 800,
"gzipBytes": 797,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js"
"houseplan-assets/houseplan-card-Dc1nDalz.js"
],
"dynamicImports": []
},
{
"path": "houseplan-panel.js",
"sha256": "42f837fcf8d7d0abc6d6587d4c71ed8457d5d372f213e538e4a2fa9206cc7ea5",
"sha256": "69eacad0a1c5d32f08f5b171c76b770da2e1534dd39310946521710b27af9ee6",
"rawBytes": 6165,
"gzipBytes": 2322,
"gzipBytes": 2319,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js"
"houseplan-assets/houseplan-card-Dc1nDalz.js"
],
"dynamicImports": []
}
@@ -1,14 +1,14 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="9f1d8751f6abef9a79dddc894962a1a1be5eb0a67014fd7ddbace7ce82f9a204";import{q as e,l as o,v as t,e4 as s,A as a,e5 as i,e6 as l,e7 as n,E as r,c}from"./houseplan-card-Bbv3jFGo.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__="09bdfa98edfc8feaa5f2e57eaf3915f817afefdf95ba0c1b2fe1f9ebbea93e52";import{q as e,l as o,v as t,e4 as s,A as a,e5 as i,e6 as l,e7 as n,E as r,c}from"./houseplan-card-Dc1nDalz.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
.hass=${this.hass}
.data=${this._formData}
.schema=${e}
.computeLabel=${e=>h[e.name]||e.name}
.computeLabel=${e=>f[e.name]||e.name}
@value-changed=${this._valueChanged}
></ha-form>`;return c`
${d(f.slice(0,3))}
${d(h.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(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);
${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);
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="9f1d8751f6abef9a79dddc894962a1a1be5eb0a67014fd7ddbace7ce82f9a204";import{l as t,b4 as s,A as e,v as a,c as o,cn as l,co as i,cp as h,cq as c,b1 as n,cr as r,cw as p,cs as d,ct as _,cu as u,cv as g,cx as m,cy as b,dt as $,du as v,dv as f,b0 as y,b2 as w,dw as D}from"./houseplan-card-Bbv3jFGo.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-C3oQRhnF.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="9f1d8751f6abef9a79dddc894962a1a1be5eb0a67014fd7ddbace7ce82f9a204";class L{constructor(t){this.host=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(l){const i=`${l}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,l)&&s(h,i)?o`<hp-help data-help-key=${l}
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="09bdfa98edfc8feaa5f2e57eaf3915f817afefdf95ba0c1b2fe1f9ebbea93e52";import{l as t,b4 as s,A as e,v as a,c as o,cn as l,co as i,cp as h,cq as c,b1 as n,cr as r,cw as p,cs as d,ct as _,cu as u,cv as g,cx as m,cy as b,dt as $,du as f,dv as v,b0 as y,b2 as w,dw as D}from"./houseplan-card-Dc1nDalz.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-gPEGe1qK.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="09bdfa98edfc8feaa5f2e57eaf3915f817afefdf95ba0c1b2fe1f9ebbea93e52";class L{constructor(t){this.host=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(l){const i=`${l}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,l)&&s(h,i)?o`<hp-help data-help-key=${l}
.text=${a(h,l)} .ariaLabel=${a(h,i)}></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 a=l(e),o=e.settings?.custom_fill&&"object"==typeof e.settings.custom_fill?i(e.settings.custom_fill):null,p="none"===a.fill?{...o||h,a:0}:o;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:a.showBorders,showNames:a.showNames,zeroWallStyle:r(e),displayTouched:!0,hideDecor:a.hideDecor,hideOpenings:a.hideOpenings,roomColor:a.color,roomOpacity:a.opacity,fillMode:"none"===a.fill?"custom":a.fill,customFill:p,glowEnabled:a.glow,bgColor:a.bgColor,bgMode:"static"===e.settings?.bg_mode||"daynight"===e.settings?.bg_mode?e.settings.bg_mode:null,northDeg:n({},e.settings),sunRays:"boolean"==typeof e.settings?.sun_rays?e.settings.sun_rays:null,tempMin:a.tempMin,tempMax:a.tempMax,showLqi:a.showLqi??this.host._config?.show_signal??!0,cardFontScale:a.cardFontScale,labelTemp:a.labelTemp,labelHum:a.labelHum,labelLqi:a.labelLqi,labelLight:a.labelLight,cellCm:Number(e.cell_cm)>0?Number(e.cell_cm):5,cellCmInput:c(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,sunRays:null,tempMin:_,tempMax:d,showLqi:this.host._config?.show_signal??!0,cardFontScale:1,labelTemp:!1,labelHum:!1,labelLqi:!1,labelLight:!1,cellCm:e,cellCmInput:c(e,this.host._imperial),cellCmTouched:!1,busy:!1}}async _pickPlanFile(t){const s=t.target,e=s.files?.[0];if(!e||!this.host._spaceDialog)return;s.value="";const a=await k(e);if("reject"===a.kind)return void this.host._showToast(this.host._t("toast.plan_formats"));if("guard"===a.kind)return void(this.host._backdropGuard=a.state);const o=await S(e,a.ext,e.name);this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:o})}_renderBackdropGuard(){return C(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}),a=this.host._spaceDialog;return a&&a.planUrl===t&&Number.isFinite(e)&&e>0?(this.host._spaceDialog={...a,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 a=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")}),o=this.host._spaceDialog,l=o?.saved?.find(s=>s.name===t);if(a&&o&&l&&l.url===e.url&&l.modified===e.modified&&!l.used_by.length&&l.url!==o.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 o`<div class="savedplans muted">${this.host._t("space.loading")}</div>`;const s=t.saved||[];if(!s.length)return o`<div class="savedplans muted">${this.host._t("space.no_saved")}</div>`;return o`<div class="savedplans">
${s.map(s=>{return o`
<div class="savedplan ${s.url===t.planUrl?"cur":""}">
@@ -85,13 +85,13 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="9f1d8751f6abef9a79dddc894962a1a1be5e
max=${c(F,this.host._imperial)}
step="0.1"
.value=${t.cellCmInput??c(t.cellCm,this.host._imperial)}
@input=${s=>{const e=s.target.value,a=x(e),o=null==a?null:v(a,this.host._imperial);this.host._spaceDialog={...t,cellCmInput:e,cellCmTouched:!0,cellCm:null!=o&&o>0?Math.max(.1,Math.min(F,o)):t.cellCm}}} />
@input=${s=>{const e=s.target.value,a=x(e),o=null==a?null:f(a,this.host._imperial);this.host._spaceDialog={...t,cellCmInput:e,cellCmTouched:!0,cellCm:null!=o&&o>0?Math.max(.1,Math.min(F,o)):t.cellCm}}} />
<span class="opl">${this.host._t(this.host._imperial?"space.scale_unit_imperial":"space.scale_unit")}</span>
</div>
<label class="dispsection">${this.host._t("space.display_section")}</label>
<label class="srcrow">
${this._boolInput(t.showBorders,s=>{this.host._spaceDialog=f(t,"showBorders",s)})}
${this._boolInput(t.showBorders,s=>{this.host._spaceDialog=v(t,"showBorders",s)})}
<span>${this.host._t("space.show_borders")}</span>
</label>
<div class="helpfieldlabel">
@@ -107,7 +107,7 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="9f1d8751f6abef9a79dddc894962a1a1be5e
</option>
</select>
<label class="srcrow">
${this._boolInput(t.showNames,s=>{this.host._spaceDialog=f(t,"showNames",s)})}
${this._boolInput(t.showNames,s=>{this.host._spaceDialog=v(t,"showNames",s)})}
<span>${this.host._t("space.show_names")}</span>
</label>
<label class="srcrow">
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="9f1d8751f6abef9a79dddc894962a1a1be5eb0a67014fd7ddbace7ce82f9a204";import{c as a,A as e}from"./houseplan-card-Bbv3jFGo.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-DLmV4sHt.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__="09bdfa98edfc8feaa5f2e57eaf3915f817afefdf95ba0c1b2fe1f9ebbea93e52";import{c as a,A as e}from"./houseplan-card-Dc1nDalz.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-CVKoQCwS.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"
@@ -0,0 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="09bdfa98edfc8feaa5f2e57eaf3915f817afefdf95ba0c1b2fe1f9ebbea93e52";import{ea as e,P as t,a5 as n,M as i,aq as r,N as o,bs as a,br as s,a4 as l,a3 as c,aA as u,eb as d,ec as f,bu as m,ed as g}from"./houseplan-card-Dc1nDalz.js";function v(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 r=String(i.binding||"").indexOf(":");if(r<1)continue;const o=i.binding.slice(0,r),a=i.binding.slice(r+1),s="device"===o?e.registry.devices?.[a]:null,l="entity"===o?e.registry.entities?.[a]:null,c="device"===o?a:l?.device_id,u="device"===o?s?.area_id:l?.area_id||c&&e.registry.devices?.[c]?.area_id,d="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||u||"",f=d&&e.areaToSpace[d]||i.space||e.firstSpaceId;c&&e.registry.devices?.[c]&&e.spaceIds.has(f)&&(!n.devices.has(c)||"entity"===o&&n.liveEntities.has(a))&&t.add(c)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=l(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,r,o);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:c(e.rooms,t.walls,t.openCuts,i,t.cellCm,r,o)}}function*b(l,c,u=_){try{let d=0;for(const f of c){const c=l.spaces.find(e=>String(e?.id)===f.id);if(!c)continue;const m=e(c,f),g=u(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const s=t(e);if(!s)continue;const l=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,r,o,g.roomGeom,g.multiWallNodes)||s;v=y(v,a(l,m.physicalBodies)),yield}const _=m.cellCm/r;d+=s(v)*_*_/1e4}return d}catch{return null}}function h(e,t,n=_){const i=b(e,t,n);let r=i.next();for(;!r.done;)r=i.next();return r.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=d(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 +0,0 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="9f1d8751f6abef9a79dddc894962a1a1be5eb0a67014fd7ddbace7ce82f9a204";import{ea as e,P as t,a5 as n,M as i,aq as r,N as o,bs as a,br as s,a4 as c,a3 as l,aA as d,eb as u,ec as f,bu as m,ed as g}from"./houseplan-card-Bbv3jFGo.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 r=String(i.binding||"").indexOf(":");if(r<1)continue;const o=i.binding.slice(0,r),a=i.binding.slice(r+1),s="device"===o?e.registry.devices?.[a]:null,c="entity"===o?e.registry.entities?.[a]:null,l="device"===o?a:c?.device_id,d="device"===o?s?.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"===o&&n.liveEntities.has(a))&&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,r,o);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:l(e.rooms,t.walls,t.openCuts,i,t.cellCm,r,o)}}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 s=t(e);if(!s)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,r,o,g.roomGeom,g.multiWallNodes)||s;v=y(v,a(c,m.physicalBodies)),yield}const _=m.cellCm/r;u+=s(v)*_*_/1e4}return u}catch{return null}}function p(e,t,n=_){const i=h(e,t,n);let r=i.next();for(;!r.done;)r=i.next();return r.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};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="9f1d8751f6abef9a79dddc894962a1a1be5eb0a67014fd7ddbace7ce82f9a204";import{n as t,b as n}from"./zigbee-topology-DICrvL82.js";import{F as e}from"./houseplan-card-Bbv3jFGo.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function f(t){if(!0!==t?.user?.is_admin)throw a("permission")}function p(n){const e=i(n);return e?c(e,"zha",async()=>{if(f(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function 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 m(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 g(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(f(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,p=null,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,g=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 f=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&&p?.(n):c&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await m(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 m(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{p as readZhaTopology,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="09bdfa98edfc8feaa5f2e57eaf3915f817afefdf95ba0c1b2fe1f9ebbea93e52";import{n as t,b as n}from"./zigbee-topology-CShPwd1w.js";import{F as e}from"./houseplan-card-Dc1nDalz.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function f(t){if(!0!==t?.user?.is_admin)throw a("permission")}function p(n){const e=i(n);return e?c(e,"zha",async()=>{if(f(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function 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 m(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 g(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(f(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,p=null,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,g=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 f=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&&p?.(n):c&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await m(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 m(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{p as readZhaTopology,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="9f1d8751f6abef9a79dddc894962a1a1be5eb0a67014fd7ddbace7ce82f9a204";try{await import("./houseplan-assets/houseplan-card-Bbv3jFGo.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__="09bdfa98edfc8feaa5f2e57eaf3915f817afefdf95ba0c1b2fe1f9ebbea93e52";try{await import("./houseplan-assets/houseplan-card-Dc1nDalz.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
+10 -4
View File
@@ -670,8 +670,7 @@ export function prepareGoldenFixture(scenario) {
if (scenario.fillMode || scenario.bgMode || typeof scenario.glowEnabled === 'boolean'
|| typeof scenario.sunRays === 'boolean' || typeof scenario.showBorders === 'boolean'
|| typeof scenario.showNames === 'boolean'
|| typeof scenario.northDeg === 'number'
|| scenario.sunRayOrigin === 'inner' || scenario.sunRayOrigin === 'outer') {
|| typeof scenario.northDeg === 'number') {
const space = requireSpace();
space.settings = {
...(space.settings || {}),
@@ -679,14 +678,21 @@ export function prepareGoldenFixture(scenario) {
...(scenario.bgMode ? { bg_mode: scenario.bgMode } : {}),
...(typeof scenario.glowEnabled === 'boolean' ? { glow_enabled: scenario.glowEnabled } : {}),
...(typeof scenario.sunRays === 'boolean' ? { sun_rays: scenario.sunRays } : {}),
...(scenario.sunRayOrigin === 'inner' || scenario.sunRayOrigin === 'outer'
? { sun_ray_origin: scenario.sunRayOrigin } : {}),
...(typeof scenario.showBorders === 'boolean' ? { show_borders: scenario.showBorders } : {}),
...(typeof scenario.showNames === 'boolean' ? { show_names: scenario.showNames } : {}),
...(typeof scenario.northDeg === 'number' ? { north_deg: scenario.northDeg } : {}),
...(scenario.customFill ? { custom_fill: scenario.customFill } : {}),
};
}
// #577 is deliberately global-only. Keeping this outside the per-space
// scenario overrides makes the golden exercise the same read path as a real
// General settings save instead of silently falling back to legacy inner.
if (scenario.sunRayOrigin === 'inner' || scenario.sunRayOrigin === 'outer') {
fixture.config.settings = {
...(fixture.config.settings || {}),
sun_ray_origin: scenario.sunRayOrigin,
};
}
if (scenario.extraOpenings?.length) {
const space = requireSpace();
const known = new Set((space.openings || []).map((opening) => opening.id));
+132 -132
View File
@@ -1,295 +1,295 @@
{
"schema": 1,
"fingerprint": "9f1d8751f6abef9a79dddc894962a1a1be5eb0a67014fd7ddbace7ce82f9a204",
"fingerprint": "09bdfa98edfc8feaa5f2e57eaf3915f817afefdf95ba0c1b2fe1f9ebbea93e52",
"entry": "houseplan-card.js",
"panelEntry": "houseplan-panel.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js",
"houseplan-assets/houseplan-card-Dc1nDalz.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 290610,
"initialViewGzipBytes": 290602,
"initialPanelFiles": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js",
"houseplan-assets/houseplan-card-Dc1nDalz.js",
"houseplan-panel.js"
],
"initialPanelGzipBytes": 292132,
"initialPanelGzipBytes": 292124,
"initialPanelOnlyFiles": [
"houseplan-panel.js"
],
"initialPanelOnlyGzipBytes": 2322,
"initialPanelOnlyGzipBytes": 2319,
"lazyFiles": [
"houseplan-assets/backdrop-pick-C3oQRhnF.js",
"houseplan-assets/de-oQhgeTFS.js",
"houseplan-assets/editor-C0z9uJB0.js",
"houseplan-assets/fr-CCuZR0qg.js",
"houseplan-assets/furniture-plan-art.generated-CgJzz-Xj.js",
"houseplan-assets/houseplan-editor-runtime-Bn529gF4.js",
"houseplan-assets/houseplan-onboarding-runtime-CLLcgsSI.js",
"houseplan-assets/hp-zigbee-topology-overlay-DFWvSeoe.js",
"houseplan-assets/iso-scene-render-CMLQQx0H.js",
"houseplan-assets/live-interaction-runtime-CI0RAG5r.js",
"houseplan-assets/pdf-export-DcOO4Xzs.js",
"houseplan-assets/summary-panel-runtime-loaded-DLmV4sHt.js",
"houseplan-assets/zigbee-topology-DICrvL82.js",
"houseplan-assets/zigbee-topology-runtime-BXE3wv_w.js"
"houseplan-assets/backdrop-pick-gPEGe1qK.js",
"houseplan-assets/de-Cv59WbbX.js",
"houseplan-assets/editor-B_aKOjOd.js",
"houseplan-assets/fr-f5HU1FOM.js",
"houseplan-assets/furniture-plan-art.generated-Bp606vE4.js",
"houseplan-assets/houseplan-editor-runtime-CzNlYRjc.js",
"houseplan-assets/houseplan-onboarding-runtime-nh2C2FaM.js",
"houseplan-assets/hp-zigbee-topology-overlay-DIpDzN0W.js",
"houseplan-assets/iso-scene-render-CPgYpwNC.js",
"houseplan-assets/live-interaction-runtime-BkFxBVMA.js",
"houseplan-assets/pdf-export-Co2Yz8xx.js",
"houseplan-assets/summary-panel-runtime-loaded-CVKoQCwS.js",
"houseplan-assets/zigbee-topology-CShPwd1w.js",
"houseplan-assets/zigbee-topology-runtime-Ck0cNC2p.js"
],
"lazyGzipBytes": 418704,
"lazyGzipBytes": 418658,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-C3oQRhnF.js",
"houseplan-assets/editor-C0z9uJB0.js",
"houseplan-assets/furniture-plan-art.generated-CgJzz-Xj.js",
"houseplan-assets/houseplan-editor-runtime-Bn529gF4.js",
"houseplan-assets/zigbee-topology-DICrvL82.js"
"houseplan-assets/backdrop-pick-gPEGe1qK.js",
"houseplan-assets/editor-B_aKOjOd.js",
"houseplan-assets/furniture-plan-art.generated-Bp606vE4.js",
"houseplan-assets/houseplan-editor-runtime-CzNlYRjc.js",
"houseplan-assets/zigbee-topology-CShPwd1w.js"
],
"lazyEditorGzipBytes": 204923,
"lazyEditorGzipBytes": 204916,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-C3oQRhnF.js",
"houseplan-assets/houseplan-onboarding-runtime-CLLcgsSI.js"
"houseplan-assets/backdrop-pick-gPEGe1qK.js",
"houseplan-assets/houseplan-onboarding-runtime-nh2C2FaM.js"
],
"lazyOnboardingGzipBytes": 13911,
"lazyOnboardingGzipBytes": 13906,
"lazyLocaleFiles": [
"houseplan-assets/de-oQhgeTFS.js",
"houseplan-assets/fr-CCuZR0qg.js"
"houseplan-assets/de-Cv59WbbX.js",
"houseplan-assets/fr-f5HU1FOM.js"
],
"lazyLocaleGzipBytes": 54908,
"lazyLocaleGzipBytes": 54895,
"lazyIsometricFiles": [
"houseplan-assets/iso-scene-render-CMLQQx0H.js"
"houseplan-assets/iso-scene-render-CPgYpwNC.js"
],
"lazyIsometricGzipBytes": 13230,
"lazyIsometricGzipBytes": 13228,
"lazyFurnitureArtFiles": [
"houseplan-assets/furniture-plan-art.generated-CgJzz-Xj.js"
"houseplan-assets/furniture-plan-art.generated-Bp606vE4.js"
],
"lazyFurnitureArtGzipBytes": 10256,
"lazyFurnitureArtGzipBytes": 10259,
"lazyPdfFiles": [
"houseplan-assets/furniture-plan-art.generated-CgJzz-Xj.js",
"houseplan-assets/pdf-export-DcOO4Xzs.js"
"houseplan-assets/furniture-plan-art.generated-Bp606vE4.js",
"houseplan-assets/pdf-export-Co2Yz8xx.js"
],
"lazyPdfGzipBytes": 120130,
"lazyPdfGzipBytes": 120131,
"files": [
{
"path": "houseplan-assets/backdrop-pick-C3oQRhnF.js",
"sha256": "19ff5b3d68fab85dca99a043f7a83c48bd6631e4817c9c0038778ad4335e3d90",
"path": "houseplan-assets/backdrop-pick-gPEGe1qK.js",
"sha256": "a4d457e11f5d70d298387f688dd86b504612eaa90a226399f75deeedf825bc16",
"rawBytes": 19956,
"gzipBytes": 6878,
"gzipBytes": 6877,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js"
"houseplan-assets/houseplan-card-Dc1nDalz.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/de-oQhgeTFS.js",
"sha256": "e72d2c047d8f8bca7cd5bd0b574d60944d1f24de2a274a18df4831adaf7a1198",
"path": "houseplan-assets/de-Cv59WbbX.js",
"sha256": "b4c92851382aa0cf0ed1aef196716e4b251dbc48bdc82abd06ca6e25517c956b",
"rawBytes": 91590,
"gzipBytes": 27738,
"gzipBytes": 27731,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-C0z9uJB0.js",
"sha256": "c9186166e32f33e62e6e86a473cb75721850efa45fda69f332c96b8d8c55a28e",
"path": "houseplan-assets/editor-B_aKOjOd.js",
"sha256": "a6df62742036a11689c9278e29cc831b10829495d941b3436ac05a844ebc659b",
"rawBytes": 3831,
"gzipBytes": 1581,
"gzipBytes": 1577,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js"
"houseplan-assets/houseplan-card-Dc1nDalz.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-CCuZR0qg.js",
"sha256": "0d1c352f58bd5fb5c369825a318a9087c60fac6af9019af11890ec264d17cbd4",
"path": "houseplan-assets/fr-f5HU1FOM.js",
"sha256": "d76dce08b7a46c90505228015672b760604f5f53ff61fffafe1893a0597e46a3",
"rawBytes": 93884,
"gzipBytes": 27170,
"gzipBytes": 27164,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/furniture-plan-art.generated-CgJzz-Xj.js",
"sha256": "6163ae09e4a50ccfac273ddf9cc115e5c108c83223f69c85ce28ae75e0443a76",
"path": "houseplan-assets/furniture-plan-art.generated-Bp606vE4.js",
"sha256": "29dd1098f6467fdf59c913cf98b60ef615b18607e31048614b7caa45d631b195",
"rawBytes": 33655,
"gzipBytes": 10256,
"gzipBytes": 10259,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-Bbv3jFGo.js",
"sha256": "fa22fa7a61b405f976d855bc5cc4366a08caab3db67873f770026795d5461eaf",
"path": "houseplan-assets/houseplan-card-Dc1nDalz.js",
"sha256": "efd4fe1185c5df6d6a473ae877bcfde512f47a1c364c2f7ce8bb907bb30fbbff",
"rawBytes": 1032408,
"gzipBytes": 289810,
"gzipBytes": 289805,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-oQhgeTFS.js",
"houseplan-assets/editor-C0z9uJB0.js",
"houseplan-assets/fr-CCuZR0qg.js",
"houseplan-assets/furniture-plan-art.generated-CgJzz-Xj.js",
"houseplan-assets/houseplan-editor-runtime-Bn529gF4.js",
"houseplan-assets/houseplan-onboarding-runtime-CLLcgsSI.js",
"houseplan-assets/hp-zigbee-topology-overlay-DFWvSeoe.js",
"houseplan-assets/iso-scene-render-CMLQQx0H.js",
"houseplan-assets/live-interaction-runtime-CI0RAG5r.js",
"houseplan-assets/pdf-export-DcOO4Xzs.js",
"houseplan-assets/summary-panel-runtime-loaded-DLmV4sHt.js"
"houseplan-assets/de-Cv59WbbX.js",
"houseplan-assets/editor-B_aKOjOd.js",
"houseplan-assets/fr-f5HU1FOM.js",
"houseplan-assets/furniture-plan-art.generated-Bp606vE4.js",
"houseplan-assets/houseplan-editor-runtime-CzNlYRjc.js",
"houseplan-assets/houseplan-onboarding-runtime-nh2C2FaM.js",
"houseplan-assets/hp-zigbee-topology-overlay-DIpDzN0W.js",
"houseplan-assets/iso-scene-render-CPgYpwNC.js",
"houseplan-assets/live-interaction-runtime-BkFxBVMA.js",
"houseplan-assets/pdf-export-Co2Yz8xx.js",
"houseplan-assets/summary-panel-runtime-loaded-CVKoQCwS.js"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-Bn529gF4.js",
"sha256": "dc6d6f87d1ac7c6055bd189a810bbe480f08b90b3886232834b31000da338ed2",
"path": "houseplan-assets/houseplan-editor-runtime-CzNlYRjc.js",
"sha256": "38a3ba534ded790e8c2d85ef1e62db6622e9b2938372fe51978ef509cf1a6782",
"rawBytes": 669985,
"gzipBytes": 178786,
"gzipBytes": 178781,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-C3oQRhnF.js",
"houseplan-assets/furniture-plan-art.generated-CgJzz-Xj.js",
"houseplan-assets/houseplan-card-Bbv3jFGo.js",
"houseplan-assets/zigbee-topology-DICrvL82.js"
"houseplan-assets/backdrop-pick-gPEGe1qK.js",
"houseplan-assets/furniture-plan-art.generated-Bp606vE4.js",
"houseplan-assets/houseplan-card-Dc1nDalz.js",
"houseplan-assets/zigbee-topology-CShPwd1w.js"
],
"dynamicImports": [
"houseplan-assets/zigbee-topology-runtime-BXE3wv_w.js"
"houseplan-assets/zigbee-topology-runtime-Ck0cNC2p.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime-CLLcgsSI.js",
"sha256": "99a509c53b2907d44a8a7ae93b4b0c297a0e42331356cf7f039b652ea2120a1e",
"path": "houseplan-assets/houseplan-onboarding-runtime-nh2C2FaM.js",
"sha256": "719ede0971fd464b77fb36ff0f6de9bcaa046eaa83d1b8e7153b6331aeedd370",
"rawBytes": 28287,
"gzipBytes": 7033,
"gzipBytes": 7029,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-C3oQRhnF.js",
"houseplan-assets/houseplan-card-Bbv3jFGo.js"
"houseplan-assets/backdrop-pick-gPEGe1qK.js",
"houseplan-assets/houseplan-card-Dc1nDalz.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-DFWvSeoe.js",
"sha256": "9686925be8689e4ed5bac159f284583470889528aa042c1933f0f8c859ff98b3",
"path": "houseplan-assets/hp-zigbee-topology-overlay-DIpDzN0W.js",
"sha256": "8f03467b478ee35d47244ab06fd53ce73e447bfd0ba456cd7795d097842f4c42",
"rawBytes": 10756,
"gzipBytes": 3683,
"gzipBytes": 3678,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js",
"houseplan-assets/zigbee-topology-DICrvL82.js",
"houseplan-assets/zigbee-topology-runtime-BXE3wv_w.js"
"houseplan-assets/houseplan-card-Dc1nDalz.js",
"houseplan-assets/zigbee-topology-CShPwd1w.js",
"houseplan-assets/zigbee-topology-runtime-Ck0cNC2p.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/iso-scene-render-CMLQQx0H.js",
"sha256": "8766f6a323410ecc7bca43ab0511817343810c0311d4d149cf362d090c6d05e3",
"path": "houseplan-assets/iso-scene-render-CPgYpwNC.js",
"sha256": "810b9e8d456ef1e1c2ffafd9a368f76e116b000cb14a9e6e60763eed229a3527",
"rawBytes": 39206,
"gzipBytes": 13230,
"gzipBytes": 13228,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js"
"houseplan-assets/houseplan-card-Dc1nDalz.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/live-interaction-runtime-CI0RAG5r.js",
"sha256": "bad97fc58028ddf6b8f158e873f234400d7b05b8a8e98d35e9593e81234b67dc",
"path": "houseplan-assets/live-interaction-runtime-BkFxBVMA.js",
"sha256": "69ced43aa2bad1e33b826eb191f289ed47cded26c831d6c76562932c3eca1a6b",
"rawBytes": 8216,
"gzipBytes": 3205,
"gzipBytes": 3200,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js"
"houseplan-assets/houseplan-card-Dc1nDalz.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/pdf-export-DcOO4Xzs.js",
"sha256": "ea3700c652c995c00cfd0ee8593c59ea7a93b3a9a6522367dd1f3aa9a474b096",
"path": "houseplan-assets/pdf-export-Co2Yz8xx.js",
"sha256": "4f5c8436f01c130098c3f6a3c1fe0ba93038112663017a4a044089b9a36886fa",
"rawBytes": 236244,
"gzipBytes": 109874,
"gzipBytes": 109872,
"isEntry": false,
"imports": [
"houseplan-assets/furniture-plan-art.generated-CgJzz-Xj.js",
"houseplan-assets/houseplan-card-Bbv3jFGo.js"
"houseplan-assets/furniture-plan-art.generated-Bp606vE4.js",
"houseplan-assets/houseplan-card-Dc1nDalz.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-editor-DFvlCWLz.js",
"sha256": "c3507dfba02deddc92bda2f21b7fefd1ca66e7956c174970fb62512155e73e40",
"path": "houseplan-assets/summary-panel-editor-3aux2NA6.js",
"sha256": "12bd2cb117766bbbf730d226145eb8de61caf290113c556bd3525bfa67a0831d",
"rawBytes": 14824,
"gzipBytes": 3396,
"gzipBytes": 3395,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js",
"houseplan-assets/summary-panel-runtime-loaded-DLmV4sHt.js"
"houseplan-assets/houseplan-card-Dc1nDalz.js",
"houseplan-assets/summary-panel-runtime-loaded-CVKoQCwS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-metrics-DgdrnmQ-.js",
"sha256": "c0fbb2a1de3fc7a4ef4a780590834baf3f1f6501785f2edead4a643bb54856a9",
"path": "houseplan-assets/summary-panel-metrics-CV2vlKGq.js",
"sha256": "1e0d0c6d9c8c1c0fec670ccd308cbb30e66b2cb4c736e78b6f09d4a85fe7827e",
"rawBytes": 2610,
"gzipBytes": 1304,
"gzipBytes": 1298,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js"
"houseplan-assets/houseplan-card-Dc1nDalz.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-runtime-loaded-DLmV4sHt.js",
"sha256": "9211bf01a594a2bdeabb0dc78ccaf61de456098b59c57a77acab982c7cee750f",
"path": "houseplan-assets/summary-panel-runtime-loaded-CVKoQCwS.js",
"sha256": "941dbe16bad854f7b6e3f1edd9a13b50b0f0aa7c845bae5d8f3414bf6c44cc34",
"rawBytes": 73366,
"gzipBytes": 20087,
"gzipBytes": 20084,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js"
"houseplan-assets/houseplan-card-Dc1nDalz.js"
],
"dynamicImports": [
"houseplan-assets/summary-panel-editor-DFvlCWLz.js",
"houseplan-assets/summary-panel-metrics-DgdrnmQ-.js"
"houseplan-assets/summary-panel-editor-3aux2NA6.js",
"houseplan-assets/summary-panel-metrics-CV2vlKGq.js"
]
},
{
"path": "houseplan-assets/zigbee-topology-DICrvL82.js",
"sha256": "06078df4645b5c170aa0e8550376d070e437219ccc01c4ed75bf92807a0c93c8",
"path": "houseplan-assets/zigbee-topology-CShPwd1w.js",
"sha256": "e46b3d6dc3dc0a53ab37cb860f0747fe138d6a2e837f52d63156b3f224800a25",
"rawBytes": 18961,
"gzipBytes": 7422,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js"
"houseplan-assets/houseplan-card-Dc1nDalz.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-runtime-BXE3wv_w.js",
"sha256": "337f5a9b5d5012735339ff458fe1b26cc2035e61fc403a3f8a0656b850c187fc",
"path": "houseplan-assets/zigbee-topology-runtime-Ck0cNC2p.js",
"sha256": "0764f96e95513374b2ba990746e448b48bd3a6c1c188af749c7a90bffb444382",
"rawBytes": 3941,
"gzipBytes": 1761,
"gzipBytes": 1756,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js",
"houseplan-assets/zigbee-topology-DICrvL82.js"
"houseplan-assets/houseplan-card-Dc1nDalz.js",
"houseplan-assets/zigbee-topology-CShPwd1w.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "e002e8e90f626b80d54dda8fbb0de814066af34d5518ab2df177cb2be3137cd4",
"sha256": "443fc598ffba775459fb2672975c5fd5aeb2c9231ed8e2c0701db0204dbd4d0b",
"rawBytes": 1205,
"gzipBytes": 800,
"gzipBytes": 797,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js"
"houseplan-assets/houseplan-card-Dc1nDalz.js"
],
"dynamicImports": []
},
{
"path": "houseplan-panel.js",
"sha256": "42f837fcf8d7d0abc6d6587d4c71ed8457d5d372f213e538e4a2fa9206cc7ea5",
"sha256": "69eacad0a1c5d32f08f5b171c76b770da2e1534dd39310946521710b27af9ee6",
"rawBytes": 6165,
"gzipBytes": 2322,
"gzipBytes": 2319,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-Bbv3jFGo.js"
"houseplan-assets/houseplan-card-Dc1nDalz.js"
],
"dynamicImports": []
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,14 +1,14 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="9f1d8751f6abef9a79dddc894962a1a1be5eb0a67014fd7ddbace7ce82f9a204";import{q as e,l as o,v as t,e4 as s,A as a,e5 as i,e6 as l,e7 as n,E as r,c}from"./houseplan-card-Bbv3jFGo.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__="09bdfa98edfc8feaa5f2e57eaf3915f817afefdf95ba0c1b2fe1f9ebbea93e52";import{q as e,l as o,v as t,e4 as s,A as a,e5 as i,e6 as l,e7 as n,E as r,c}from"./houseplan-card-Dc1nDalz.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
.hass=${this.hass}
.data=${this._formData}
.schema=${e}
.computeLabel=${e=>h[e.name]||e.name}
.computeLabel=${e=>f[e.name]||e.name}
@value-changed=${this._valueChanged}
></ha-form>`;return c`
${d(f.slice(0,3))}
${d(h.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(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);
${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);
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__="9f1d8751f6abef9a79dddc894962a1a1be5eb0a67014fd7ddbace7ce82f9a204";import{l as t,b4 as s,A as e,v as a,c as o,cn as l,co as i,cp as h,cq as c,b1 as n,cr as r,cw as p,cs as d,ct as _,cu as u,cv as g,cx as m,cy as b,dt as $,du as v,dv as f,b0 as y,b2 as w,dw as D}from"./houseplan-card-Bbv3jFGo.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-C3oQRhnF.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="9f1d8751f6abef9a79dddc894962a1a1be5eb0a67014fd7ddbace7ce82f9a204";class L{constructor(t){this.host=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(l){const i=`${l}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,l)&&s(h,i)?o`<hp-help data-help-key=${l}
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="09bdfa98edfc8feaa5f2e57eaf3915f817afefdf95ba0c1b2fe1f9ebbea93e52";import{l as t,b4 as s,A as e,v as a,c as o,cn as l,co as i,cp as h,cq as c,b1 as n,cr as r,cw as p,cs as d,ct as _,cu as u,cv as g,cx as m,cy as b,dt as $,du as f,dv as v,b0 as y,b2 as w,dw as D}from"./houseplan-card-Dc1nDalz.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-gPEGe1qK.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="09bdfa98edfc8feaa5f2e57eaf3915f817afefdf95ba0c1b2fe1f9ebbea93e52";class L{constructor(t){this.host=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(l){const i=`${l}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,l)&&s(h,i)?o`<hp-help data-help-key=${l}
.text=${a(h,l)} .ariaLabel=${a(h,i)}></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 a=l(e),o=e.settings?.custom_fill&&"object"==typeof e.settings.custom_fill?i(e.settings.custom_fill):null,p="none"===a.fill?{...o||h,a:0}:o;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:a.showBorders,showNames:a.showNames,zeroWallStyle:r(e),displayTouched:!0,hideDecor:a.hideDecor,hideOpenings:a.hideOpenings,roomColor:a.color,roomOpacity:a.opacity,fillMode:"none"===a.fill?"custom":a.fill,customFill:p,glowEnabled:a.glow,bgColor:a.bgColor,bgMode:"static"===e.settings?.bg_mode||"daynight"===e.settings?.bg_mode?e.settings.bg_mode:null,northDeg:n({},e.settings),sunRays:"boolean"==typeof e.settings?.sun_rays?e.settings.sun_rays:null,tempMin:a.tempMin,tempMax:a.tempMax,showLqi:a.showLqi??this.host._config?.show_signal??!0,cardFontScale:a.cardFontScale,labelTemp:a.labelTemp,labelHum:a.labelHum,labelLqi:a.labelLqi,labelLight:a.labelLight,cellCm:Number(e.cell_cm)>0?Number(e.cell_cm):5,cellCmInput:c(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,sunRays:null,tempMin:_,tempMax:d,showLqi:this.host._config?.show_signal??!0,cardFontScale:1,labelTemp:!1,labelHum:!1,labelLqi:!1,labelLight:!1,cellCm:e,cellCmInput:c(e,this.host._imperial),cellCmTouched:!1,busy:!1}}async _pickPlanFile(t){const s=t.target,e=s.files?.[0];if(!e||!this.host._spaceDialog)return;s.value="";const a=await k(e);if("reject"===a.kind)return void this.host._showToast(this.host._t("toast.plan_formats"));if("guard"===a.kind)return void(this.host._backdropGuard=a.state);const o=await S(e,a.ext,e.name);this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:o})}_renderBackdropGuard(){return C(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}),a=this.host._spaceDialog;return a&&a.planUrl===t&&Number.isFinite(e)&&e>0?(this.host._spaceDialog={...a,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 a=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")}),o=this.host._spaceDialog,l=o?.saved?.find(s=>s.name===t);if(a&&o&&l&&l.url===e.url&&l.modified===e.modified&&!l.used_by.length&&l.url!==o.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 o`<div class="savedplans muted">${this.host._t("space.loading")}</div>`;const s=t.saved||[];if(!s.length)return o`<div class="savedplans muted">${this.host._t("space.no_saved")}</div>`;return o`<div class="savedplans">
${s.map(s=>{return o`
<div class="savedplan ${s.url===t.planUrl?"cur":""}">
@@ -85,13 +85,13 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="9f1d8751f6abef9a79dddc894962a1a1be5e
max=${c(F,this.host._imperial)}
step="0.1"
.value=${t.cellCmInput??c(t.cellCm,this.host._imperial)}
@input=${s=>{const e=s.target.value,a=x(e),o=null==a?null:v(a,this.host._imperial);this.host._spaceDialog={...t,cellCmInput:e,cellCmTouched:!0,cellCm:null!=o&&o>0?Math.max(.1,Math.min(F,o)):t.cellCm}}} />
@input=${s=>{const e=s.target.value,a=x(e),o=null==a?null:f(a,this.host._imperial);this.host._spaceDialog={...t,cellCmInput:e,cellCmTouched:!0,cellCm:null!=o&&o>0?Math.max(.1,Math.min(F,o)):t.cellCm}}} />
<span class="opl">${this.host._t(this.host._imperial?"space.scale_unit_imperial":"space.scale_unit")}</span>
</div>
<label class="dispsection">${this.host._t("space.display_section")}</label>
<label class="srcrow">
${this._boolInput(t.showBorders,s=>{this.host._spaceDialog=f(t,"showBorders",s)})}
${this._boolInput(t.showBorders,s=>{this.host._spaceDialog=v(t,"showBorders",s)})}
<span>${this.host._t("space.show_borders")}</span>
</label>
<div class="helpfieldlabel">
@@ -107,7 +107,7 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="9f1d8751f6abef9a79dddc894962a1a1be5e
</option>
</select>
<label class="srcrow">
${this._boolInput(t.showNames,s=>{this.host._spaceDialog=f(t,"showNames",s)})}
${this._boolInput(t.showNames,s=>{this.host._spaceDialog=v(t,"showNames",s)})}
<span>${this.host._t("space.show_names")}</span>
</label>
<label class="srcrow">
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__="9f1d8751f6abef9a79dddc894962a1a1be5eb0a67014fd7ddbace7ce82f9a204";import{c as a,A as e}from"./houseplan-card-Bbv3jFGo.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-DLmV4sHt.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__="09bdfa98edfc8feaa5f2e57eaf3915f817afefdf95ba0c1b2fe1f9ebbea93e52";import{c as a,A as e}from"./houseplan-card-Dc1nDalz.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-CVKoQCwS.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"
@@ -0,0 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="09bdfa98edfc8feaa5f2e57eaf3915f817afefdf95ba0c1b2fe1f9ebbea93e52";import{ea as e,P as t,a5 as n,M as i,aq as r,N as o,bs as a,br as s,a4 as l,a3 as c,aA as u,eb as d,ec as f,bu as m,ed as g}from"./houseplan-card-Dc1nDalz.js";function v(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 r=String(i.binding||"").indexOf(":");if(r<1)continue;const o=i.binding.slice(0,r),a=i.binding.slice(r+1),s="device"===o?e.registry.devices?.[a]:null,l="entity"===o?e.registry.entities?.[a]:null,c="device"===o?a:l?.device_id,u="device"===o?s?.area_id:l?.area_id||c&&e.registry.devices?.[c]?.area_id,d="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||u||"",f=d&&e.areaToSpace[d]||i.space||e.firstSpaceId;c&&e.registry.devices?.[c]&&e.spaceIds.has(f)&&(!n.devices.has(c)||"entity"===o&&n.liveEntities.has(a))&&t.add(c)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=l(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,r,o);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:c(e.rooms,t.walls,t.openCuts,i,t.cellCm,r,o)}}function*b(l,c,u=_){try{let d=0;for(const f of c){const c=l.spaces.find(e=>String(e?.id)===f.id);if(!c)continue;const m=e(c,f),g=u(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const s=t(e);if(!s)continue;const l=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,r,o,g.roomGeom,g.multiWallNodes)||s;v=y(v,a(l,m.physicalBodies)),yield}const _=m.cellCm/r;d+=s(v)*_*_/1e4}return d}catch{return null}}function h(e,t,n=_){const i=b(e,t,n);let r=i.next();for(;!r.done;)r=i.next();return r.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=d(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 +0,0 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="9f1d8751f6abef9a79dddc894962a1a1be5eb0a67014fd7ddbace7ce82f9a204";import{ea as e,P as t,a5 as n,M as i,aq as r,N as o,bs as a,br as s,a4 as c,a3 as l,aA as d,eb as u,ec as f,bu as m,ed as g}from"./houseplan-card-Bbv3jFGo.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 r=String(i.binding||"").indexOf(":");if(r<1)continue;const o=i.binding.slice(0,r),a=i.binding.slice(r+1),s="device"===o?e.registry.devices?.[a]:null,c="entity"===o?e.registry.entities?.[a]:null,l="device"===o?a:c?.device_id,d="device"===o?s?.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"===o&&n.liveEntities.has(a))&&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,r,o);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:l(e.rooms,t.walls,t.openCuts,i,t.cellCm,r,o)}}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 s=t(e);if(!s)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,r,o,g.roomGeom,g.multiWallNodes)||s;v=y(v,a(c,m.physicalBodies)),yield}const _=m.cellCm/r;u+=s(v)*_*_/1e4}return u}catch{return null}}function p(e,t,n=_){const i=h(e,t,n);let r=i.next();for(;!r.done;)r=i.next();return r.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};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="9f1d8751f6abef9a79dddc894962a1a1be5eb0a67014fd7ddbace7ce82f9a204";import{n as t,b as n}from"./zigbee-topology-DICrvL82.js";import{F as e}from"./houseplan-card-Bbv3jFGo.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function f(t){if(!0!==t?.user?.is_admin)throw a("permission")}function p(n){const e=i(n);return e?c(e,"zha",async()=>{if(f(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function 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 m(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 g(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(f(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,p=null,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,g=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 f=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&&p?.(n):c&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await m(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 m(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{p as readZhaTopology,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="09bdfa98edfc8feaa5f2e57eaf3915f817afefdf95ba0c1b2fe1f9ebbea93e52";import{n as t,b as n}from"./zigbee-topology-CShPwd1w.js";import{F as e}from"./houseplan-card-Dc1nDalz.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function f(t){if(!0!==t?.user?.is_admin)throw a("permission")}function p(n){const e=i(n);return e?c(e,"zha",async()=>{if(f(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function 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 m(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 g(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(f(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,p=null,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,g=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 f=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&&p?.(n):c&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await m(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 m(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{p as readZhaTopology,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
+1 -1
View File
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="9f1d8751f6abef9a79dddc894962a1a1be5eb0a67014fd7ddbace7ce82f9a204";try{await import("./houseplan-assets/houseplan-card-Bbv3jFGo.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__="09bdfa98edfc8feaa5f2e57eaf3915f817afefdf95ba0c1b2fe1f9ebbea93e52";try{await import("./houseplan-assets/houseplan-card-Dc1nDalz.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
+12 -12
View File
@@ -3,7 +3,7 @@
"fixture": "synthetic-only",
"chromium": "151.0.7922.34",
"oxipng": "oxipng 10.2.0",
"sourceFingerprint": "891b0e4cc608d3e77fea3f9aeaa54ce680df234336f6af9264ff19508c14ae1b",
"sourceFingerprint": "1d093022e8e71a794c3996bb5ad4e23d473cdf79b6d9fa3e188661603ef1170a",
"captureScriptSha256": "9e4b0ae533407fe003a129078aec020f2c83d67cdb6fc6da696ce3d829beaeb5",
"command": "npm run build && node demo/docs/capture.mjs",
"scenarios": {
@@ -15,7 +15,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "891b0e4cc608d3e77fea3f9aeaa54ce680df234336f6af9264ff19508c14ae1b",
"sourceSha256": "1d093022e8e71a794c3996bb5ad4e23d473cdf79b6d9fa3e188661603ef1170a",
"imageSha256": "76c35a87810e3dc6890bda7b43da133f57d8860031204a62cda7115c15950090"
},
"view-touch": {
@@ -26,7 +26,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "891b0e4cc608d3e77fea3f9aeaa54ce680df234336f6af9264ff19508c14ae1b",
"sourceSha256": "1d093022e8e71a794c3996bb5ad4e23d473cdf79b6d9fa3e188661603ef1170a",
"imageSha256": "795585acb09488236ebb8028a7fcbd918404c5fe01560bb9b4559de13d441625"
},
"space-create": {
@@ -37,7 +37,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "891b0e4cc608d3e77fea3f9aeaa54ce680df234336f6af9264ff19508c14ae1b",
"sourceSha256": "1d093022e8e71a794c3996bb5ad4e23d473cdf79b6d9fa3e188661603ef1170a",
"imageSha256": "9f0970de09772674c3156b9fc5b2d49de0ceb22be11ecf8b136047d37d100a84"
},
"room-contour-close": {
@@ -48,7 +48,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "891b0e4cc608d3e77fea3f9aeaa54ce680df234336f6af9264ff19508c14ae1b",
"sourceSha256": "1d093022e8e71a794c3996bb5ad4e23d473cdf79b6d9fa3e188661603ef1170a",
"imageSha256": "0c354a79f9c3660788b6c5e889a27b6bd78b1f209dc0eef6bb43e2c1344028c4"
},
"plan-context-tray": {
@@ -59,7 +59,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "891b0e4cc608d3e77fea3f9aeaa54ce680df234336f6af9264ff19508c14ae1b",
"sourceSha256": "1d093022e8e71a794c3996bb5ad4e23d473cdf79b6d9fa3e188661603ef1170a",
"imageSha256": "64169c543291bc4df806dcf8ff484b42c8ea55eb343323d945344e0e28f2ce97"
},
"device-editor": {
@@ -70,7 +70,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "891b0e4cc608d3e77fea3f9aeaa54ce680df234336f6af9264ff19508c14ae1b",
"sourceSha256": "1d093022e8e71a794c3996bb5ad4e23d473cdf79b6d9fa3e188661603ef1170a",
"imageSha256": "3c8703175605fcf0387d654cd30783ecfd33e21743e70b45190a5ae1a8d355c2"
},
"device-display-preview": {
@@ -81,7 +81,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "891b0e4cc608d3e77fea3f9aeaa54ce680df234336f6af9264ff19508c14ae1b",
"sourceSha256": "1d093022e8e71a794c3996bb5ad4e23d473cdf79b6d9fa3e188661603ef1170a",
"imageSha256": "5d6193202102f5e6d85567f1111fa105895b933979fbf369c6ba0b1029deb823"
},
"background-editor": {
@@ -92,7 +92,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "891b0e4cc608d3e77fea3f9aeaa54ce680df234336f6af9264ff19508c14ae1b",
"sourceSha256": "1d093022e8e71a794c3996bb5ad4e23d473cdf79b6d9fa3e188661603ef1170a",
"imageSha256": "375900a29aa62632883ede6727b7dbb8b48cabe9d7d0e16425f9779c837f3dd9"
},
"room-card": {
@@ -103,7 +103,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "891b0e4cc608d3e77fea3f9aeaa54ce680df234336f6af9264ff19508c14ae1b",
"sourceSha256": "1d093022e8e71a794c3996bb5ad4e23d473cdf79b6d9fa3e188661603ef1170a",
"imageSha256": "3d85424676c823ddca3fa7dab3cce089b6030e48c05d16d2d48d922c66c0cbd2"
},
"device-info": {
@@ -114,7 +114,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "891b0e4cc608d3e77fea3f9aeaa54ce680df234336f6af9264ff19508c14ae1b",
"sourceSha256": "1d093022e8e71a794c3996bb5ad4e23d473cdf79b6d9fa3e188661603ef1170a",
"imageSha256": "ac962820f8e1c5cb5b042d39b18dc95905fa840cb2d4749060d991be4f6977c2"
},
"pdf-export": {
@@ -125,7 +125,7 @@
},
"theme": "light",
"language": "en",
"sourceSha256": "891b0e4cc608d3e77fea3f9aeaa54ce680df234336f6af9264ff19508c14ae1b",
"sourceSha256": "1d093022e8e71a794c3996bb5ad4e23d473cdf79b6d9fa3e188661603ef1170a",
"imageSha256": "4537692fd57a3ed95528eddd748eee5cb6e456ffab7cc49169853d62459252cd"
}
},
+3 -1
View File
@@ -465,7 +465,9 @@ test('sun-ray golden requires browser-painted light from a state-only sun entity
const outerSpace = outerFixture.config.spaces.find((item) => item.id === outer.space);
const hostWall = outerSpace.walls.find((wall) =>
Math.abs(wall.a[1] - 0.10) < 1e-9 && Math.abs(wall.b[1] - 0.10) < 1e-9);
assert.equal(outerSpace.settings.sun_ray_origin, 'outer');
assert.equal(outerFixture.config.settings.sun_ray_origin, 'outer');
assert.equal(outerSpace.settings.sun_ray_origin, undefined,
'the selector is global-only and must not be hidden in a space override');
assert.equal(hostWall?.cm, 15, 'outer golden must retain a physical wall tunnel');
assert.equal(outer.capture, 'sun-window');
assert.equal(outer.sunRayPixels.minPixels >= 500, true);