UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

1 lines 5.17 kB
"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[88330],{84621:function(e,n,i){i.d(n,{$:function(){return S},A2:function(){return q},C2:function(){return t},Iu:function(){return $},Ky:function(){return l},Lj:function(){return s},Mo:function(){return C},On:function(){return u},P0:function(){return D},PA:function(){return o},Qo:function(){return W},RW:function(){return k},Uc:function(){return c},Ui:function(){return z},VC:function(){return M},VK:function(){return E},Yf:function(){return Z},ZU:function(){return r},cm:function(){return f},f7:function(){return x},hi:function(){return m},i_:function(){return h},jm:function(){return R},kH:function(){return d},ks:function(){return p},oM:function(){return _},p7:function(){return w},pl:function(){return v},rv:function(){return g},sb:function(){return O},tg:function(){return I},tv:function(){return b},xU:function(){return a},zt:function(){return y}});const t=(e,n,i)=>e.connection.subscribeMessage(e=>i(e),{type:"zha/devices/reconfigure",ieee:n}),a=e=>e.callWS({type:"zha/topology/update"}),r=(e,n,i,t,a)=>e.callWS({type:"zha/devices/clusters/attributes",ieee:n,endpoint_id:i,cluster_id:t,cluster_type:a}),c=e=>e.callWS({type:"zha/devices"}),u=(e,n)=>e.callWS({type:"zha/device",ieee:n}),o=(e,n)=>e.callWS({type:"zha/devices/bindable",ieee:n}),s=(e,n,i)=>e.callWS({type:"zha/devices/bind",source_ieee:n,target_ieee:i}),l=(e,n,i)=>e.callWS({type:"zha/devices/unbind",source_ieee:n,target_ieee:i}),d=(e,n,i,t)=>e.callWS({type:"zha/groups/bind",source_ieee:n,group_id:i,bindings:t}),p=(e,n,i,t)=>e.callWS({type:"zha/groups/unbind",source_ieee:n,group_id:i,bindings:t}),h=(e,n)=>e.callWS(Object.assign(Object.assign({},n),{},{type:"zha/devices/clusters/attributes/value"})),_=(e,n,i,t,a)=>e.callWS({type:"zha/devices/clusters/commands",ieee:n,endpoint_id:i,cluster_id:t,cluster_type:a}),f=(e,n)=>e.callWS({type:"zha/devices/clusters",ieee:n}),v=e=>e.callWS({type:"zha/groups"}),g=(e,n)=>e.callWS({type:"zha/group/remove",group_ids:n}),z=(e,n)=>e.callWS({type:"zha/group",group_id:n}),y=e=>e.callWS({type:"zha/devices/groupable"}),m=(e,n,i)=>e.callWS({type:"zha/group/members/add",group_id:n,members:i}),b=(e,n,i)=>e.callWS({type:"zha/group/members/remove",group_id:n,members:i}),S=(e,n,i,t)=>e.callWS({type:"zha/group/add",group_name:n,group_id:i,members:t}),W=e=>e.callWS({type:"zha/configuration"}),k=(e,n)=>e.callWS({type:"zha/configuration/update",data:n}),D=e=>e.callWS({type:"zha/network/settings"}),$=e=>e.callWS({type:"zha/network/backups/create"}),w=(e,n)=>e.callWS({type:"zha/network/change_channel",new_channel:n}),I="INITIALIZED",C="INTERVIEW_COMPLETE",x="CONFIGURED",E=["PAIRED",x,C],M=["device_joined","raw_device_initialized","device_fully_initialized"],R="log_output",q="zha_channel_bind",O="zha_channel_configure_reporting",Z="zha_channel_cfg_done"},39057:function(e,n,i){i.r(n),i.d(n,{HaDeviceInfoZha:function(){return h}});i(18111),i(20116);var t=i(40445),a=i(5124),r=i(67576),c=(i(11382),i(84621)),u=i(14503),o=i(31580);let s,l,d,p=e=>e;class h extends a.WF{updated(e){if(super.updated(e),e.has("device")){const e=this.device.connections.find(e=>"zigbee"===e[0]);if(!e)return;(0,c.On)(this.hass,e[1]).then(e=>{this._zhaDevice=e})}}render(){return this._zhaDevice?(0,a.qy)(s||(s=p` <ha-expansion-panel header="Zigbee info"> <div>Nwk: ${0}</div> <div>Device Type: ${0}</div> <div> LQI: ${0} </div> <div> RSSI: ${0} </div> <div> ${0}: ${0} </div> <div> ${0}: ${0} </div> ${0} </ha-expansion-panel> `),(0,o.b9)(this._zhaDevice.nwk),this._zhaDevice.device_type,this._zhaDevice.lqi||this.hass.localize("ui.dialogs.zha_device_info.unknown"),this._zhaDevice.rssi||this.hass.localize("ui.dialogs.zha_device_info.unknown"),this.hass.localize("ui.dialogs.zha_device_info.last_seen"),this._zhaDevice.last_seen||this.hass.localize("ui.dialogs.zha_device_info.unknown"),this.hass.localize("ui.dialogs.zha_device_info.power_source"),this._zhaDevice.power_source||this.hass.localize("ui.dialogs.zha_device_info.unknown"),this._zhaDevice.quirk_applied?(0,a.qy)(l||(l=p` <div> ${0}: ${0} </div> `),this.hass.localize("ui.dialogs.zha_device_info.quirk"),this._zhaDevice.quirk_class):""):a.s6}static get styles(){return[u.RF,(0,a.AH)(d||(d=p`h4{margin-bottom:4px}div{word-break:break-all;margin-top:2px}ha-expansion-panel{--expansion-panel-summary-padding:0;--expansion-panel-content-padding:0;padding-top:4px}`))]}}(0,t.Cg)([(0,r.MZ)({attribute:!1})],h.prototype,"hass",void 0),(0,t.Cg)([(0,r.MZ)({attribute:!1})],h.prototype,"device",void 0),(0,t.Cg)([(0,r.wk)()],h.prototype,"_zhaDevice",void 0),h=(0,t.Cg)([(0,r.EM)("ha-device-info-zha")],h)},31580:function(e,n,i){i.d(n,{J8:function(){return a},Rr:function(){return c},b9:function(){return t},iV:function(){return r}});i(94490);const t=e=>{let n=e;return"string"==typeof e&&(n=parseInt(e,16)),"0x"+n.toString(16).padStart(4,"0")},a=(e,n)=>{const i=e.user_given_name?e.user_given_name:e.name,t=n.user_given_name?n.user_given_name:n.name;return i.localeCompare(t)},r=(e,n)=>{const i=e.name,t=n.name;return i.localeCompare(t)},c=e=>`${e.name} (Endpoint id: ${e.endpoint_id}, Id: ${t(e.id)}, Type: ${e.type})`}}]);