UNPKG

iobroker.lovelace

Version:

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

1 lines 7.97 kB
export const __rspack_esm_id=19203;export const __rspack_esm_ids=[19203];export const __webpack_modules__={72001(e,r,t){t.d(r,{$D:()=>_e,$O:()=>ae,Bm:()=>S,Cr:()=>X,Cy:()=>n,DE:()=>d,DJ:()=>b,El:()=>G,Eo:()=>K,GP:()=>o,Hz:()=>_,Is:()=>w,JZ:()=>A,Lx:()=>H,MY:()=>y,PY:()=>$,RE:()=>O,S0:()=>V,SG:()=>g,TH:()=>I,Tx:()=>P,U:()=>B,VA:()=>L,VL:()=>c,Ve:()=>ne,W6:()=>N,YG:()=>l,YP:()=>W,Yn:()=>j,Z1:()=>re,Zp:()=>E,aG:()=>k,aL:()=>s,au:()=>u,dZ:()=>v,fC:()=>x,i4:()=>R,iK:()=>z,in:()=>ie,jF:()=>Y,jT:()=>q,lz:()=>m,m:()=>h,mQ:()=>D,mR:()=>J,mX:()=>Q,of:()=>ee,pN:()=>te,qN:()=>M,re:()=>Z,sb:()=>T,tj:()=>C,u1:()=>a,wI:()=>f,zI:()=>p,zP:()=>U,zb:()=>F});var i=t(37619),a=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}({}),n=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}({}),_=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}({}),s=function(e){return e[e.SmartStart=0]="SmartStart",e}({}),o=function(e){return e[e.ZWave=0]="ZWave",e[e.ZWaveLongRange=1]="ZWaveLongRange",e}({}),c=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}({}),d=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}({}),l=function(e){return e[e.Active=0]="Active",e[e.Inactive=1]="Inactive",e}({});var u=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 y=(e,r,t,i,a,n,_)=>e.callWS({type:"zwave_js/invoke_cc_api",device_id:r,command_class:t,endpoint:i,method_name:a,parameters:n,wait_for_result:_}),w=(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,i.X)(e,{type:"zwave_js/network_status",device_id:r.device_id,entry_id:r.entry_id})},g=(e,r)=>e.callWS({type:"zwave_js/data_collection_status",entry_id:r}),m=(e,r,t)=>e.callWS({type:"zwave_js/update_data_collection_preference",entry_id:r,opted_in:t}),S=(e,r)=>e.callWS({type:"zwave_js/get_provisioning_entries",entry_id:r}),b=(e,r,t,i,a,n,_,s=0)=>e.connection.subscribeMessage(e=>t(e),{type:"zwave_js/add_node",entry_id:r,inclusion_strategy:s,qr_code_string:a,qr_provisioning_information:i,planned_provisioning_entry:n,dsk:_}),f=(e,r)=>e.callWS({type:"zwave_js/stop_inclusion",entry_id:r}),z=(e,r,t,i)=>e.callWS({type:"zwave_js/grant_security_classes",entry_id:r,securityClasses:t,clientSideAuth:i}),j=(e,r,t)=>e.callWS({type:"zwave_js/try_parse_dsk_from_qr_code_string",entry_id:r,qr_code_string:t}),W=(e,r,t)=>e.callWS({type:"zwave_js/validate_dsk_and_enter_pin",entry_id:r,pin:t}),E=(e,r,t)=>e.callWS({type:"zwave_js/supports_feature",entry_id:r,feature:t}),I=(e,r,t)=>e.callWS({type:"zwave_js/parse_qr_code_string",entry_id:r,qr_code_string:t}),h=(e,r,t,i,a,n)=>e.callWS({type:"zwave_js/lookup_device",entry_id:r,manufacturerId:t,productType:i,productId:a,applicationVersion:n}),k=(e,r,t,i,a,n)=>e.callWS({type:"zwave_js/provision_smart_start_node",entry_id:r,qr_provisioning_information:t,protocol:i,device_name:a,area_id:n}),A=(e,r,t,i)=>e.callWS({type:"zwave_js/unprovision_smart_start_node",entry_id:r,dsk:t,node_id:i}),M=(e,r,t)=>e.connection.subscribeMessage(e=>t(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,t)=>e.connection.subscribeMessage(e=>t(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}),x=(e,r,t,i,a,n)=>{const _={type:"zwave_js/set_config_parameter",device_id:r,property:t,endpoint:i,value:a,property_key:n};return e.callWS(_)},L=(e,r,t,i,a,n)=>{const _={type:"zwave_js/set_raw_config_parameter",device_id:r,property:t,value:i,value_size:a,value_format:n};return e.callWS(_)},O=(e,r,t)=>e.callWS({type:"zwave_js/get_raw_config_parameter",device_id:r,property:t}).then(e=>e.value),K=(e,r,t)=>e.connection.subscribeMessage(e=>t(e),{type:"zwave_js/refresh_node_info",device_id:r}),q=(e,r)=>e.callWS({type:"zwave_js/rebuild_node_routes",device_id:r}),C=(e,r,t)=>e.connection.subscribeMessage(e=>t(e),{type:"zwave_js/remove_failed_node",device_id:r}),H=(e,r)=>(0,i.X)(e,{type:"zwave_js/begin_rebuilding_routes",entry_id:r}),P=(e,r)=>(0,i.X)(e,{type:"zwave_js/stop_rebuilding_routes",entry_id:r}),V=(e,r,t)=>e.subscribeMessage(e=>t(e),{type:"zwave_js/subscribe_rebuild_routes_progress",entry_id:r}),U=(e,r,t)=>e.connection.subscribeMessage(e=>t(e),{type:"zwave_js/subscribe_controller_statistics",entry_id:r}),Y=(e,r,t)=>e.connection.subscribeMessage(e=>t(e),{type:"zwave_js/subscribe_node_statistics",device_id:r}),G=(e,r,t)=>e.connection.subscribeMessage(e=>t(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,t,i,a)=>{const n=new FormData;n.append("file",t),void 0!==i&&n.append("target",i.toString());const _=await e.fetchWithAuth(`/api/zwave_js/firmware/upload/${r}`,{method:"POST",body:n,signal:a});if(200!==_.status)throw new Error(_.statusText)},Q=(e,r,t)=>e.connection.subscribeMessage(e=>t(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,t)=>e.connection.subscribeMessage(t,{type:"zwave_js/backup_nvm",entry_id:r}),te=(e,r,t,i)=>e.connection.subscribeMessage(i,{type:"zwave_js/restore_nvm",entry_id:r,data:t}),ie=(e,r,t)=>e.connection.subscribeMessage(t,{type:"zwave_js/subscribe_log_updates",entry_id:r}),ae=(e,r)=>e.callWS({type:"zwave_js/get_log_config",entry_id:r}),ne=(e,r,t)=>e.callWS({type:"zwave_js/update_log_config",entry_id:r,config:{level:t}}),_e=(e,r)=>e.callWS({type:"zwave_js/cancel_secure_bootstrap_s2",entry_id:r})},10958(e,r,t){t.d(r,{getZwaveDeviceAlerts:()=>a});t(44114),t(18111),t(61701);var i=t(72001);const a=async(e,r)=>{const t=await(0,i.zb)(e,r.id),a=[];return!1===t?.is_embedded&&a.push({level:"info",text:e.localize("ui.panel.config.zwave_js.device_info.custom_device_config")}),t?.comments?.length?(a.push(...t.comments.map(e=>({level:e.level,text:e.text}))),a):a}}};