UNPKG

iobroker.lovelace

Version:

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

1 lines 8.96 kB
"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[19203],{72001:function(e,r,n){n.d(r,{$D:function(){return oe},$O:function(){return ie},Bm:function(){return m},Cr:function(){return X},Cy:function(){return a},DE:function(){return u},DJ:function(){return S},El:function(){return G},Eo:function(){return K},GP:function(){return c},Hz:function(){return o},Is:function(){return y},JZ:function(){return A},Lx:function(){return H},MY:function(){return f},PY:function(){return $},RE:function(){return C},S0:function(){return V},SG:function(){return w},TH:function(){return I},Tx:function(){return P},U:function(){return B},VA:function(){return O},VL:function(){return s},Ve:function(){return ae},W6:function(){return N},YG:function(){return d},YP:function(){return W},Yn:function(){return j},Z1:function(){return re},Zp:function(){return E},aG:function(){return k},aL:function(){return _},au:function(){return l},dZ:function(){return v},fC:function(){return L},i4:function(){return R},iK:function(){return z},in:function(){return te},jF:function(){return Y},jT:function(){return q},lz:function(){return g},m:function(){return h},mQ:function(){return D},mR:function(){return J},mX:function(){return Q},of:function(){return ee},pN:function(){return ne},qN:function(){return M},re:function(){return Z},sb:function(){return T},tj:function(){return x},u1:function(){return i},wI:function(){return b},zI:function(){return p},zP:function(){return U},zb:function(){return F}});n(16280),n(3362);var t=n(37619),i=function(e){return e[e.Idle=0]="Idle",e[e.Including=1]="Including",e[e.Excluding=2]="Excluding",e[e.Busy=3]="Busy",e[e.SmartStart=4]="SmartStart",e}({}),a=function(e){return e[e.Default=0]="Default",e[e.SmartStart=1]="SmartStart",e[e.Insecure=2]="Insecure",e[e.Security_S0=3]="Security_S0",e[e.Security_S2=4]="Security_S2",e}({}),o=function(e){return e[e.Temporary=-2]="Temporary",e[e.None=-1]="None",e[e.S2_Unauthenticated=0]="S2_Unauthenticated",e[e.S2_Authenticated=1]="S2_Authenticated",e[e.S2_AccessControl=2]="S2_AccessControl",e[e.S0_Legacy=7]="S0_Legacy",e}({}),_=function(e){return e[e.SmartStart=0]="SmartStart",e}({}),c=function(e){return e[e.ZWave=0]="ZWave",e[e.ZWaveLongRange=1]="ZWaveLongRange",e}({}),s=function(e){return e[e.Error_Timeout=-1]="Error_Timeout",e[e.Error_Checksum=0]="Error_Checksum",e[e.Error_TransmissionFailed=1]="Error_TransmissionFailed",e[e.Error_InvalidManufacturerID=2]="Error_InvalidManufacturerID",e[e.Error_InvalidFirmwareID=3]="Error_InvalidFirmwareID",e[e.Error_InvalidFirmwareTarget=4]="Error_InvalidFirmwareTarget",e[e.Error_InvalidHeaderInformation=5]="Error_InvalidHeaderInformation",e[e.Error_InvalidHeaderFormat=6]="Error_InvalidHeaderFormat",e[e.Error_InsufficientMemory=7]="Error_InsufficientMemory",e[e.Error_InvalidHardwareVersion=8]="Error_InvalidHardwareVersion",e[e.OK_WaitingForActivation=253]="OK_WaitingForActivation",e[e.OK_NoRestart=254]="OK_NoRestart",e[e.OK_RestartPending=255]="OK_RestartPending",e}({}),u=function(e){return e[e.Error_Timeout=0]="Error_Timeout",e[e.Error_RetryLimitReached=1]="Error_RetryLimitReached",e[e.Error_Aborted=2]="Error_Aborted",e[e.Error_NotSupported=3]="Error_NotSupported",e[e.OK=255]="OK",e}({}),d=function(e){return e[e.Active=0]="Active",e[e.Inactive=1]="Inactive",e}({});var l=function(e){return e[e.NotAvailable=127]="NotAvailable",e[e.ReceiverSaturated=126]="ReceiverSaturated",e[e.NoSignalDetected=125]="NoSignalDetected",e}({}),v=function(e){return e[e.ZWave_9k6=1]="ZWave_9k6",e[e.ZWave_40k=2]="ZWave_40k",e[e.ZWave_100k=3]="ZWave_100k",e[e.LongRange_100k=4]="LongRange_100k",e}({}),p=function(e){return e[e.Unknown=0]="Unknown",e[e.Asleep=1]="Asleep",e[e.Awake=2]="Awake",e[e.Dead=3]="Dead",e[e.Alive=4]="Alive",e}({});const f=(e,r,n,t,i,a,o)=>e.callWS({type:"zwave_js/invoke_cc_api",device_id:r,command_class:n,endpoint:t,method_name:i,parameters:a,wait_for_result:o}),y=(e,r)=>{if(r.device_id&&r.entry_id)throw new Error("Only one of device or entry ID should be supplied.");if(!r.device_id&&!r.entry_id)throw new Error("Either device or entry ID should be supplied.");return(0,t.X)(e,{type:"zwave_js/network_status",device_id:r.device_id,entry_id:r.entry_id})},w=(e,r)=>e.callWS({type:"zwave_js/data_collection_status",entry_id:r}),g=(e,r,n)=>e.callWS({type:"zwave_js/update_data_collection_preference",entry_id:r,opted_in:n}),m=(e,r)=>e.callWS({type:"zwave_js/get_provisioning_entries",entry_id:r}),S=(e,r,n,t,i,a,o,_=0)=>e.connection.subscribeMessage(e=>n(e),{type:"zwave_js/add_node",entry_id:r,inclusion_strategy:_,qr_code_string:i,qr_provisioning_information:t,planned_provisioning_entry:a,dsk:o}),b=(e,r)=>e.callWS({type:"zwave_js/stop_inclusion",entry_id:r}),z=(e,r,n,t)=>e.callWS({type:"zwave_js/grant_security_classes",entry_id:r,securityClasses:n,clientSideAuth:t}),j=(e,r,n)=>e.callWS({type:"zwave_js/try_parse_dsk_from_qr_code_string",entry_id:r,qr_code_string:n}),W=(e,r,n)=>e.callWS({type:"zwave_js/validate_dsk_and_enter_pin",entry_id:r,pin:n}),E=(e,r,n)=>e.callWS({type:"zwave_js/supports_feature",entry_id:r,feature:n}),I=(e,r,n)=>e.callWS({type:"zwave_js/parse_qr_code_string",entry_id:r,qr_code_string:n}),h=(e,r,n,t,i,a)=>e.callWS({type:"zwave_js/lookup_device",entry_id:r,manufacturerId:n,productType:t,productId:i,applicationVersion:a}),k=(e,r,n,t,i,a)=>e.callWS({type:"zwave_js/provision_smart_start_node",entry_id:r,qr_provisioning_information:n,protocol:t,device_name:i,area_id:a}),A=(e,r,n,t)=>e.callWS({type:"zwave_js/unprovision_smart_start_node",entry_id:r,dsk:n,node_id:t}),M=(e,r,n)=>e.connection.subscribeMessage(e=>n(e),{type:"zwave_js/subscribe_new_devices",entry_id:r}),D=(e,r)=>e.callWS({type:"zwave_js/node_status",device_id:r}),R=(e,r)=>e.callWS({type:"zwave_js/node_capabilities",device_id:r}),T=(e,r,n)=>e.connection.subscribeMessage(e=>n(e),{type:"zwave_js/subscribe_node_status",device_id:r}),Z=(e,r)=>e.callWS({type:"zwave_js/node_metadata",device_id:r}),F=(e,r)=>e.callWS({type:"zwave_js/node_alerts",device_id:r}),N=(e,r)=>e.callWS({type:"zwave_js/get_config_parameters",device_id:r}),L=(e,r,n,t,i,a)=>{const o={type:"zwave_js/set_config_parameter",device_id:r,property:n,endpoint:t,value:i,property_key:a};return e.callWS(o)},O=(e,r,n,t,i,a)=>{const o={type:"zwave_js/set_raw_config_parameter",device_id:r,property:n,value:t,value_size:i,value_format:a};return e.callWS(o)},C=(e,r,n)=>e.callWS({type:"zwave_js/get_raw_config_parameter",device_id:r,property:n}).then(e=>e.value),K=(e,r,n)=>e.connection.subscribeMessage(e=>n(e),{type:"zwave_js/refresh_node_info",device_id:r}),q=(e,r)=>e.callWS({type:"zwave_js/rebuild_node_routes",device_id:r}),x=(e,r,n)=>e.connection.subscribeMessage(e=>n(e),{type:"zwave_js/remove_failed_node",device_id:r}),H=(e,r)=>(0,t.X)(e,{type:"zwave_js/begin_rebuilding_routes",entry_id:r}),P=(e,r)=>(0,t.X)(e,{type:"zwave_js/stop_rebuilding_routes",entry_id:r}),V=(e,r,n)=>e.subscribeMessage(e=>n(e),{type:"zwave_js/subscribe_rebuild_routes_progress",entry_id:r}),U=(e,r,n)=>e.connection.subscribeMessage(e=>n(e),{type:"zwave_js/subscribe_controller_statistics",entry_id:r}),Y=(e,r,n)=>e.connection.subscribeMessage(e=>n(e),{type:"zwave_js/subscribe_node_statistics",device_id:r}),G=(e,r,n)=>e.connection.subscribeMessage(e=>n(e),{type:"zwave_js/subscribe_s2_inclusion",entry_id:r}),X=(e,r)=>e.callWS({type:"zwave_js/is_node_firmware_update_in_progress",device_id:r}),B=(e,r)=>e.callWS({type:"zwave_js/is_any_ota_firmware_update_in_progress",entry_id:r}),$=(e,r)=>e.callWS({type:"zwave_js/hard_reset_controller",entry_id:r}),J=async(e,r,n,t,i)=>{const a=new FormData;a.append("file",n),void 0!==t&&a.append("target",t.toString());const o=await e.fetchWithAuth(`/api/zwave_js/firmware/upload/${r}`,{method:"POST",body:a,signal:i});if(200!==o.status)throw new Error(o.statusText)},Q=(e,r,n)=>e.connection.subscribeMessage(e=>n(e),{type:"zwave_js/subscribe_firmware_update_status",device_id:r}),ee=(e,r)=>e.callWS({type:"zwave_js/abort_firmware_update",device_id:r}),re=(e,r,n)=>e.connection.subscribeMessage(n,{type:"zwave_js/backup_nvm",entry_id:r}),ne=(e,r,n,t)=>e.connection.subscribeMessage(t,{type:"zwave_js/restore_nvm",entry_id:r,data:n}),te=(e,r,n)=>e.connection.subscribeMessage(n,{type:"zwave_js/subscribe_log_updates",entry_id:r}),ie=(e,r)=>e.callWS({type:"zwave_js/get_log_config",entry_id:r}),ae=(e,r,n)=>e.callWS({type:"zwave_js/update_log_config",entry_id:r,config:{level:n}}),oe=(e,r)=>e.callWS({type:"zwave_js/cancel_secure_bootstrap_s2",entry_id:r})},10958:function(e,r,n){n.d(r,{getZwaveDeviceAlerts:function(){return i}});n(44114),n(18111),n(61701),n(3362),n(62953);var t=n(72001);const i=async(e,r)=>{var n;const i=await(0,t.zb)(e,r.id),a=[];return!1===(null==i?void 0:i.is_embedded)&&a.push({level:"info",text:e.localize("ui.panel.config.zwave_js.device_info.custom_device_config")}),null!=i&&null!==(n=i.comments)&&void 0!==n&&n.length?(a.push(...i.comments.map(e=>({level:e.level,text:e.text}))),a):a}}}]);