Fix hovered Zigbee topology endpoint layer

Issue: #464
User-Visible: yes
This commit is contained in:
Matysh
2026-09-06 01:23:51 +03:00
parent b7f82d54dd
commit 0f7b0dff14
33 changed files with 267 additions and 212 deletions
@@ -1,182 +1,182 @@
{
"schema": 1,
"fingerprint": "88634bc520657d3b12a11eba6ffc036af7bf3fe167a7c96583130b53cf4300c6",
"fingerprint": "7b2af621416fb35c7a1020fc77ad012f7a2e79667920e14d00411907ce30df28",
"entry": "houseplan-card.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-ZN52g_du.js",
"houseplan-assets/houseplan-card-C9ly6eCS.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 300233,
"initialViewGzipBytes": 300318,
"lazyFiles": [
"houseplan-assets/backdrop-pick-BI9Txz9j.js",
"houseplan-assets/de-CiYlrET-.js",
"houseplan-assets/editor-DC36bwN8.js",
"houseplan-assets/fr-gFMxoDKF.js",
"houseplan-assets/houseplan-editor-runtime-C-7DY1nv.js",
"houseplan-assets/houseplan-onboarding-runtime-B35M7qEr.js",
"houseplan-assets/hp-zigbee-topology-overlay-DJAuIFJZ.js",
"houseplan-assets/live-interaction-runtime-CGuuWttn.js",
"houseplan-assets/zigbee-topology-CwRrS2Ma.js",
"houseplan-assets/zigbee-topology-runtime-DpQ2PAxs.js"
"houseplan-assets/backdrop-pick-BDdUnQbN.js",
"houseplan-assets/de-Bm_luydN.js",
"houseplan-assets/editor-BOYhVu96.js",
"houseplan-assets/fr-ir9GOrt4.js",
"houseplan-assets/houseplan-editor-runtime-mdS9tFuF.js",
"houseplan-assets/houseplan-onboarding-runtime-MEd5yrff.js",
"houseplan-assets/hp-zigbee-topology-overlay-D-X3L7-u.js",
"houseplan-assets/live-interaction-runtime-C-eLrCZt.js",
"houseplan-assets/zigbee-topology-ChZO504Z.js",
"houseplan-assets/zigbee-topology-runtime-CJBx30h0.js"
],
"lazyGzipBytes": 251374,
"lazyGzipBytes": 251369,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-BI9Txz9j.js",
"houseplan-assets/editor-DC36bwN8.js",
"houseplan-assets/houseplan-editor-runtime-C-7DY1nv.js",
"houseplan-assets/zigbee-topology-CwRrS2Ma.js"
"houseplan-assets/backdrop-pick-BDdUnQbN.js",
"houseplan-assets/editor-BOYhVu96.js",
"houseplan-assets/houseplan-editor-runtime-mdS9tFuF.js",
"houseplan-assets/zigbee-topology-ChZO504Z.js"
],
"lazyEditorGzipBytes": 186630,
"lazyEditorGzipBytes": 186627,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-BI9Txz9j.js",
"houseplan-assets/houseplan-onboarding-runtime-B35M7qEr.js"
"houseplan-assets/backdrop-pick-BDdUnQbN.js",
"houseplan-assets/houseplan-onboarding-runtime-MEd5yrff.js"
],
"lazyOnboardingGzipBytes": 14323,
"lazyOnboardingGzipBytes": 14324,
"lazyLocaleFiles": [
"houseplan-assets/de-CiYlrET-.js",
"houseplan-assets/fr-gFMxoDKF.js"
"houseplan-assets/de-Bm_luydN.js",
"houseplan-assets/fr-ir9GOrt4.js"
],
"lazyLocaleGzipBytes": 50152,
"lazyLocaleGzipBytes": 50154,
"files": [
{
"path": "houseplan-assets/backdrop-pick-BI9Txz9j.js",
"sha256": "34ef966748fc47cf5c6176fe90dfe07038e3e9a2bbc53801c92641cf3c6cd919",
"path": "houseplan-assets/backdrop-pick-BDdUnQbN.js",
"sha256": "2e23b576b1ff20bc21f4abfb7db83fb67d3b58a76aa0961722a86a8079840adb",
"rawBytes": 21592,
"gzipBytes": 7355,
"gzipBytes": 7358,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-ZN52g_du.js"
"houseplan-assets/houseplan-card-C9ly6eCS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/de-CiYlrET-.js",
"sha256": "8d672af8a38529ded574adaa2e3d659d9fcfbe05101bb56ac4d1bc9db1faf4b3",
"path": "houseplan-assets/de-Bm_luydN.js",
"sha256": "5970cb395847b36f8b33c7102c231c85d040a3b4f47943177fa0e37a2a9f5b32",
"rawBytes": 84232,
"gzipBytes": 25353,
"gzipBytes": 25354,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-DC36bwN8.js",
"sha256": "dfb87955775cf0050313431db899cf70fb193a6135169c83bedcc0ba6cf60145",
"path": "houseplan-assets/editor-BOYhVu96.js",
"sha256": "8b92a39e5e76c4de20c40522f00edc036b391b295ff2fe2a4a04faa08bc53211",
"rawBytes": 3831,
"gzipBytes": 1582,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-ZN52g_du.js"
"houseplan-assets/houseplan-card-C9ly6eCS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-gFMxoDKF.js",
"sha256": "4497cc4ec3797d660dda5fd58894efe08d9ca7286b2e9e4780daef5d8ed8238b",
"path": "houseplan-assets/fr-ir9GOrt4.js",
"sha256": "c4bb10e58dcc697e8424445cd37d72f5afaf5ceeb817017393057dde9c3bfdfd",
"rawBytes": 86273,
"gzipBytes": 24799,
"gzipBytes": 24800,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-ZN52g_du.js",
"sha256": "efeedbd8d1709b8c05acdf11a4305d558809a61800f5dc376aedd51038538e18",
"rawBytes": 1069407,
"gzipBytes": 299436,
"path": "houseplan-assets/houseplan-card-C9ly6eCS.js",
"sha256": "6413e17ad91b6268091286f91cc57dc079eee6565ffc11156af9f9984fcaec07",
"rawBytes": 1069717,
"gzipBytes": 299523,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-CiYlrET-.js",
"houseplan-assets/editor-DC36bwN8.js",
"houseplan-assets/fr-gFMxoDKF.js",
"houseplan-assets/houseplan-editor-runtime-C-7DY1nv.js",
"houseplan-assets/houseplan-onboarding-runtime-B35M7qEr.js",
"houseplan-assets/hp-zigbee-topology-overlay-DJAuIFJZ.js",
"houseplan-assets/live-interaction-runtime-CGuuWttn.js"
"houseplan-assets/de-Bm_luydN.js",
"houseplan-assets/editor-BOYhVu96.js",
"houseplan-assets/fr-ir9GOrt4.js",
"houseplan-assets/houseplan-editor-runtime-mdS9tFuF.js",
"houseplan-assets/houseplan-onboarding-runtime-MEd5yrff.js",
"houseplan-assets/hp-zigbee-topology-overlay-D-X3L7-u.js",
"houseplan-assets/live-interaction-runtime-C-eLrCZt.js"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-C-7DY1nv.js",
"sha256": "18fcec23d17cb244d8e3304703ef00684681b148adb35fee285b0c0776551daa",
"path": "houseplan-assets/houseplan-editor-runtime-mdS9tFuF.js",
"sha256": "b20481404cc081c601f736717502c820b006674285c9f48a6fd5917480af1005",
"rawBytes": 639580,
"gzipBytes": 170264,
"gzipBytes": 170262,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-BI9Txz9j.js",
"houseplan-assets/houseplan-card-ZN52g_du.js",
"houseplan-assets/zigbee-topology-CwRrS2Ma.js"
"houseplan-assets/backdrop-pick-BDdUnQbN.js",
"houseplan-assets/houseplan-card-C9ly6eCS.js",
"houseplan-assets/zigbee-topology-ChZO504Z.js"
],
"dynamicImports": [
"houseplan-assets/zigbee-topology-runtime-DpQ2PAxs.js"
"houseplan-assets/zigbee-topology-runtime-CJBx30h0.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime-B35M7qEr.js",
"sha256": "b8e5145c1f850e348837e178f921f9f2f81b33da3a7904d53d03943cb98a8391",
"path": "houseplan-assets/houseplan-onboarding-runtime-MEd5yrff.js",
"sha256": "5920d310384c121d153eabf0603b468654377d825b38acddf1e0d10ff5e32168",
"rawBytes": 28071,
"gzipBytes": 6968,
"gzipBytes": 6966,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-BI9Txz9j.js",
"houseplan-assets/houseplan-card-ZN52g_du.js"
"houseplan-assets/backdrop-pick-BDdUnQbN.js",
"houseplan-assets/houseplan-card-C9ly6eCS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-DJAuIFJZ.js",
"sha256": "f395abd579e537274d70f49d5080ba78c391520f70d41dec1d6ebbc6465121cb",
"path": "houseplan-assets/hp-zigbee-topology-overlay-D-X3L7-u.js",
"sha256": "732d245d5a3f7ac04d7ed17e5f489e39184240f929876f4332c2821775967a0b",
"rawBytes": 11034,
"gzipBytes": 3733,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-ZN52g_du.js",
"houseplan-assets/zigbee-topology-CwRrS2Ma.js",
"houseplan-assets/zigbee-topology-runtime-DpQ2PAxs.js"
"houseplan-assets/houseplan-card-C9ly6eCS.js",
"houseplan-assets/zigbee-topology-ChZO504Z.js",
"houseplan-assets/zigbee-topology-runtime-CJBx30h0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/live-interaction-runtime-CGuuWttn.js",
"sha256": "dee3d11d04cb180c8322f9e1ae0feeec007c45ee07556b7dccfba2396c29ae7f",
"path": "houseplan-assets/live-interaction-runtime-C-eLrCZt.js",
"sha256": "6047fb1dbbb5cc416d2f5cb794c443a13280c3b00d1612da83274dbcbb9376d3",
"rawBytes": 5196,
"gzipBytes": 2128,
"gzipBytes": 2126,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-ZN52g_du.js"
"houseplan-assets/houseplan-card-C9ly6eCS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-CwRrS2Ma.js",
"sha256": "0fe2efd6991acd43f0d716914378115a81878e8b4e9285f9ea68b68c379e5244",
"path": "houseplan-assets/zigbee-topology-ChZO504Z.js",
"sha256": "5150c37095e1723310c7d0cd52008f316e475d37f78f89b7f4c0f3da4dceb8b6",
"rawBytes": 18961,
"gzipBytes": 7429,
"gzipBytes": 7425,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-ZN52g_du.js"
"houseplan-assets/houseplan-card-C9ly6eCS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-runtime-DpQ2PAxs.js",
"sha256": "6d253bf012edce3391a00a1a23a939894d1ba8bb3de33273607f60888ac93ac5",
"path": "houseplan-assets/zigbee-topology-runtime-CJBx30h0.js",
"sha256": "85bda88f7d5338fdeab7c032a774fce6114d7cea62923eb997f0587fe8551c45",
"rawBytes": 3941,
"gzipBytes": 1763,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-ZN52g_du.js",
"houseplan-assets/zigbee-topology-CwRrS2Ma.js"
"houseplan-assets/houseplan-card-C9ly6eCS.js",
"houseplan-assets/zigbee-topology-ChZO504Z.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "523ee1a56f27b16bdbb16e5960b45017932f31eb14f4c95ee8ec904c60386627",
"sha256": "98ffbd7ee3cf8a42be50addb8a230b71b9a4459fa041438674f650d845828f5b",
"rawBytes": 1183,
"gzipBytes": 797,
"gzipBytes": 795,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-ZN52g_du.js"
"houseplan-assets/houseplan-card-C9ly6eCS.js"
],
"dynamicImports": []
}
File diff suppressed because one or more lines are too long
@@ -1,14 +1,14 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="88634bc520657d3b12a11eba6ffc036af7bf3fe167a7c96583130b53cf4300c6";import{v as e,l as o,z as t,dt as s,A as a,du as i,dv as l,dw as n,E as r,c}from"./houseplan-card-ZN52g_du.js";class f extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,f={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},h=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="7b2af621416fb35c7a1020fc77ad012f7a2e79667920e14d00411907ce30df28";import{v as e,l as o,z as t,dt as s,A as a,du as i,dv as l,dw as n,E as r,c}from"./houseplan-card-C9ly6eCS.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
.hass=${this.hass}
.data=${this._formData}
.schema=${e}
.computeLabel=${e=>f[e.name]||e.name}
.computeLabel=${e=>h[e.name]||e.name}
@value-changed=${this._valueChanged}
></ha-form>`;return c`
${d(h.slice(0,3))}
${d(f.slice(0,3))}
${_?c`<div class="default-floor-error" role="alert"
style="color:var(--error-color,#db4437);margin:-4px 0 12px;overflow-wrap:anywhere">
${t(s,"editor.default_floor_missing",{id:_})}
</div>`:a}
${d(h.slice(3))}
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}f.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",f);
${d(f.slice(3))}
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}h.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",h);
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="88634bc520657d3b12a11eba6ffc036af7bf3fe167a7c96583130b53cf4300c6";import{l as t,b0 as s,A as e,z as o,c as a,cj as l,ck as i,cl as h,cm as c,aZ as n,cn as r,cs as p,co as _,cp as d,cq as u,cr as g,dj as m,aY as b,a_ as $,dk as v}from"./houseplan-card-ZN52g_du.js";import{i as f,c as y,e as w,r as D,a as k,b as S,g as C,t as M}from"./backdrop-pick-BI9Txz9j.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="88634bc520657d3b12a11eba6ffc036af7bf3fe167a7c96583130b53cf4300c6";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)?a`<hp-help data-help-key=${l}
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="7b2af621416fb35c7a1020fc77ad012f7a2e79667920e14d00411907ce30df28";import{l as t,b0 as s,A as e,z as o,c as a,cj as l,ck as i,cl as h,cm as c,aZ as n,cn as r,cs as p,co as _,cp as d,cq as u,cr as g,dj as m,aY as b,a_ as $,dk as v}from"./houseplan-card-C9ly6eCS.js";import{i as f,c as y,e as w,r as D,a as k,b as S,g as C,t as M}from"./backdrop-pick-BDdUnQbN.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="7b2af621416fb35c7a1020fc77ad012f7a2e79667920e14d00411907ce30df28";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)?a`<hp-help data-help-key=${l}
.text=${o(h,l)} .ariaLabel=${o(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 o=l(e),a=e.settings?.custom_fill&&"object"==typeof e.settings.custom_fill?i(e.settings.custom_fill):null,p="none"===o.fill?{...a||h,a:0}:a;return void(this.host._spaceDialog={mode:t,spaceId:s,title:e.title,planUrl:e.plan_url||null,planFile:null,source:e.plan_url?"file":"draw",showBorders:o.showBorders,showNames:o.showNames,zeroWallStyle:r(e),displayTouched:!0,hideDecor:o.hideDecor,hideOpenings:o.hideOpenings,roomColor:o.color,roomOpacity:o.opacity,fillMode:"none"===o.fill?"custom":o.fill,customFill:p,glowEnabled:o.glow,bgColor:o.bgColor,bgMode:"static"===e.settings?.bg_mode||"daynight"===e.settings?.bg_mode?e.settings.bg_mode:null,northDeg:n({},e.settings),sunRays:"boolean"==typeof e.settings?.sun_rays?e.settings.sun_rays:null,tempMin:o.tempMin,tempMax:o.tempMax,showLqi:o.showLqi??this.host._config?.show_signal??!0,cardFontScale:o.cardFontScale,labelTemp:o.labelTemp,labelHum:o.labelHum,labelLqi:o.labelLqi,labelLight:o.labelLight,cellCm:Number(e.cell_cm)>0?Number(e.cell_cm):5,cellCmInput: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,...f(),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:d,tempMax:_,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 o=await y(e);if("reject"===o.kind)return void this.host._showToast(this.host._t("toast.plan_formats"));if("guard"===o.kind)return void(this.host._backdropGuard=o.state);const a=await w(e,o.ext,e.name);this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:a})}_renderBackdropGuard(){return D(this.host,t=>{this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:t})},()=>{this.host._backdropGuard=null},this.host.hass)??e}_useServerPlan(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,planUrl:t,planFile:null,pickSaved:!1,savedAspect:void 0},this.host._aspectJob=this._readPlanAspect(t))}async _readPlanAspect(t){for(let s=0;s<40;s++){const s=this.host._display(t);if(s){const e=await new Promise(t=>{const e=new Image;e.onload=()=>t(e.naturalWidth&&e.naturalHeight?e.naturalWidth/e.naturalHeight:0),e.onerror=()=>t(0),e.src=s}),o=this.host._spaceDialog;return o&&o.planUrl===t&&Number.isFinite(e)&&e>0?(this.host._spaceDialog={...o,savedAspect:e},e):0}if(await new Promise(t=>setTimeout(t,150)),this.host._spaceDialog?.planUrl!==t)return 0}return 0}async _deleteServerPlan(t){const s=this.host._spaceDialog,e=s?.saved?.find(s=>s.name===t);if(!s||!e||e.used_by.length||e.url===s.planUrl)return;const o=await this.host._confirmDanger({key:"delete-plan",kind:"destructive",title:this.host._t("confirm.delete_plan_title"),message:this.host._t("confirm.delete_plan_body"),objectName:t,confirmLabel:this.host._t("btn.delete"),cancelLabel:this.host._t("btn.cancel")}),a=this.host._spaceDialog,l=a?.saved?.find(s=>s.name===t);if(o&&a&&l&&l.url===e.url&&l.modified===e.modified&&!l.used_by.length&&l.url!==a.planUrl)try{await this.host.hass.callWS({type:"houseplan/plans/delete",name:t});const s=this.host._spaceDialog;s?.saved&&(this.host._spaceDialog={...s,saved:s.saved.filter(s=>s.name!==t)})}catch(t){this.host._showToast(this.host._t("toast.plan_delete_failed",{err:this.host._errText(t)}))}}_renderServerPlans(t){if(t.savedBusy)return a`<div class="savedplans muted">${this.host._t("space.loading")}</div>`;const s=t.saved||[];if(!s.length)return a`<div class="savedplans muted">${this.host._t("space.no_saved")}</div>`;return a`<div class="savedplans">
${s.map(s=>{return a`
<div class="savedplan ${s.url===t.planUrl?"cur":""}">
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="88634bc520657d3b12a11eba6ffc036af7bf3fe167a7c96583130b53cf4300c6";import{n as t,b as n}from"./zigbee-topology-CwRrS2Ma.js";import{I as e}from"./houseplan-card-ZN52g_du.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__="7b2af621416fb35c7a1020fc77ad012f7a2e79667920e14d00411907ce30df28";import{n as t,b as n}from"./zigbee-topology-ChZO504Z.js";import{I as e}from"./houseplan-card-C9ly6eCS.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__="88634bc520657d3b12a11eba6ffc036af7bf3fe167a7c96583130b53cf4300c6";try{await import("./houseplan-assets/houseplan-card-ZN52g_du.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 entry: the main chunk is unavailable",e)}
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="7b2af621416fb35c7a1020fc77ad012f7a2e79667920e14d00411907ce30df28";try{await import("./houseplan-assets/houseplan-card-C9ly6eCS.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 entry: the main chunk is unavailable",e)}
+26
View File
@@ -552,6 +552,32 @@ for (const [name, value] of Object.entries(rasterEvidence)) {
result[`raster_${name}`] = value;
}
const realHoverPoint = await page.evaluate(() => {
const card = window.__card;
const root = card.shadowRoot || card.renderRoot;
const source = root.querySelector('.dev[data-id="d_light1"]');
const rect = source.getBoundingClientRect();
return { x: rect.left + rect.width / 2, y: rect.top + rect.height / 2 };
});
await page.mouse.move(realHoverPoint.x, realHoverPoint.y);
result.realPointerEndpointWins = await page.evaluate(async () => {
const card = window.__card;
const root = card.shadowRoot || card.renderRoot;
const source = root.querySelector('.dev[data-id="d_light1"]');
const overlay = root.querySelector('hp-zigbee-topology-overlay');
const started = performance.now();
while ((!source.matches(':hover')
|| !source.hasAttribute('data-hp-zigbee-topology-endpoint')
|| !overlay?.shadowRoot?.querySelector('[data-hp="zigbee-topology-line"]'))
&& performance.now() - started < 5000) {
await new Promise((resolve) => setTimeout(resolve, 20));
}
return source.matches(':hover')
&& source.hasAttribute('data-hp-zigbee-topology-endpoint')
&& Number.parseInt(getComputedStyle(source).zIndex, 10)
> Number.parseInt(getComputedStyle(overlay).zIndex, 10);
});
await page.emulateMedia({ forcedColors: 'active' });
result.forcedColorsPreserved = await page.evaluate(() => {
const card = window.__card;
+81 -81
View File
@@ -1,182 +1,182 @@
{
"schema": 1,
"fingerprint": "88634bc520657d3b12a11eba6ffc036af7bf3fe167a7c96583130b53cf4300c6",
"fingerprint": "7b2af621416fb35c7a1020fc77ad012f7a2e79667920e14d00411907ce30df28",
"entry": "houseplan-card.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-ZN52g_du.js",
"houseplan-assets/houseplan-card-C9ly6eCS.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 300233,
"initialViewGzipBytes": 300318,
"lazyFiles": [
"houseplan-assets/backdrop-pick-BI9Txz9j.js",
"houseplan-assets/de-CiYlrET-.js",
"houseplan-assets/editor-DC36bwN8.js",
"houseplan-assets/fr-gFMxoDKF.js",
"houseplan-assets/houseplan-editor-runtime-C-7DY1nv.js",
"houseplan-assets/houseplan-onboarding-runtime-B35M7qEr.js",
"houseplan-assets/hp-zigbee-topology-overlay-DJAuIFJZ.js",
"houseplan-assets/live-interaction-runtime-CGuuWttn.js",
"houseplan-assets/zigbee-topology-CwRrS2Ma.js",
"houseplan-assets/zigbee-topology-runtime-DpQ2PAxs.js"
"houseplan-assets/backdrop-pick-BDdUnQbN.js",
"houseplan-assets/de-Bm_luydN.js",
"houseplan-assets/editor-BOYhVu96.js",
"houseplan-assets/fr-ir9GOrt4.js",
"houseplan-assets/houseplan-editor-runtime-mdS9tFuF.js",
"houseplan-assets/houseplan-onboarding-runtime-MEd5yrff.js",
"houseplan-assets/hp-zigbee-topology-overlay-D-X3L7-u.js",
"houseplan-assets/live-interaction-runtime-C-eLrCZt.js",
"houseplan-assets/zigbee-topology-ChZO504Z.js",
"houseplan-assets/zigbee-topology-runtime-CJBx30h0.js"
],
"lazyGzipBytes": 251374,
"lazyGzipBytes": 251369,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-BI9Txz9j.js",
"houseplan-assets/editor-DC36bwN8.js",
"houseplan-assets/houseplan-editor-runtime-C-7DY1nv.js",
"houseplan-assets/zigbee-topology-CwRrS2Ma.js"
"houseplan-assets/backdrop-pick-BDdUnQbN.js",
"houseplan-assets/editor-BOYhVu96.js",
"houseplan-assets/houseplan-editor-runtime-mdS9tFuF.js",
"houseplan-assets/zigbee-topology-ChZO504Z.js"
],
"lazyEditorGzipBytes": 186630,
"lazyEditorGzipBytes": 186627,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-BI9Txz9j.js",
"houseplan-assets/houseplan-onboarding-runtime-B35M7qEr.js"
"houseplan-assets/backdrop-pick-BDdUnQbN.js",
"houseplan-assets/houseplan-onboarding-runtime-MEd5yrff.js"
],
"lazyOnboardingGzipBytes": 14323,
"lazyOnboardingGzipBytes": 14324,
"lazyLocaleFiles": [
"houseplan-assets/de-CiYlrET-.js",
"houseplan-assets/fr-gFMxoDKF.js"
"houseplan-assets/de-Bm_luydN.js",
"houseplan-assets/fr-ir9GOrt4.js"
],
"lazyLocaleGzipBytes": 50152,
"lazyLocaleGzipBytes": 50154,
"files": [
{
"path": "houseplan-assets/backdrop-pick-BI9Txz9j.js",
"sha256": "34ef966748fc47cf5c6176fe90dfe07038e3e9a2bbc53801c92641cf3c6cd919",
"path": "houseplan-assets/backdrop-pick-BDdUnQbN.js",
"sha256": "2e23b576b1ff20bc21f4abfb7db83fb67d3b58a76aa0961722a86a8079840adb",
"rawBytes": 21592,
"gzipBytes": 7355,
"gzipBytes": 7358,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-ZN52g_du.js"
"houseplan-assets/houseplan-card-C9ly6eCS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/de-CiYlrET-.js",
"sha256": "8d672af8a38529ded574adaa2e3d659d9fcfbe05101bb56ac4d1bc9db1faf4b3",
"path": "houseplan-assets/de-Bm_luydN.js",
"sha256": "5970cb395847b36f8b33c7102c231c85d040a3b4f47943177fa0e37a2a9f5b32",
"rawBytes": 84232,
"gzipBytes": 25353,
"gzipBytes": 25354,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-DC36bwN8.js",
"sha256": "dfb87955775cf0050313431db899cf70fb193a6135169c83bedcc0ba6cf60145",
"path": "houseplan-assets/editor-BOYhVu96.js",
"sha256": "8b92a39e5e76c4de20c40522f00edc036b391b295ff2fe2a4a04faa08bc53211",
"rawBytes": 3831,
"gzipBytes": 1582,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-ZN52g_du.js"
"houseplan-assets/houseplan-card-C9ly6eCS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-gFMxoDKF.js",
"sha256": "4497cc4ec3797d660dda5fd58894efe08d9ca7286b2e9e4780daef5d8ed8238b",
"path": "houseplan-assets/fr-ir9GOrt4.js",
"sha256": "c4bb10e58dcc697e8424445cd37d72f5afaf5ceeb817017393057dde9c3bfdfd",
"rawBytes": 86273,
"gzipBytes": 24799,
"gzipBytes": 24800,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-ZN52g_du.js",
"sha256": "efeedbd8d1709b8c05acdf11a4305d558809a61800f5dc376aedd51038538e18",
"rawBytes": 1069407,
"gzipBytes": 299436,
"path": "houseplan-assets/houseplan-card-C9ly6eCS.js",
"sha256": "6413e17ad91b6268091286f91cc57dc079eee6565ffc11156af9f9984fcaec07",
"rawBytes": 1069717,
"gzipBytes": 299523,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-CiYlrET-.js",
"houseplan-assets/editor-DC36bwN8.js",
"houseplan-assets/fr-gFMxoDKF.js",
"houseplan-assets/houseplan-editor-runtime-C-7DY1nv.js",
"houseplan-assets/houseplan-onboarding-runtime-B35M7qEr.js",
"houseplan-assets/hp-zigbee-topology-overlay-DJAuIFJZ.js",
"houseplan-assets/live-interaction-runtime-CGuuWttn.js"
"houseplan-assets/de-Bm_luydN.js",
"houseplan-assets/editor-BOYhVu96.js",
"houseplan-assets/fr-ir9GOrt4.js",
"houseplan-assets/houseplan-editor-runtime-mdS9tFuF.js",
"houseplan-assets/houseplan-onboarding-runtime-MEd5yrff.js",
"houseplan-assets/hp-zigbee-topology-overlay-D-X3L7-u.js",
"houseplan-assets/live-interaction-runtime-C-eLrCZt.js"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-C-7DY1nv.js",
"sha256": "18fcec23d17cb244d8e3304703ef00684681b148adb35fee285b0c0776551daa",
"path": "houseplan-assets/houseplan-editor-runtime-mdS9tFuF.js",
"sha256": "b20481404cc081c601f736717502c820b006674285c9f48a6fd5917480af1005",
"rawBytes": 639580,
"gzipBytes": 170264,
"gzipBytes": 170262,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-BI9Txz9j.js",
"houseplan-assets/houseplan-card-ZN52g_du.js",
"houseplan-assets/zigbee-topology-CwRrS2Ma.js"
"houseplan-assets/backdrop-pick-BDdUnQbN.js",
"houseplan-assets/houseplan-card-C9ly6eCS.js",
"houseplan-assets/zigbee-topology-ChZO504Z.js"
],
"dynamicImports": [
"houseplan-assets/zigbee-topology-runtime-DpQ2PAxs.js"
"houseplan-assets/zigbee-topology-runtime-CJBx30h0.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime-B35M7qEr.js",
"sha256": "b8e5145c1f850e348837e178f921f9f2f81b33da3a7904d53d03943cb98a8391",
"path": "houseplan-assets/houseplan-onboarding-runtime-MEd5yrff.js",
"sha256": "5920d310384c121d153eabf0603b468654377d825b38acddf1e0d10ff5e32168",
"rawBytes": 28071,
"gzipBytes": 6968,
"gzipBytes": 6966,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-BI9Txz9j.js",
"houseplan-assets/houseplan-card-ZN52g_du.js"
"houseplan-assets/backdrop-pick-BDdUnQbN.js",
"houseplan-assets/houseplan-card-C9ly6eCS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-DJAuIFJZ.js",
"sha256": "f395abd579e537274d70f49d5080ba78c391520f70d41dec1d6ebbc6465121cb",
"path": "houseplan-assets/hp-zigbee-topology-overlay-D-X3L7-u.js",
"sha256": "732d245d5a3f7ac04d7ed17e5f489e39184240f929876f4332c2821775967a0b",
"rawBytes": 11034,
"gzipBytes": 3733,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-ZN52g_du.js",
"houseplan-assets/zigbee-topology-CwRrS2Ma.js",
"houseplan-assets/zigbee-topology-runtime-DpQ2PAxs.js"
"houseplan-assets/houseplan-card-C9ly6eCS.js",
"houseplan-assets/zigbee-topology-ChZO504Z.js",
"houseplan-assets/zigbee-topology-runtime-CJBx30h0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/live-interaction-runtime-CGuuWttn.js",
"sha256": "dee3d11d04cb180c8322f9e1ae0feeec007c45ee07556b7dccfba2396c29ae7f",
"path": "houseplan-assets/live-interaction-runtime-C-eLrCZt.js",
"sha256": "6047fb1dbbb5cc416d2f5cb794c443a13280c3b00d1612da83274dbcbb9376d3",
"rawBytes": 5196,
"gzipBytes": 2128,
"gzipBytes": 2126,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-ZN52g_du.js"
"houseplan-assets/houseplan-card-C9ly6eCS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-CwRrS2Ma.js",
"sha256": "0fe2efd6991acd43f0d716914378115a81878e8b4e9285f9ea68b68c379e5244",
"path": "houseplan-assets/zigbee-topology-ChZO504Z.js",
"sha256": "5150c37095e1723310c7d0cd52008f316e475d37f78f89b7f4c0f3da4dceb8b6",
"rawBytes": 18961,
"gzipBytes": 7429,
"gzipBytes": 7425,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-ZN52g_du.js"
"houseplan-assets/houseplan-card-C9ly6eCS.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-runtime-DpQ2PAxs.js",
"sha256": "6d253bf012edce3391a00a1a23a939894d1ba8bb3de33273607f60888ac93ac5",
"path": "houseplan-assets/zigbee-topology-runtime-CJBx30h0.js",
"sha256": "85bda88f7d5338fdeab7c032a774fce6114d7cea62923eb997f0587fe8551c45",
"rawBytes": 3941,
"gzipBytes": 1763,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-ZN52g_du.js",
"houseplan-assets/zigbee-topology-CwRrS2Ma.js"
"houseplan-assets/houseplan-card-C9ly6eCS.js",
"houseplan-assets/zigbee-topology-ChZO504Z.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "523ee1a56f27b16bdbb16e5960b45017932f31eb14f4c95ee8ec904c60386627",
"sha256": "98ffbd7ee3cf8a42be50addb8a230b71b9a4459fa041438674f650d845828f5b",
"rawBytes": 1183,
"gzipBytes": 797,
"gzipBytes": 795,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-ZN52g_du.js"
"houseplan-assets/houseplan-card-C9ly6eCS.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__="88634bc520657d3b12a11eba6ffc036af7bf3fe167a7c96583130b53cf4300c6";import{v as e,l as o,z as t,dt as s,A as a,du as i,dv as l,dw as n,E as r,c}from"./houseplan-card-ZN52g_du.js";class f extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,f={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},h=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="7b2af621416fb35c7a1020fc77ad012f7a2e79667920e14d00411907ce30df28";import{v as e,l as o,z as t,dt as s,A as a,du as i,dv as l,dw as n,E as r,c}from"./houseplan-card-C9ly6eCS.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
.hass=${this.hass}
.data=${this._formData}
.schema=${e}
.computeLabel=${e=>f[e.name]||e.name}
.computeLabel=${e=>h[e.name]||e.name}
@value-changed=${this._valueChanged}
></ha-form>`;return c`
${d(h.slice(0,3))}
${d(f.slice(0,3))}
${_?c`<div class="default-floor-error" role="alert"
style="color:var(--error-color,#db4437);margin:-4px 0 12px;overflow-wrap:anywhere">
${t(s,"editor.default_floor_missing",{id:_})}
</div>`:a}
${d(h.slice(3))}
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}f.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",f);
${d(f.slice(3))}
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}h.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",h);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="88634bc520657d3b12a11eba6ffc036af7bf3fe167a7c96583130b53cf4300c6";import{l as t,b0 as s,A as e,z as o,c as a,cj as l,ck as i,cl as h,cm as c,aZ as n,cn as r,cs as p,co as _,cp as d,cq as u,cr as g,dj as m,aY as b,a_ as $,dk as v}from"./houseplan-card-ZN52g_du.js";import{i as f,c as y,e as w,r as D,a as k,b as S,g as C,t as M}from"./backdrop-pick-BI9Txz9j.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="88634bc520657d3b12a11eba6ffc036af7bf3fe167a7c96583130b53cf4300c6";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)?a`<hp-help data-help-key=${l}
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="7b2af621416fb35c7a1020fc77ad012f7a2e79667920e14d00411907ce30df28";import{l as t,b0 as s,A as e,z as o,c as a,cj as l,ck as i,cl as h,cm as c,aZ as n,cn as r,cs as p,co as _,cp as d,cq as u,cr as g,dj as m,aY as b,a_ as $,dk as v}from"./houseplan-card-C9ly6eCS.js";import{i as f,c as y,e as w,r as D,a as k,b as S,g as C,t as M}from"./backdrop-pick-BDdUnQbN.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="7b2af621416fb35c7a1020fc77ad012f7a2e79667920e14d00411907ce30df28";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)?a`<hp-help data-help-key=${l}
.text=${o(h,l)} .ariaLabel=${o(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 o=l(e),a=e.settings?.custom_fill&&"object"==typeof e.settings.custom_fill?i(e.settings.custom_fill):null,p="none"===o.fill?{...a||h,a:0}:a;return void(this.host._spaceDialog={mode:t,spaceId:s,title:e.title,planUrl:e.plan_url||null,planFile:null,source:e.plan_url?"file":"draw",showBorders:o.showBorders,showNames:o.showNames,zeroWallStyle:r(e),displayTouched:!0,hideDecor:o.hideDecor,hideOpenings:o.hideOpenings,roomColor:o.color,roomOpacity:o.opacity,fillMode:"none"===o.fill?"custom":o.fill,customFill:p,glowEnabled:o.glow,bgColor:o.bgColor,bgMode:"static"===e.settings?.bg_mode||"daynight"===e.settings?.bg_mode?e.settings.bg_mode:null,northDeg:n({},e.settings),sunRays:"boolean"==typeof e.settings?.sun_rays?e.settings.sun_rays:null,tempMin:o.tempMin,tempMax:o.tempMax,showLqi:o.showLqi??this.host._config?.show_signal??!0,cardFontScale:o.cardFontScale,labelTemp:o.labelTemp,labelHum:o.labelHum,labelLqi:o.labelLqi,labelLight:o.labelLight,cellCm:Number(e.cell_cm)>0?Number(e.cell_cm):5,cellCmInput: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,...f(),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:d,tempMax:_,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 o=await y(e);if("reject"===o.kind)return void this.host._showToast(this.host._t("toast.plan_formats"));if("guard"===o.kind)return void(this.host._backdropGuard=o.state);const a=await w(e,o.ext,e.name);this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:a})}_renderBackdropGuard(){return D(this.host,t=>{this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:t})},()=>{this.host._backdropGuard=null},this.host.hass)??e}_useServerPlan(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,planUrl:t,planFile:null,pickSaved:!1,savedAspect:void 0},this.host._aspectJob=this._readPlanAspect(t))}async _readPlanAspect(t){for(let s=0;s<40;s++){const s=this.host._display(t);if(s){const e=await new Promise(t=>{const e=new Image;e.onload=()=>t(e.naturalWidth&&e.naturalHeight?e.naturalWidth/e.naturalHeight:0),e.onerror=()=>t(0),e.src=s}),o=this.host._spaceDialog;return o&&o.planUrl===t&&Number.isFinite(e)&&e>0?(this.host._spaceDialog={...o,savedAspect:e},e):0}if(await new Promise(t=>setTimeout(t,150)),this.host._spaceDialog?.planUrl!==t)return 0}return 0}async _deleteServerPlan(t){const s=this.host._spaceDialog,e=s?.saved?.find(s=>s.name===t);if(!s||!e||e.used_by.length||e.url===s.planUrl)return;const o=await this.host._confirmDanger({key:"delete-plan",kind:"destructive",title:this.host._t("confirm.delete_plan_title"),message:this.host._t("confirm.delete_plan_body"),objectName:t,confirmLabel:this.host._t("btn.delete"),cancelLabel:this.host._t("btn.cancel")}),a=this.host._spaceDialog,l=a?.saved?.find(s=>s.name===t);if(o&&a&&l&&l.url===e.url&&l.modified===e.modified&&!l.used_by.length&&l.url!==a.planUrl)try{await this.host.hass.callWS({type:"houseplan/plans/delete",name:t});const s=this.host._spaceDialog;s?.saved&&(this.host._spaceDialog={...s,saved:s.saved.filter(s=>s.name!==t)})}catch(t){this.host._showToast(this.host._t("toast.plan_delete_failed",{err:this.host._errText(t)}))}}_renderServerPlans(t){if(t.savedBusy)return a`<div class="savedplans muted">${this.host._t("space.loading")}</div>`;const s=t.saved||[];if(!s.length)return a`<div class="savedplans muted">${this.host._t("space.no_saved")}</div>`;return a`<div class="savedplans">
${s.map(s=>{return a`
<div class="savedplan ${s.url===t.planUrl?"cur":""}">
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="88634bc520657d3b12a11eba6ffc036af7bf3fe167a7c96583130b53cf4300c6";import{n as t,b as n}from"./zigbee-topology-CwRrS2Ma.js";import{I as e}from"./houseplan-card-ZN52g_du.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__="7b2af621416fb35c7a1020fc77ad012f7a2e79667920e14d00411907ce30df28";import{n as t,b as n}from"./zigbee-topology-ChZO504Z.js";import{I as e}from"./houseplan-card-C9ly6eCS.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__="88634bc520657d3b12a11eba6ffc036af7bf3fe167a7c96583130b53cf4300c6";try{await import("./houseplan-assets/houseplan-card-ZN52g_du.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 entry: the main chunk is unavailable",e)}
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="7b2af621416fb35c7a1020fc77ad012f7a2e79667920e14d00411907ce30df28";try{await import("./houseplan-assets/houseplan-card-C9ly6eCS.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 entry: the main chunk is unavailable",e)}
+3 -2
View File
@@ -4,8 +4,9 @@
- Active Zigbee topology links and route bubbles now stay readable above room
names and unrelated device markers, while the complete linked device markers
remain on top. Unknown-quality dashed links also have a thin dark contrast
outline ([#464](https://github.com/Matysh/houseplan-card/issues/464)).
— including the one under the pointer — remain on top. Unknown-quality dashed
links also have a thin dark contrast outline
([#464](https://github.com/Matysh/houseplan-card/issues/464)).
## v1.72.0 — 2026-09-05
+2 -2
View File
@@ -10,8 +10,8 @@
- Активные линии и подписи Zigbee-топологии теперь читаются поверх названий
комнат и посторонних маркеров, а полные маркеры связанных устройств остаются
сверху. У серого пунктира неизвестного качества также появилась тонкая
тёмная контрастная обводка
сверху, включая маркер прямо под курсором. У серого пунктира неизвестного
качества также появилась тонкая тёмная контрастная обводка
([#464](https://github.com/Matysh/houseplan-card/issues/464)).
## v1.72.0 — 2026-09-05
+3 -1
View File
@@ -3810,7 +3810,9 @@ require hands on real hardware — they remain for the human pass.
context: overlay — ребёнок `.devlayer` без собственной live-camera
проекции; topology выше пересекающихся room label и постороннего marker,
но ниже полных roots source и каждого реально нарисованного local
endpoint. Host и primitives остаются pointer-transparent.
endpoint. Для source это проверяется настоящим `page.mouse.move`, чтобы
CSS `:hover` участвовал в каскаде; синтетический `pointerover` этого не
доказывает. Host и primitives остаются pointer-transparent.
- [ ] Exact endpoint ownership очищается при pointerleave, touch/pen, потере
hover gate, смене mode/space/setting, invalidation mapping, замене marker
DOM и disconnect. Remote/unplaced цели не поднимают marker.
@@ -330,7 +330,10 @@ forced-colors сохраняет системную палитру.
endpoint markers выше.
3. Снять stage screenshot в самом smoke и прочитать pixels через
`createImageBitmap`/`OffscreenCanvas`: линия видна поверх unrelated marker и
room label, но не поверх центров source/neighbor.
room label, но не поверх центров source/neighbor. Отдельно навести настоящий
Playwright-курсор через `page.mouse.move` на source и проверить, что его
вычисленный `z-index` остаётся выше overlay при активном CSS `:hover`;
синтетический `dispatchEvent(pointerover)` эту ветку каскада не покрывает.
4. Для unknown-LQI link проверить два совпадающих strokes и растровую
последовательность core → dark casing → background/gap при DPR 1; повторить
screen-space geometry на wide/tall и min/default/max zoom.
+11
View File
@@ -6063,6 +6063,17 @@ const MUTANT_DEFINITIONS = [
replace: '.dev[data-hp-zigbee-topology-endpoint] { z-index: 1; }',
}],
},
{
id: 'zigbee-topology-hovered-endpoint-elevation-removed',
guard: 'node demo/smoke_zigbee_topology_hover.mjs',
because: 'a real CSS :hover has higher specificity than the base endpoint rule; the source '
+ 'must still remain above its active topology line (#464 AC1, code-review r1)',
patches: [{
file: 'src/styles/devices.styles.ts',
find: ':host([data-pointer-hover]) .dev[data-hp-zigbee-topology-endpoint]:hover { z-index: 8; }',
replace: ':host([data-pointer-hover]) .dev[data-hp-zigbee-topology-endpoint]:hover { z-index: 1; }',
}],
},
{
id: 'zigbee-topology-unrelated-markers-raised',
guard: 'node demo/smoke_zigbee_topology_hover.mjs',
+4
View File
@@ -339,6 +339,10 @@ export const devicesStyles = css`
link rise above the topology overlay. The namespaced attribute is
transient and owned by hp-zigbee-topology-overlay. */
.dev[data-hp-zigbee-topology-endpoint] { z-index: 8; }
/* A real CSS hover is more specific than the base endpoint selector.
Repeat the endpoint contract at a still-higher specificity so the
hovered source cannot fall back below the topology overlay. */
:host([data-pointer-hover]) .dev[data-hp-zigbee-topology-endpoint]:hover { z-index: 8; }
.dev.unavail {
opacity: 0.35;
--device-face-bg: #B5BAC1;