@matter-server/dashboard 1.3.2 → 1.4.0-alpha.0-20260731-b3e9b92

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/dist/esm/components/avsum-ptz-strip.d.ts.map +1 -1
  2. package/dist/esm/components/avsum-ptz-strip.js +75 -75
  3. package/dist/esm/components/avsum-ptz-strip.js.map +1 -1
  4. package/dist/esm/components/dialog-box/dialog-box.d.ts.map +1 -1
  5. package/dist/esm/components/dialog-box/dialog-box.js +6 -4
  6. package/dist/esm/components/dialog-box/dialog-box.js.map +1 -1
  7. package/dist/esm/components/dialogs/acl/node-acl-add-dialog.d.ts.map +1 -1
  8. package/dist/esm/components/dialogs/acl/node-acl-add-dialog.js +15 -15
  9. package/dist/esm/components/dialogs/acl/node-acl-add-dialog.js.map +1 -1
  10. package/dist/esm/components/dialogs/binding/node-binding-dialog.d.ts.map +1 -1
  11. package/dist/esm/components/dialogs/binding/node-binding-dialog.js +37 -37
  12. package/dist/esm/components/dialogs/binding/node-binding-dialog.js.map +1 -1
  13. package/dist/esm/components/dialogs/commission-node-dialog/commission-node-dialog.d.ts.map +1 -1
  14. package/dist/esm/components/dialogs/commission-node-dialog/commission-node-dialog.js +16 -16
  15. package/dist/esm/components/dialogs/commission-node-dialog/commission-node-dialog.js.map +1 -1
  16. package/dist/esm/components/dialogs/commission-node-dialog/commission-node-thread.d.ts.map +1 -1
  17. package/dist/esm/components/dialogs/commission-node-dialog/commission-node-thread.js +13 -13
  18. package/dist/esm/components/dialogs/commission-node-dialog/commission-node-thread.js.map +1 -1
  19. package/dist/esm/components/dialogs/commission-node-dialog/commission-node-wifi.d.ts.map +1 -1
  20. package/dist/esm/components/dialogs/commission-node-dialog/commission-node-wifi.js +13 -13
  21. package/dist/esm/components/dialogs/commission-node-dialog/commission-node-wifi.js.map +1 -1
  22. package/dist/esm/components/dialogs/dev/attribute-write-dialog.d.ts.map +1 -1
  23. package/dist/esm/components/dialogs/dev/attribute-write-dialog.js.map +1 -1
  24. package/dist/esm/components/dialogs/dev/command-invoke-dialog.d.ts.map +1 -1
  25. package/dist/esm/components/dialogs/dev/command-invoke-dialog.js +3 -3
  26. package/dist/esm/components/dialogs/dev/command-invoke-dialog.js.map +1 -1
  27. package/dist/esm/components/dialogs/settings/log-level-section.d.ts.map +1 -1
  28. package/dist/esm/components/dialogs/settings/log-level-section.js +14 -14
  29. package/dist/esm/components/dialogs/settings/log-level-section.js.map +1 -1
  30. package/dist/esm/components/dialogs/settings/settings-dialog.d.ts.map +1 -1
  31. package/dist/esm/components/dialogs/settings/settings-dialog.js +83 -81
  32. package/dist/esm/components/dialogs/settings/settings-dialog.js.map +1 -1
  33. package/dist/esm/components/webrtc-stream-view.d.ts.map +1 -1
  34. package/dist/esm/components/webrtc-stream-view.js +11 -11
  35. package/dist/esm/components/webrtc-stream-view.js.map +1 -1
  36. package/dist/esm/pages/camera-overlay.d.ts.map +1 -1
  37. package/dist/esm/pages/camera-overlay.js +90 -87
  38. package/dist/esm/pages/camera-overlay.js.map +1 -1
  39. package/dist/esm/pages/cluster-commands/clusters/access-control-commands.d.ts.map +1 -1
  40. package/dist/esm/pages/cluster-commands/clusters/access-control-commands.js +27 -27
  41. package/dist/esm/pages/cluster-commands/clusters/access-control-commands.js.map +1 -1
  42. package/dist/esm/pages/cluster-commands/clusters/avsum-commands.d.ts.map +1 -1
  43. package/dist/esm/pages/cluster-commands/clusters/avsum-commands.js +130 -129
  44. package/dist/esm/pages/cluster-commands/clusters/avsum-commands.js.map +1 -1
  45. package/dist/esm/pages/cluster-commands/clusters/basic-information-commands.d.ts.map +1 -1
  46. package/dist/esm/pages/cluster-commands/clusters/basic-information-commands.js.map +1 -1
  47. package/dist/esm/pages/cluster-commands/clusters/binding-commands.d.ts.map +1 -1
  48. package/dist/esm/pages/cluster-commands/clusters/binding-commands.js +13 -13
  49. package/dist/esm/pages/cluster-commands/clusters/binding-commands.js.map +1 -1
  50. package/dist/esm/pages/cluster-commands/clusters/chime-commands.d.ts.map +1 -1
  51. package/dist/esm/pages/cluster-commands/clusters/chime-commands.js +18 -18
  52. package/dist/esm/pages/cluster-commands/clusters/chime-commands.js.map +1 -1
  53. package/dist/esm/pages/cluster-commands/clusters/closure-control-commands.d.ts.map +1 -1
  54. package/dist/esm/pages/cluster-commands/clusters/closure-control-commands.js +79 -79
  55. package/dist/esm/pages/cluster-commands/clusters/closure-control-commands.js.map +1 -1
  56. package/dist/esm/pages/cluster-commands/clusters/icd-management-commands.d.ts.map +1 -1
  57. package/dist/esm/pages/cluster-commands/clusters/icd-management-commands.js +18 -18
  58. package/dist/esm/pages/cluster-commands/clusters/icd-management-commands.js.map +1 -1
  59. package/dist/esm/pages/components/header.d.ts.map +1 -1
  60. package/dist/esm/pages/components/header.js +32 -32
  61. package/dist/esm/pages/components/header.js.map +1 -1
  62. package/dist/esm/pages/components/node-details.d.ts.map +1 -1
  63. package/dist/esm/pages/components/node-details.js +43 -42
  64. package/dist/esm/pages/components/node-details.js.map +1 -1
  65. package/dist/esm/pages/matter-cluster-view.d.ts.map +1 -1
  66. package/dist/esm/pages/matter-cluster-view.js +49 -49
  67. package/dist/esm/pages/matter-cluster-view.js.map +1 -1
  68. package/dist/esm/pages/matter-endpoint-view.d.ts.map +1 -1
  69. package/dist/esm/pages/matter-endpoint-view.js +6 -6
  70. package/dist/esm/pages/matter-endpoint-view.js.map +1 -1
  71. package/dist/esm/pages/matter-network-view.d.ts.map +1 -1
  72. package/dist/esm/pages/matter-network-view.js +20 -20
  73. package/dist/esm/pages/matter-network-view.js.map +1 -1
  74. package/dist/esm/pages/matter-node-view.d.ts.map +1 -1
  75. package/dist/esm/pages/matter-node-view.js +9 -5
  76. package/dist/esm/pages/matter-node-view.js.map +1 -1
  77. package/dist/esm/pages/matter-server-view.d.ts.map +1 -1
  78. package/dist/esm/pages/matter-server-view.js +6 -6
  79. package/dist/esm/pages/matter-server-view.js.map +1 -1
  80. package/dist/esm/pages/network/device-panel.d.ts.map +1 -1
  81. package/dist/esm/pages/network/device-panel.js +10 -10
  82. package/dist/esm/pages/network/device-panel.js.map +1 -1
  83. package/dist/esm/pages/network/network-details.d.ts.map +1 -1
  84. package/dist/esm/pages/network/network-details.js +384 -382
  85. package/dist/esm/pages/network/network-details.js.map +1 -1
  86. package/dist/esm/pages/network/network-types.d.ts +2 -0
  87. package/dist/esm/pages/network/network-types.d.ts.map +1 -1
  88. package/dist/esm/pages/network/network-utils.d.ts +6 -0
  89. package/dist/esm/pages/network/network-utils.d.ts.map +1 -1
  90. package/dist/esm/pages/network/network-utils.js +19 -0
  91. package/dist/esm/pages/network/network-utils.js.map +1 -1
  92. package/dist/esm/pages/network/thread-graph.d.ts.map +1 -1
  93. package/dist/esm/pages/network/thread-graph.js +29 -0
  94. package/dist/esm/pages/network/thread-graph.js.map +1 -1
  95. package/dist/esm/pages/network/update-connections-dialog.d.ts.map +1 -1
  96. package/dist/esm/pages/network/update-connections-dialog.js +30 -30
  97. package/dist/esm/pages/network/update-connections-dialog.js.map +1 -1
  98. package/dist/esm/pages/network/wifi-graph.d.ts.map +1 -1
  99. package/dist/esm/pages/network/wifi-graph.js +8 -3
  100. package/dist/esm/pages/network/wifi-graph.js.map +1 -1
  101. package/dist/web/js/{attribute-write-dialog-0cxaSZB5.js → attribute-write-dialog-B9dYGu9N.js} +1 -1
  102. package/dist/web/js/{command-invoke-dialog-_8bFD1ig.js → command-invoke-dialog-CtdnXvQA.js} +4 -4
  103. package/dist/web/js/{commission-node-dialog-V9V2umsa.js → commission-node-dialog-DsTmLvPW.js} +21 -21
  104. package/dist/web/js/{commission-node-existing-fdDrRxoL.js → commission-node-existing-DXRsQcBB.js} +1 -1
  105. package/dist/web/js/{commission-node-thread-CQEWKKOl.js → commission-node-thread-BTsVfxhO.js} +14 -14
  106. package/dist/web/js/{commission-node-wifi-BPNdhbb9.js → commission-node-wifi-NZG3H3EN.js} +14 -14
  107. package/dist/web/js/{dialog-box-82Jr5Nw_.js → dialog-box-DyiiDVC8.js} +7 -5
  108. package/dist/web/js/{fabric-label-dialog-D4Us5kQC.js → fabric-label-dialog-CJRaau1M.js} +1 -1
  109. package/dist/web/js/main.js +1 -1
  110. package/dist/web/js/{matter-dashboard-app-ZHThIPO5.js → matter-dashboard-app-C8yMEJLg.js} +1116 -1048
  111. package/dist/web/js/{node-acl-add-dialog-CQysaUCt.js → node-acl-add-dialog-DzfMP3s7.js} +16 -16
  112. package/dist/web/js/{node-binding-dialog-BFp0rWiU.js → node-binding-dialog-PFA2RQHk.js} +38 -38
  113. package/dist/web/js/{node-label-dialog-BJ2n0-fu.js → node-label-dialog-ChfP0ppl.js} +1 -1
  114. package/dist/web/js/{settings-dialog-DE0vIsq8.js → settings-dialog-CUmSf475.js} +98 -96
  115. package/package.json +3 -3
  116. package/src/components/avsum-ptz-strip.ts +109 -100
  117. package/src/components/dialog-box/dialog-box.ts +20 -12
  118. package/src/components/dialogs/acl/node-acl-add-dialog.ts +35 -29
  119. package/src/components/dialogs/binding/node-binding-dialog.ts +78 -66
  120. package/src/components/dialogs/commission-node-dialog/commission-node-dialog.ts +25 -23
  121. package/src/components/dialogs/commission-node-dialog/commission-node-thread.ts +22 -20
  122. package/src/components/dialogs/commission-node-dialog/commission-node-wifi.ts +22 -20
  123. package/src/components/dialogs/dev/attribute-write-dialog.ts +5 -3
  124. package/src/components/dialogs/dev/command-invoke-dialog.ts +13 -9
  125. package/src/components/dialogs/settings/log-level-section.ts +21 -19
  126. package/src/components/dialogs/settings/settings-dialog.ts +141 -115
  127. package/src/components/webrtc-stream-view.ts +30 -22
  128. package/src/pages/camera-overlay.ts +165 -132
  129. package/src/pages/cluster-commands/clusters/access-control-commands.ts +42 -36
  130. package/src/pages/cluster-commands/clusters/avsum-commands.ts +210 -187
  131. package/src/pages/cluster-commands/clusters/basic-information-commands.ts +5 -3
  132. package/src/pages/cluster-commands/clusters/binding-commands.ts +21 -19
  133. package/src/pages/cluster-commands/clusters/chime-commands.ts +48 -40
  134. package/src/pages/cluster-commands/clusters/closure-control-commands.ts +171 -139
  135. package/src/pages/cluster-commands/clusters/icd-management-commands.ts +42 -32
  136. package/src/pages/components/header.ts +62 -50
  137. package/src/pages/components/node-details.ts +87 -72
  138. package/src/pages/matter-cluster-view.ts +92 -78
  139. package/src/pages/matter-endpoint-view.ts +11 -9
  140. package/src/pages/matter-network-view.ts +36 -30
  141. package/src/pages/matter-node-view.ts +14 -8
  142. package/src/pages/matter-server-view.ts +11 -9
  143. package/src/pages/network/device-panel.ts +20 -18
  144. package/src/pages/network/network-details.ts +758 -618
  145. package/src/pages/network/network-types.ts +2 -0
  146. package/src/pages/network/network-utils.ts +26 -0
  147. package/src/pages/network/thread-graph.ts +47 -3
  148. package/src/pages/network/update-connections-dialog.ts +64 -52
  149. package/src/pages/network/wifi-graph.ts +7 -2
