UNPKG

zwave-js-ui

Version:

Z-Wave Control Panel and MQTT Gateway

2 lines (1 loc) 4.89 kB
import{_ as m,e as g,z as p,w as l,b as t,F as b,V as w,ai as y,i as v,l as V,k as a,ac as h,R as n,ax as i,b1 as s,H as f,ag as P,a7 as k}from"./index-DwzE-W2i.js";import{V as B}from"./VDataTable-D8DZXD9Y.js";import"./sort-C8HQTCiq.js";import"./VTable-Cxuwit5L.js";const C={props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{headers:[{title:"Rating",key:"rating",sortable:!1},{title:"Failed pings",key:"failedPings",sortable:!1},{title:"Max latency (*)",key:"latency",sortable:!1},{title:"No. of Neighbors",key:"neighbors",sortable:!1},{title:"SNR margin (*)",key:"snrMargin",sortable:!1},{title:"Min power level w/o errors",key:"minPowerlevel",sortable:!1}],values:[{rating:10,failedPings:0,latency:"≤ 50 ms",neighbors:"> 2",snrMargin:"≥ 17dBm",minPowerlevel:"≤ -6dBm"},{rating:9,failedPings:0,latency:"≤ 100 ms",neighbors:"> 2",snrMargin:"≥ 17dBm",minPowerlevel:"≤ -6dBm"},{rating:8,failedPings:0,latency:"≤ 100 ms",neighbors:"≤ 2",snrMargin:"≥ 17dBm",minPowerlevel:"≤ -6dBm"},{rating:7,failedPings:0,latency:"≤ 100ms",neighbors:"> 2"},{rating:6,failedPings:0,latency:"≤ 100ms",neighbors:"≤ 2"},{rating:5,failedPings:0,latency:"≤ 250ms"},{rating:4,failedPings:0,latency:"≤ 500 ms"},{rating:3,failedPings:1,latency:"≤ 1000ms"},{rating:2,failedPings:"≤ 2",latency:"> 1000ms"},{rating:1,failedPings:"≤ 9"},{rating:0,failedPings:10}]}},computed:{_value:{get(){return this.modelValue},set(d){this.$emit("update:modelValue",d)}}}};function L(d,e,x,N,u,o){return p(),g(k,{fullscreen:"",onKeydown:e[1]||(e[1]=P(r=>o._value=!1,["esc"])),modelValue:o._value,"onUpdate:modelValue":e[2]||(e[2]=r=>o._value=r)},{default:l(()=>[t(b,{class:"fill"},{default:l(()=>[t(w,null,{default:l(()=>[t(y),t(v,{class:"ma-3",icon:"","aria-label":"Close dialog",onClick:e[0]||(e[0]=r=>o._value=!1)},{default:l(()=>[t(V,null,{default:l(()=>[...e[3]||(e[3]=[a("close",-1)])]),_:1})]),_:1})]),_:1}),t(h,{density:"compact"},{default:l(()=>[t(n,null,{default:l(()=>[t(i,null,{default:l(()=>[...e[4]||(e[4]=[a("Route changes",-1)])]),_:1}),t(s,null,{default:l(()=>[...e[5]||(e[5]=[a("How many times at least one new route was needed. Lower = better, ideally 0. Only available if the controller supports TX reports",-1)])]),_:1})]),_:1}),t(n,null,{default:l(()=>[t(i,null,{default:l(()=>[...e[6]||(e[6]=[a("Latency",-1)])]),_:1}),t(s,null,{default:l(()=>[...e[7]||(e[7]=[a("The maximum time it took to send a ping to the node. Lower = better, ideally 10 ms. Will use the time in TX reports if available, otherwise fall back to measuring the round trip time.",-1)])]),_:1})]),_:1}),t(n,null,{default:l(()=>[t(i,null,{default:l(()=>[...e[8]||(e[8]=[a("No. Neighbors",-1)])]),_:1}),t(s,null,{default:l(()=>[...e[9]||(e[9]=[a("How many routing neighbors this node has. Higher = better, ideally > 2",-1)])]),_:1})]),_:1}),t(n,null,{default:l(()=>[t(i,null,{default:l(()=>[...e[10]||(e[10]=[a("Failed Pings node",-1)])]),_:1}),t(s,null,{default:l(()=>[...e[11]||(e[11]=[a("How many pings were not ACKed by the node. Lower = better, ideally 0.",-1)])]),_:1})]),_:1}),t(n,null,{default:l(()=>[t(i,null,{default:l(()=>[...e[12]||(e[12]=[a("Min Power Level",-1)])]),_:1}),t(s,null,{default:l(()=>[...e[13]||(e[13]=[a("The minimum powerlevel where all pings from the (source) node were ACKed by the target node / controller. Lower = better, ideally -6dBm or less. Only available if the (source) node supports Powerlevel CC",-1)])]),_:1})]),_:1}),t(n,null,{default:l(()=>[t(i,null,{default:l(()=>[...e[14]||(e[14]=[a("Failed pings Controller",-1)])]),_:1}),t(s,null,{default:l(()=>[...e[15]||(e[15]=[a("If no powerlevel was found where the controller ACKed all pings from the node, this contains the number of pings that weren't ACKed. Lower = better, ideally 0.",-1)])]),_:1})]),_:1}),t(n,null,{default:l(()=>[t(i,null,{default:l(()=>[...e[16]||(e[16]=[a("SNR Margin",-1)])]),_:1}),t(s,null,{default:l(()=>[...e[17]||(e[17]=[a("An estimation of the Signal-to-Noise Ratio Margin in dBm. Only available if the controller supports TX reports.",-1)])]),_:1})]),_:1}),t(n,null,{default:l(()=>[t(i,null,{default:l(()=>[...e[18]||(e[18]=[a("Rating",-1)])]),_:1})]),_:1})]),_:1}),t(B,{headers:u.headers,items:u.values,class:"elevation-1","mobile-breakpoint":0,"hide-default-footer":"","disable-pagination":""},{footer:l(()=>[...e[19]||(e[19]=[f("p",{class:"mb-0 text-caption"},[f("code",null,"*"),a(" Due to missing insight into re-routing attempts between two nodes, some of the values for the for the route check rating don't exist here and are only present in lifeline checks (when target node is the controller). Furthermore, it is not guaranteed that a route between two nodes and lifeline with the same health rating have the same quality. ")],-1)])]),_:1},8,["headers","items"])]),_:1})]),_:1},8,["modelValue"])}const I=m(C,[["render",L]]);export{I as default};