iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
1 lines • 4.16 kB
JavaScript
;(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[71745],{14782:function(e,s,t){t.d(s,{Gw:function(){return o},Ow:function(){return d},YH:function(){return a},aK:function(){return n},hB:function(){return l},ij:function(){return c}});t(18111),t(22489);var i=t(59241);const n={conversation:{domain:"assist_pipeline",name:"Assist"},"cloud.alexa":{domain:"alexa",name:"Amazon Alexa"},"cloud.google_assistant":{domain:"google_assistant",name:"Google Assistant"}},a=(e,s,t)=>e.callWS({type:"homeassistant/expose_new_entities/set",assistant:s,expose_new:t}),o=(e,s)=>e.callWS({type:"homeassistant/expose_new_entities/get",assistant:s}),c=(e,s,t,i)=>e.callWS({type:"homeassistant/expose_entity",assistants:s,entity_ids:t,should_expose:i}),d=e=>e.callWS({type:"homeassistant/expose_entity/list"}),l=(e,s)=>{const t=(0,i.Ox)(e)[s];return Object.keys(n).filter(e=>{var s;return null==t||null===(s=t.options)||void 0===s||null===(s=s[e])||void 0===s?void 0:s.should_expose})}},72440:function(e,s,t){t.r(s),t.d(s,{voiceAssistantTabs:function(){return l}});t(3362),t(62953);var i=t(40445),n=t(35211),a=t(67576),o=t(22792),c=t(14782),d=t(324);const l=[{path:"/config/voice-assistants/assistants",translationKey:"ui.panel.config.voice_assistants.assistants.caption",iconPath:"M12,2A3,3 0 0,1 15,5V11A3,3 0 0,1 12,14A3,3 0 0,1 9,11V5A3,3 0 0,1 12,2M19,11C19,14.53 16.39,17.44 13,17.93V21H11V17.93C7.61,17.44 5,14.53 5,11H7A5,5 0 0,0 12,16A5,5 0 0,0 17,11H19Z"},{path:"/config/voice-assistants/expose",translationKey:"ui.panel.config.voice_assistants.expose.caption",iconPath:"M3 6H21V4H3C1.9 4 1 4.9 1 6V18C1 19.1 1.9 20 3 20H7V18H3V6M13 12H9V13.78C8.39 14.33 8 15.11 8 16C8 16.89 8.39 17.67 9 18.22V20H13V18.22C13.61 17.67 14 16.88 14 16S13.61 14.33 13 13.78V12M11 17.5C10.17 17.5 9.5 16.83 9.5 16S10.17 14.5 11 14.5 12.5 15.17 12.5 16 11.83 17.5 11 17.5M22 8H16C15.5 8 15 8.5 15 9V19C15 19.5 15.5 20 16 20H22C22.5 20 23 19.5 23 19V9C23 8.5 22.5 8 22 8M21 18H17V10H21V18Z"}];class r extends d.a{connectedCallback(){super.connectedCallback(),this.addEventListener("exposed-entities-changed",this._fetchExposedEntities)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("exposed-entities-changed",this._fetchExposedEntities)}updatePageEl(e){e.hass=this.hass,e.cloudStatus=this.cloudStatus,e.narrow=this.narrow,e.isWide=this.isWide,e.route=this.routeTail,e.exposedEntities=this._exposedEntities}willUpdate(e){e.has("_entities")&&this._fetchExposedEntities()}constructor(...e){super(...e),this.narrow=!1,this.isWide=!1,this.routerOptions={defaultPage:"assistants",routes:{assistants:{tag:"ha-config-voice-assistants-assistants",load:()=>Promise.all([t.e(72850),t.e(39763),t.e(32450),t.e(46095),t.e(34995),t.e(80131),t.e(70183),t.e(80214),t.e(62574),t.e(60195)]).then(t.bind(t,6684)),cache:!0},expose:{tag:"ha-config-voice-assistants-expose",load:()=>Promise.all([t.e(72850),t.e(39763),t.e(32450),t.e(46095),t.e(7305),t.e(34995),t.e(83113),t.e(43857),t.e(73253),t.e(62574),t.e(19112),t.e(30002),t.e(76607),t.e(94787)]).then(t.bind(t,43601))},debug:{tag:"assist-debug",load:()=>Promise.all([t.e(72850),t.e(39763),t.e(32450),t.e(46095),t.e(34995),t.e(72130),t.e(85010),t.e(11905),t.e(62574),t.e(34310),t.e(79662),t.e(33390)]).then(t.bind(t,30034))},assist:{tag:"ha-config-voice-assistants-assist-devices",load:()=>Promise.all([t.e(72850),t.e(39763),t.e(32450),t.e(30392),t.e(62574),t.e(19112),t.e(79829)]).then(t.bind(t,4032))}}},this._fetchExposedEntities=async()=>{this._exposedEntities=(await(0,c.Ow)(this.hass)).exposed_entities,this.lastChild&&(this.lastChild.exposedEntities=this._exposedEntities)}}}(0,i.Cg)([(0,a.MZ)({attribute:!1})],r.prototype,"hass",void 0),(0,i.Cg)([(0,a.MZ)({attribute:!1})],r.prototype,"cloudStatus",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean})],r.prototype,"narrow",void 0),(0,i.Cg)([(0,a.MZ)({attribute:"is-wide",type:Boolean})],r.prototype,"isWide",void 0),(0,i.Cg)([(0,a.wk)(),(0,n.Fg)({context:o.X1,subscribe:!0})],r.prototype,"_entities",void 0),(0,i.Cg)([(0,a.wk)()],r.prototype,"_exposedEntities",void 0),r=(0,i.Cg)([(0,a.EM)("ha-config-voice-assistants")],r)}}]);