@@ -103,26 +103,30 @@ export class NodeDetails extends LitElement {
103
103
  <ha-svg-icon slot="start" class="device-icon" .path=${getDeviceIcon(this.node)}></ha-svg-icon>
104
104
  <div slot="headline" class="node-label-row">
105
105
  <b>${this.node.nodeLabel || "Node Info"}</b>
106
- ${this.node.available
107
- ? html`
108
- <md-icon-button
109
- @click=${() => this._editNodeLabel()}
110
- aria-label="Edit node label"
111
- title="Edit node label"
112
- >
113
- <ha-svg-icon .path=${mdiPencil}></ha-svg-icon>
114
- </md-icon-button>
115
- `
116
- : nothing}
106
+ ${
107
+ this.node.available
108
+ ? html`
109
+ <md-icon-button
110
+ @click=${() => this._editNodeLabel()}
111
+ aria-label="Edit node label"
112
+ title="Edit node label"
113
+ >
114
+ <ha-svg-icon .path=${mdiPencil}></ha-svg-icon>
115
+ </md-icon-button>
116
+ `
117
+ : nothing
118
+ }
117
119
  ${this.node.available ? nothing : html` <span class="status">OFFLINE</span>`}
118
- ${badge
119
- ? html`<a
120
- class="icd-badge icd-${badge.state}"
121
- href="#node/${this.node.node_id}/0/${ICD_CLUSTER_ID}"
122
- title=${badge.hint}
123
- >ICD</a
124
- >`
125
- : nothing}
120
+ ${
121
+ badge
122
+ ? html`<a
123
+ class="icd-badge icd-${badge.state}"
124
+ href="#node/${this.node.node_id}/0/${ICD_CLUSTER_ID}"
125
+ title=${badge.hint}
126
+ >ICD</a
127
+ >`
128
+ : nothing
129
+ }
126
130
  </div>
127
131
  </md-list-item>
128
132
  <md-list-item>
@@ -136,54 +140,62 @@ export class NodeDetails extends LitElement {
136
140
  </div>
137
141
  <div slot="supporting-text"><span class="left">Is bridge: </span>${this.node.is_bridge}</div>
138
142
  <div slot="supporting-text"><span class="left">Serialnumber: </span>${this.node.serialNumber}</div>
139
- ${this.node.matter_version
140
- ? html`<div slot="supporting-text">
141
- <span class="left">Matter version: </span>${this.node.matter_version}
142
- </div>`
143
- : nothing}
144
- ${this.node.is_bridge
145
- ? ""
146
- : html` <div slot="supporting-text">
147
- <span class="left">All device types: </span>${getNodeDeviceTypes(this.node)
148
- .map(deviceType => {
149
- return deviceType.label;
150
- })
151
- .join(" / ")}
152
- </div>`}
143
+ ${
144
+ this.node.matter_version
145
+ ? html`<div slot="supporting-text">
146
+ <span class="left">Matter version: </span>${this.node.matter_version}
147
+ </div>`
148
+ : nothing
149
+ }
150
+ ${
151
+ this.node.is_bridge
152
+ ? ""
153
+ : html` <div slot="supporting-text">
154
+ <span class="left">All device types: </span>${getNodeDeviceTypes(this.node)
155
+ .map(deviceType => {
156
+ return deviceType.label;
157
+ })
158
+ .join(" / ")}
159
+ </div>`
160
+ }
153
161
  </md-list-item>
154
162
  <md-list-item>
155
163
  <div class="btn-row">
156
164
  <md-outlined-button @click=${handleAsync(() => this._reinterview())}
157
165
  >Interview<ha-svg-icon slot="icon" .path=${mdiChatProcessing}></ha-svg-icon
158
166
  ></md-outlined-button>
159
- ${this._updateInitiated
160
- ? html` <md-outlined-button disabled
161
- >Checking for updates<ha-svg-icon slot="icon" .path=${mdiUpdate}></ha-svg-icon
162
- ></md-outlined-button>`
163
- : (this.node.updateState ?? 0) > 1
164
- ? html` <md-outlined-button disabled
165
- >${getUpdateStateLabel(
166
- this.node.updateState!,
167
- this.node.updateStateProgress,
168
- )}<ha-svg-icon slot="icon" .path=${mdiUpdate}></ha-svg-icon
169
- ></md-outlined-button>`
170
- : html`<md-outlined-button @click=${handleAsync(() => this._searchUpdate())}
171
- >Update<ha-svg-icon slot="icon" .path=${mdiUpdate}></ha-svg-icon
172
- ></md-outlined-button>`}
173
- ${isCamera
174
- ? html`
175
- <md-outlined-button
176
- @click=${() => this._openCameraOverlay()}
177
- ?disabled=${!this.node.available}
178
- >
179
- ${isAudioOnly ? "Listen" : isLiveViewCamera ? "Live View" : "Snapshot"}
180
- <ha-svg-icon
181
- slot="icon"
182
- .path=${isAudioOnly ? mdiMicrophone : isLiveViewCamera ? mdiVideo : mdiCamera}
183
- ></ha-svg-icon>
184
- </md-outlined-button>
185
- `
186
- : nothing}
167
+ ${
168
+ this._updateInitiated
169
+ ? html` <md-outlined-button disabled
170
+ >Checking for updates<ha-svg-icon slot="icon" .path=${mdiUpdate}></ha-svg-icon
171
+ ></md-outlined-button>`
172
+ : (this.node.updateState ?? 0) > 1
173
+ ? html` <md-outlined-button disabled
174
+ >${getUpdateStateLabel(
175
+ this.node.updateState!,
176
+ this.node.updateStateProgress,
177
+ )}<ha-svg-icon slot="icon" .path=${mdiUpdate}></ha-svg-icon
178
+ ></md-outlined-button>`
179
+ : html`<md-outlined-button @click=${handleAsync(() => this._searchUpdate())}
180
+ >Update<ha-svg-icon slot="icon" .path=${mdiUpdate}></ha-svg-icon
181
+ ></md-outlined-button>`
182
+ }
183
+ ${
184
+ isCamera
185
+ ? html`
186
+ <md-outlined-button
187
+ @click=${() => this._openCameraOverlay()}
188
+ ?disabled=${!this.node.available}
189
+ >
190
+ ${isAudioOnly ? "Listen" : isLiveViewCamera ? "Live View" : "Snapshot"}
191
+ <ha-svg-icon
192
+ slot="icon"
193
+ .path=${isAudioOnly ? mdiMicrophone : isLiveViewCamera ? mdiVideo : mdiCamera}
194
+ ></ha-svg-icon>
195
+ </md-outlined-button>
196
+ `
197
+ : nothing
198
+ }
187
199
  <md-outlined-button @click=${handleAsync(() => this._openCommissioningWindow())}
188
200
  >Share<ha-svg-icon slot="icon" .path=${mdiShareVariant}></ha-svg-icon
189
201
  ></md-outlined-button>
@@ -280,23 +292,26 @@ export class NodeDetails extends LitElement {
280
292
  !(await showPromptDialog({
281
293
  title: "Firmware update available",
282
294
  text: html`Found a firmware update for this node on <b>${nodeUpdate.update_source}</b>.
283
- ${isUnverifiedSource
284
- ? html`
285
- <p
286
- style="
295
+ ${
296
+ isUnverifiedSource
297
+ ? html`
298
+ <p
299
+ style="
287
300
  background: var(--md-sys-color-error, #b3261e);
288
301
  color: var(--md-sys-color-on-error, #fff);
289
302
  padding: 8px 12px;
290
303
  border-radius: 4px;
291
304
  font-weight: bold;
292
305
  "
293
- >
294
- Warning: This update was found on an unverified source. Updates from test-net or local
295
- sources have not been certified and may contain untested firmware that could result in
296
- non-functional devices. Applying these updates is entirely at your own risk.
297
- </p>
298
- `
299
- : nothing}
306
+ >
307
+ Warning: This update was found on an unverified source. Updates from test-net or
308
+ local sources have not been certified and may contain untested firmware that could
309
+ result in non-functional devices. Applying these updates is entirely at your own
310
+ risk.
311
+ </p>
312
+ `
313
+ : nothing
314
+ }
300
315
  <p>
301
316
  Current version: <b>${this._formatSoftwareVersion()}</b><br />
302
317
  Do you want to update this node to version
@@ -177,26 +177,32 @@ class MatterClusterView extends LitElement {
177
177
  (attribute, index) => html`
178
178
  <md-list-item class=${index % 2 === 1 ? "alternate-row" : ""}>
179
179
  <div slot="headline">
180
- ${clusters[this.cluster!]?.attributes[attribute.key]?.label ??
181
- "Custom/Unknown Attribute"}
180
+ ${
181
+ clusters[this.cluster!]?.attributes[attribute.key]?.label ??
182
+ "Custom/Unknown Attribute"
183
+ }
182
184
  </div>
183
185
  <div slot="supporting-text">
184
186
  AttributeId: ${attribute.key} (${formatHex(attribute.key)}) - Value type:
185
187
  ${clusters[this.cluster!]?.attributes[attribute.key]?.type ?? "unknown"}
186
188
  </div>
187
189
  <div slot="end" class="row-end">
188
- ${this._devMode
189
- ? this._renderAttributeDevActions(attribute.key, attribute.value)
190
- : nothing}
191
- ${toBigIntAwareJson(attribute.value).length > 30
192
- ? html`<md-outlined-button
193
- @click=${() => {
194
- this._showAttributeValue(attribute.value);
195
- }}
196
- >
197
- Show value
198
- </md-outlined-button>`
199
- : html`<code>${toBigIntAwareJson(attribute.value)}</code>`}
190
+ ${
191
+ this._devMode
192
+ ? this._renderAttributeDevActions(attribute.key, attribute.value)
193
+ : nothing
194
+ }
195
+ ${
196
+ toBigIntAwareJson(attribute.value).length > 30
197
+ ? html`<md-outlined-button
198
+ @click=${() => {
199
+ this._showAttributeValue(attribute.value);
200
+ }}
201
+ >
202
+ Show value
203
+ </md-outlined-button>`
204
+ : html`<code>${toBigIntAwareJson(attribute.value)}</code>`
205
+ }
200
206
  </div>
201
207
  </md-list-item>
202
208
  `,
@@ -223,19 +229,21 @@ class MatterClusterView extends LitElement {
223
229
  >
224
230
  <ha-svg-icon .path=${mdiRefresh}></ha-svg-icon>
225
231
  </md-outlined-icon-button>
226
- ${meta?.writable
227
- ? html`
228
- <md-outlined-icon-button
229
- class="dev-action pencil"
230
- title="Write attribute…"
231
- aria-label="Write attribute"
232
- ?disabled=${!online}
233
- @click=${() => this._openAttributeWriteDialog(attributeId, currentValue, meta.label)}
234
- >
235
- <ha-svg-icon .path=${mdiPencil}></ha-svg-icon>
236
- </md-outlined-icon-button>
237
- `
238
- : nothing}
232
+ ${
233
+ meta?.writable
234
+ ? html`
235
+ <md-outlined-icon-button
236
+ class="dev-action pencil"
237
+ title="Write attribute…"
238
+ aria-label="Write attribute"
239
+ ?disabled=${!online}
240
+ @click=${() => this._openAttributeWriteDialog(attributeId, currentValue, meta.label)}
241
+ >
242
+ <ha-svg-icon .path=${mdiPencil}></ha-svg-icon>
243
+ </md-outlined-icon-button>
244
+ `
245
+ : nothing
246
+ }
239
247
  </span>
240
248
  `;
241
249
  }
@@ -308,33 +316,35 @@ class MatterClusterView extends LitElement {
308
316
  Commands
309
317
  </summary>
310
318
  <div class="dev-commands-content">
311
- ${commands.length === 0
312
- ? html`<p class="empty">No invokable commands for this cluster.</p>`
313
- : html`
314
- <ul class="command-list">
315
- ${commands.map(
316
- cmd => html`
317
- <li class="command-row">
318
- <div class="command-meta">
319
- <span class="command-label">${cmd.label}</span>
320
- <span class="command-sub"
321
- >CommandId ${cmd.id} (${formatHex(cmd.id)}) ·
322
- <code>${cmd.name}</code></span
319
+ ${
320
+ commands.length === 0
321
+ ? html`<p class="empty">No invokable commands for this cluster.</p>`
322
+ : html`
323
+ <ul class="command-list">
324
+ ${commands.map(
325
+ cmd => html`
326
+ <li class="command-row">
327
+ <div class="command-meta">
328
+ <span class="command-label">${cmd.label}</span>
329
+ <span class="command-sub"
330
+ >CommandId ${cmd.id} (${formatHex(cmd.id)}) ·
331
+ <code>${cmd.name}</code></span
332
+ >
333
+ </div>
334
+ <md-outlined-button
335
+ class="dev-invoke-button"
336
+ ?disabled=${!online}
337
+ @click=${() => this._openCommandInvokeDialog(cmd.id, cmd.name)}
323
338
  >
324
- </div>
325
- <md-outlined-button
326
- class="dev-invoke-button"
327
- ?disabled=${!online}
328
- @click=${() => this._openCommandInvokeDialog(cmd.id, cmd.name)}
329
- >
330
- <ha-svg-icon slot="icon" .path=${mdiPlay}></ha-svg-icon>
331
- Invoke
332
- </md-outlined-button>
333
- </li>
334
- `,
335
- )}
336
- </ul>
337
- `}
339
+ <ha-svg-icon slot="icon" .path=${mdiPlay}></ha-svg-icon>
340
+ Invoke
341
+ </md-outlined-button>
342
+ </li>
343
+ `,
344
+ )}
345
+ </ul>
346
+ `
347
+ }
338
348
  </div>
339
349
  </details>
340
350
  </div>
@@ -382,19 +392,21 @@ class MatterClusterView extends LitElement {
382
392
  return html`
383
393
  <div class="info-section">
384
394
  <div class="info-section-header">Active Features</div>
385
- ${activeFeatures.length === 0
386
- ? html`<p class="empty">No active features</p>`
387
- : html`
388
- <ul class="chip-list">
389
- ${activeFeatures.map(
390
- feature => html`
391
- <li class="chip" title="Bit ${feature.bit} (${feature.code})">
392
- ${feature.label}
393
- </li>
394
- `,
395
- )}
396
- </ul>
397
- `}
395
+ ${
396
+ activeFeatures.length === 0
397
+ ? html`<p class="empty">No active features</p>`
398
+ : html`
399
+ <ul class="chip-list">
400
+ ${activeFeatures.map(
401
+ feature => html`
402
+ <li class="chip" title="Bit ${feature.bit} (${feature.code})">
403
+ ${feature.label}
404
+ </li>
405
+ `,
406
+ )}
407
+ </ul>
408
+ `
409
+ }
398
410
  </div>
399
411
  `;
400
412
  }
@@ -409,18 +421,20 @@ class MatterClusterView extends LitElement {
409
421
  return html`
410
422
  <div class="info-section">
411
423
  <div class="info-section-header">Semantic Tags (TagList)</div>
412
- ${tagList.length === 0
413
- ? html`<p class="empty">No semantic tags</p>`
414
- : html`
415
- <ul class="chip-list">
416
- ${tagList.map(entry => {
417
- const { text, title, erroneous } = describeSemanticTagListEntry(entry);
418
- return html`<li class=${erroneous ? "chip chip-error" : "chip"} title=${title}>
419
- ${text}
420
- </li>`;
421
- })}
422
- </ul>
423
- `}
424
+ ${
425
+ tagList.length === 0
426
+ ? html`<p class="empty">No semantic tags</p>`
427
+ : html`
428
+ <ul class="chip-list">
429
+ ${tagList.map(entry => {
430
+ const { text, title, erroneous } = describeSemanticTagListEntry(entry);
431
+ return html`<li class=${erroneous ? "chip chip-error" : "chip"} title=${title}>
432
+ ${text}
433
+ </li>`;
434
+ })}
435
+ </ul>
436
+ `
437
+ }
424
438
  </div>
425
439
  `;
426
440
  }
@@ -91,15 +91,17 @@ class MatterEndpointView extends LitElement {
91
91
  </div>
92
92
 
93
93
  <!-- Binding editor (when this endpoint has a Binding cluster) -->
94
- ${getUniqueClusters(this.node, this.endpoint).includes(30)
95
- ? html`<div class="container">
96
- <binding-cluster-commands
97
- .node=${this.node}
98
- .endpoint=${this.endpoint}
99
- .cluster=${30}
100
- ></binding-cluster-commands>
101
- </div>`
102
- : nothing}
94
+ ${
95
+ getUniqueClusters(this.node, this.endpoint).includes(30)
96
+ ? html`<div class="container">
97
+ <binding-cluster-commands
98
+ .node=${this.node}
99
+ .endpoint=${this.endpoint}
100
+ .cluster=${30}
101
+ ></binding-cluster-commands>
102
+ </div>`
103
+ : nothing
104
+ }
103
105
 
104
106
  <!-- Endpoint clusters listing -->
105
107
  <div class="container">
@@ -354,29 +354,31 @@ class MatterNetworkView extends LitElement {
354
354
  >
355
355
  <ha-svg-icon .path=${mdiEyeOff}></ha-svg-icon>
356
356
  </button>
357
- ${this._showHideMenu
358
- ? html`
359
- <div
360
- id="hide-options-menu"
361
- class="hide-dropdown"
362
- role="group"
363
- aria-label="Hide options"
364
- >
365
- ${HIDE_OPTIONS.map(
366
- option => html`
367
- <label class="hide-option">
368
- <input
369
- type="checkbox"
370
- .checked=${this[option.key]}
371
- @change=${() => this._handleToggleHideOption(option.key)}
372
- />
373
- <span>${option.label}</span>
374
- </label>
375
- `,
376
- )}
377
- </div>
378
- `
379
- : ""}
357
+ ${
358
+ this._showHideMenu
359
+ ? html`
360
+ <div
361
+ id="hide-options-menu"
362
+ class="hide-dropdown"
363
+ role="group"
364
+ aria-label="Hide options"
365
+ >
366
+ ${HIDE_OPTIONS.map(
367
+ option => html`
368
+ <label class="hide-option">
369
+ <input
370
+ type="checkbox"
371
+ .checked=${this[option.key]}
372
+ @change=${() => this._handleToggleHideOption(option.key)}
373
+ />
374
+ <span>${option.label}</span>
375
+ </label>
376
+ `,
377
+ )}
378
+ </div>
379
+ `
380
+ : ""
381
+ }
380
382
  </div>
381
383
  <button
382
384
  class="control-button ${this._physicsEnabled ? "" : "active"}"
@@ -388,13 +390,17 @@ class MatterNetworkView extends LitElement {
388
390
  </div>
389
391
  </div>
390
392
  </div>
391
- ${this._threadAddressSearchStatus === "idle"
392
- ? ""
393
- : html`<div class="thread-search-status ${this._threadAddressSearchStatus}">
394
- ${this._threadAddressSearchStatus === "found"
395
- ? "Node highlighted."
396
- : "No matching device found."}
397
- </div>`}
393
+ ${
394
+ this._threadAddressSearchStatus === "idle"
395
+ ? ""
396
+ : html`<div class="thread-search-status ${this._threadAddressSearchStatus}">
397
+ ${
398
+ this._threadAddressSearchStatus === "found"
399
+ ? "Node highlighted."
400
+ : "No matching device found."
401
+ }
402
+ </div>`
403
+ }
398
404
  <thread-graph
399
405
  .nodes=${this.nodes}
400
406
  .borderRouters=${this._borderRouterStore.entries}
@@ -83,14 +83,20 @@ class MatterNodeView extends LitElement {
83
83
  <div class="node-title-bar">
84
84
  <ha-svg-icon class="node-icon" .path=${getDeviceIcon(this.node)}></ha-svg-icon>
85
85
  <h2>Node ${this.node.node_id} <span class="node-id-hex">${nodeHex}</span></h2>
86
- ${showGraphButton
87
- ? html`
88
- <a href=${graphUrl} class="show-in-graph-button" title="Show in ${graphViewType} graph">
89
- <ha-svg-icon .path=${mdiGraphOutline}></ha-svg-icon>
90
- <span class="button-text">Show in graph</span>
91
- </a>
92
- `
93
- : ""}
86
+ ${
87
+ showGraphButton
88
+ ? html`
89
+ <a
90
+ href=${graphUrl}
91
+ class="show-in-graph-button"
92
+ title="Show in ${graphViewType} graph"
93
+ >
94
+ <ha-svg-icon .path=${mdiGraphOutline}></ha-svg-icon>
95
+ <span class="button-text">Show in graph</span>
96
+ </a>
97
+ `
98
+ : ""
99
+ }
94
100
  </div>
95
101
  <node-details .node=${this.node}></node-details>
96
102
  </div>
@@ -105,15 +105,17 @@ class MatterServerView extends LitElement {
105
105
  )})</span
106
106
  >
107
107
  ${node.available ? "" : html` <span class="status">OFFLINE</span>`}
108
- ${badge
109
- ? html`<a
110
- class="icd-badge icd-${badge.state}"
111
- href="#node/${node.node_id}/0/${ICD_CLUSTER_ID}"
112
- title=${badge.hint}
113
- @click=${(e: Event) => e.stopPropagation()}
114
- >ICD</a
115
- >`
116
- : ""}
108
+ ${
109
+ badge
110
+ ? html`<a
111
+ class="icd-badge icd-${badge.state}"
112
+ href="#node/${node.node_id}/0/${ICD_CLUSTER_ID}"
113
+ title=${badge.hint}
114
+ @click=${(e: Event) => e.stopPropagation()}
115
+ >ICD</a
116
+ >`
117
+ : ""
118
+ }
117
119
  </div>
118
120
  <div slot="supporting-text">
119
121
  ${node.nodeLabel ? `${node.nodeLabel} | ` : nothing} ${node.vendorName} |