@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
@@ -92,29 +92,35 @@ class ClosureControlClusterCommands extends BaseClusterCommands {
92
92
  <div class="command-content">
93
93
  <div class="top-row">
94
94
  <span class="state-badge ${mainState === MAIN_STATE_ERROR ? "error" : ""}">
95
- ${mainState !== null
96
- ? (MAIN_STATE_LABELS[mainState] ?? `Unknown (${mainState})`)
97
- : "Unknown"}
95
+ ${
96
+ mainState !== null
97
+ ? (MAIN_STATE_LABELS[mainState] ?? `Unknown (${mainState})`)
98
+ : "Unknown"
99
+ }
98
100
  </span>
99
- ${countdownTime !== null
100
- ? html`<span class="muted">~${countdownTime}s remaining</span>`
101
- : nothing}
101
+ ${
102
+ countdownTime !== null
103
+ ? html`<span class="muted">~${countdownTime}s remaining</span>`
104
+ : nothing
105
+ }
102
106
  </div>
103
107
 
104
- ${errors.length > 0
105
- ? html`
106
- <div class="errors">
107
- ${errors.map(
108
- e => html`
109
- <span class="error-chip">
110
- <ha-svg-icon .path=${mdiAlertCircle}></ha-svg-icon>
111
- ${CLOSURE_ERROR_LABELS[e] ?? `Error ${e}`}
112
- </span>
113
- `,
114
- )}
115
- </div>
116
- `
117
- : nothing}
108
+ ${
109
+ errors.length > 0
110
+ ? html`
111
+ <div class="errors">
112
+ ${errors.map(
113
+ e => html`
114
+ <span class="error-chip">
115
+ <ha-svg-icon .path=${mdiAlertCircle}></ha-svg-icon>
116
+ ${CLOSURE_ERROR_LABELS[e] ?? `Error ${e}`}
117
+ </span>
118
+ `,
119
+ )}
120
+ </div>
121
+ `
122
+ : nothing
123
+ }
118
124
 
119
125
  <div class="states-grid">
120
126
  <div class="state-block">
@@ -128,103 +134,117 @@ class ClosureControlClusterCommands extends BaseClusterCommands {
128
134
  </div>
129
135
 
130
136
  <div class="actions">
131
- ${!features.instantaneous
132
- ? html`<md-outlined-button @click=${handleAsync(() => this._handleStop())}>
133
- <ha-svg-icon slot="icon" .path=${mdiStop}></ha-svg-icon>
134
- Stop
135
- </md-outlined-button>`
136
- : nothing}
137
- ${features.calibration
138
- ? html`<md-outlined-button @click=${handleAsync(() => this._handleCalibrate())}>
139
- <ha-svg-icon slot="icon" .path=${mdiCogRefresh}></ha-svg-icon>
140
- Calibrate
141
- </md-outlined-button>`
142
- : nothing}
137
+ ${
138
+ !features.instantaneous
139
+ ? html`<md-outlined-button @click=${handleAsync(() => this._handleStop())}>
140
+ <ha-svg-icon slot="icon" .path=${mdiStop}></ha-svg-icon>
141
+ Stop
142
+ </md-outlined-button>`
143
+ : nothing
144
+ }
145
+ ${
146
+ features.calibration
147
+ ? html`<md-outlined-button @click=${handleAsync(() => this._handleCalibrate())}>
148
+ <ha-svg-icon slot="icon" .path=${mdiCogRefresh}></ha-svg-icon>
149
+ Calibrate
150
+ </md-outlined-button>`
151
+ : nothing
152
+ }
143
153
  </div>
144
154
 
145
155
  <div class="move-to">
146
156
  <div class="move-to-header">Move to</div>
147
157
  <div class="move-to-controls">
148
- ${features.positioning
149
- ? html`
150
- <md-outlined-select
151
- label="Position"
152
- .value=${this._moveToPosition}
153
- @change=${(e: Event) => {
154
- this._moveToPosition = (e.target as HTMLSelectElement).value;
155
- }}
156
- >
157
- <md-select-option value="">
158
- <div slot="headline">(unchanged)</div>
159
- </md-select-option>
160
- ${Object.entries(TARGET_POSITION_LABELS)
161
- .filter(
162
- ([id]) =>
163
- (id !== "2" || features.pedestrian) &&
164
- (id !== "3" || features.ventilation),
165
- )
166
- .map(
158
+ ${
159
+ features.positioning
160
+ ? html`
161
+ <md-outlined-select
162
+ label="Position"
163
+ .value=${this._moveToPosition}
164
+ @change=${(e: Event) => {
165
+ this._moveToPosition = (e.target as HTMLSelectElement).value;
166
+ }}
167
+ >
168
+ <md-select-option value="">
169
+ <div slot="headline">(unchanged)</div>
170
+ </md-select-option>
171
+ ${Object.entries(TARGET_POSITION_LABELS)
172
+ .filter(
173
+ ([id]) =>
174
+ (id !== "2" || features.pedestrian) &&
175
+ (id !== "3" || features.ventilation),
176
+ )
177
+ .map(
178
+ ([id, label]) => html`
179
+ <md-select-option value=${id}>
180
+ <div slot="headline">${label}</div>
181
+ </md-select-option>
182
+ `,
183
+ )}
184
+ </md-outlined-select>
185
+ `
186
+ : nothing
187
+ }
188
+ ${
189
+ features.motionLatching &&
190
+ (latchControlModes.remoteLatching || latchControlModes.remoteUnlatching)
191
+ ? html`
192
+ <md-outlined-select
193
+ label="Latch"
194
+ .value=${this._moveToLatch}
195
+ @change=${(e: Event) => {
196
+ this._moveToLatch = (e.target as HTMLSelectElement).value;
197
+ }}
198
+ >
199
+ <md-select-option value="">
200
+ <div slot="headline">(unchanged)</div>
201
+ </md-select-option>
202
+ ${
203
+ latchControlModes.remoteLatching
204
+ ? html`<md-select-option value="true">
205
+ <div slot="headline">Latch</div>
206
+ </md-select-option>`
207
+ : nothing
208
+ }
209
+ ${
210
+ latchControlModes.remoteUnlatching
211
+ ? html`<md-select-option value="false">
212
+ <div slot="headline">Unlatch</div>
213
+ </md-select-option>`
214
+ : nothing
215
+ }
216
+ </md-outlined-select>
217
+ `
218
+ : nothing
219
+ }
220
+ ${
221
+ features.speed
222
+ ? html`
223
+ <md-outlined-select
224
+ label="Speed"
225
+ .value=${this._moveToSpeed}
226
+ @change=${(e: Event) => {
227
+ this._moveToSpeed = (e.target as HTMLSelectElement).value;
228
+ }}
229
+ >
230
+ <md-select-option value="">
231
+ <div slot="headline">(unchanged)</div>
232
+ </md-select-option>
233
+ ${Object.entries(SPEED_LABELS).map(
167
234
  ([id, label]) => html`
168
235
  <md-select-option value=${id}>
169
236
  <div slot="headline">${label}</div>
170
237
  </md-select-option>
171
238
  `,
172
239
  )}
173
- </md-outlined-select>
174
- `
175
- : nothing}
176
- ${features.motionLatching &&
177
- (latchControlModes.remoteLatching || latchControlModes.remoteUnlatching)
178
- ? html`
179
- <md-outlined-select
180
- label="Latch"
181
- .value=${this._moveToLatch}
182
- @change=${(e: Event) => {
183
- this._moveToLatch = (e.target as HTMLSelectElement).value;
184
- }}
185
- >
186
- <md-select-option value="">
187
- <div slot="headline">(unchanged)</div>
188
- </md-select-option>
189
- ${latchControlModes.remoteLatching
190
- ? html`<md-select-option value="true">
191
- <div slot="headline">Latch</div>
192
- </md-select-option>`
193
- : nothing}
194
- ${latchControlModes.remoteUnlatching
195
- ? html`<md-select-option value="false">
196
- <div slot="headline">Unlatch</div>
197
- </md-select-option>`
198
- : nothing}
199
- </md-outlined-select>
200
- `
201
- : nothing}
202
- ${features.speed
203
- ? html`
204
- <md-outlined-select
205
- label="Speed"
206
- .value=${this._moveToSpeed}
207
- @change=${(e: Event) => {
208
- this._moveToSpeed = (e.target as HTMLSelectElement).value;
209
- }}
210
- >
211
- <md-select-option value="">
212
- <div slot="headline">(unchanged)</div>
213
- </md-select-option>
214
- ${Object.entries(SPEED_LABELS).map(
215
- ([id, label]) => html`
216
- <md-select-option value=${id}>
217
- <div slot="headline">${label}</div>
218
- </md-select-option>
219
- `,
220
- )}
221
- </md-outlined-select>
222
- `
223
- : nothing}
240
+ </md-outlined-select>
241
+ `
242
+ : nothing
243
+ }
224
244
  <md-filled-button
225
- ?disabled=${this._moveToPosition === "" &&
226
- this._moveToLatch === "" &&
227
- this._moveToSpeed === ""}
245
+ ?disabled=${
246
+ this._moveToPosition === "" && this._moveToLatch === "" && this._moveToSpeed === ""
247
+ }
228
248
  @click=${handleAsync(() => this._handleMoveTo())}
229
249
  >
230
250
  Move
@@ -241,40 +261,52 @@ class ClosureControlClusterCommands extends BaseClusterCommands {
241
261
  const positionLabels = "secureState" in state ? CURRENT_POSITION_LABELS : TARGET_POSITION_LABELS;
242
262
  return html`
243
263
  <div class="state-fields">
244
- ${features.positioning
245
- ? html`<div class="state-field">
246
- <span class="muted">Position:</span>
247
- <span>
248
- ${state.position !== null
249
- ? (positionLabels[state.position] ?? `#${state.position}`)
250
- : "Unknown"}
251
- </span>
252
- </div>`
253
- : nothing}
254
- ${features.motionLatching
255
- ? html`<div class="state-field">
256
- <span class="muted">Latch:</span>
257
- <span>${state.latch === null ? "Unknown" : state.latch ? "Latched" : "Unlatched"}</span>
258
- </div>`
259
- : nothing}
260
- ${features.speed
261
- ? html`<div class="state-field">
262
- <span class="muted">Speed:</span>
263
- <span
264
- >${state.speed !== null
265
- ? (SPEED_LABELS[state.speed] ?? `#${state.speed}`)
266
- : "Unknown"}</span
267
- >
268
- </div>`
269
- : nothing}
270
- ${"secureState" in state
271
- ? html`<div class="state-field">
272
- <span class="muted">Secure:</span>
273
- <span>
274
- ${state.secureState === null ? "Unknown" : state.secureState ? "Secure" : "Not secure"}
275
- </span>
276
- </div>`
277
- : nothing}
264
+ ${
265
+ features.positioning
266
+ ? html`<div class="state-field">
267
+ <span class="muted">Position:</span>
268
+ <span>
269
+ ${
270
+ state.position !== null
271
+ ? (positionLabels[state.position] ?? `#${state.position}`)
272
+ : "Unknown"
273
+ }
274
+ </span>
275
+ </div>`
276
+ : nothing
277
+ }
278
+ ${
279
+ features.motionLatching
280
+ ? html`<div class="state-field">
281
+ <span class="muted">Latch:</span>
282
+ <span>${state.latch === null ? "Unknown" : state.latch ? "Latched" : "Unlatched"}</span>
283
+ </div>`
284
+ : nothing
285
+ }
286
+ ${
287
+ features.speed
288
+ ? html`<div class="state-field">
289
+ <span class="muted">Speed:</span>
290
+ <span
291
+ >${
292
+ state.speed !== null
293
+ ? (SPEED_LABELS[state.speed] ?? `#${state.speed}`)
294
+ : "Unknown"
295
+ }</span
296
+ >
297
+ </div>`
298
+ : nothing
299
+ }
300
+ ${
301
+ "secureState" in state
302
+ ? html`<div class="state-field">
303
+ <span class="muted">Secure:</span>
304
+ <span>
305
+ ${state.secureState === null ? "Unknown" : state.secureState ? "Secure" : "Not secure"}
306
+ </span>
307
+ </div>`
308
+ : nothing
309
+ }
278
310
  </div>
279
311
  `;
280
312
  }
@@ -165,23 +165,27 @@ export class IcdManagementClusterCommands extends BaseClusterCommands {
165
165
  <summary>Power & Sleep (ICD)</summary>
166
166
  <div class="command-content">
167
167
  <p>This device saves power by sleeping between short check-in windows.</p>
168
- ${info.operatingMode === "LIT"
169
- ? html`<p class="info-banner">
170
- This device is currently in <b>Battery Saver Mode</b>: any action you trigger (commands,
171
- reads, re-subscriptions) may take up to <b>${this._idleText}</b> while the device sleeps.
172
- Updates reported by the device itself (e.g. sensor changes) are not delayed — the device
173
- wakes up on its own to report them.
174
- ${this.node.available
175
- ? nothing
176
- : html`<br /><b class="offline-line"
177
- >The device is currently offline — reconnecting on its own can take up to
178
- ${this._idleText}.</b
179
- >`}
180
- </p>`
181
- : html`<p>
182
- Current mode: <b>Standard</b> — the device sleeps between short check-ins and typically
183
- reacts within seconds to a few minutes.
184
- </p>`}
168
+ ${
169
+ info.operatingMode === "LIT"
170
+ ? html`<p class="info-banner">
171
+ This device is currently in <b>Battery Saver Mode</b>: any action you trigger
172
+ (commands, reads, re-subscriptions) may take up to <b>${this._idleText}</b> while the
173
+ device sleeps. Updates reported by the device itself (e.g. sensor changes) are not
174
+ delayed — the device wakes up on its own to report them.
175
+ ${
176
+ this.node.available
177
+ ? nothing
178
+ : html`<br /><b class="offline-line"
179
+ >The device is currently offline — reconnecting on its own can take
180
+ up to ${this._idleText}.</b
181
+ >`
182
+ }
183
+ </p>`
184
+ : html`<p>
185
+ Current mode: <b>Standard</b> — the device sleeps between short check-ins and
186
+ typically reacts within seconds to a few minutes.
187
+ </p>`
188
+ }
185
189
  ${info.features.userActiveModeTrigger ? this._renderWakeHint(info) : nothing}
186
190
  ${info.features.longIdleTimeSupport || this._registered ? this._renderIcdManagement() : nothing}
187
191
  </div>
@@ -268,10 +272,12 @@ export class IcdManagementClusterCommands extends BaseClusterCommands {
268
272
  Every ecosystem (e.g. Apple, Google) this device is paired with must support Battery Saver Mode (called
269
273
  Matter LIT (Long Idle Time) ICD). You can switch back to Standard Mode later as long as no other
270
274
  ecosystem is registered for it.
271
- ${!single && !this._registered
272
- ? html` This device is already paired with <b>${this._commissionedFabrics - 1}</b> other
273
- ecosystem(s).`
274
- : nothing}
275
+ ${
276
+ !single && !this._registered
277
+ ? html` This device is already paired with <b>${this._commissionedFabrics - 1}</b> other
278
+ ecosystem(s).`
279
+ : nothing
280
+ }
275
281
  </p>
276
282
  <div class="command-row">
277
283
  <md-filled-button
@@ -287,10 +293,12 @@ export class IcdManagementClusterCommands extends BaseClusterCommands {
287
293
  >
288
294
  Resync state
289
295
  </md-outlined-button>
290
- ${this._busy
291
- ? html`<md-circular-progress indeterminate></md-circular-progress>
292
- <span class="busy">${this._busyLabel}</span>`
293
- : nothing}
296
+ ${
297
+ this._busy
298
+ ? html`<md-circular-progress indeterminate></md-circular-progress>
299
+ <span class="busy">${this._busyLabel}</span>`
300
+ : nothing
301
+ }
294
302
  </div>
295
303
  `;
296
304
  }
@@ -314,13 +322,15 @@ export class IcdManagementClusterCommands extends BaseClusterCommands {
314
322
  </p>
315
323
  <p>
316
324
  <b>Important:</b>
317
- ${single
318
- ? html`every ecosystem (e.g. Apple, Google) you pair this device with later must support Battery
319
- Saver Mode (called Matter LIT (Long Idle Time) ICD). In an ecosystem without support the device
320
- will appear offline or unresponsive.`
321
- : html`this device is already paired with <b>${this._commissionedFabrics - 1}</b> other
322
- ecosystem(s). All of them must support Battery Saver Mode (called Matter LIT (Long Idle Time)
323
- ICD), otherwise the device will appear offline or unresponsive in those ecosystems.`}
325
+ ${
326
+ single
327
+ ? html`every ecosystem (e.g. Apple, Google) you pair this device with later must support Battery
328
+ Saver Mode (called Matter LIT (Long Idle Time) ICD). In an ecosystem without support the
329
+ device will appear offline or unresponsive.`
330
+ : html`this device is already paired with <b>${this._commissionedFabrics - 1}</b> other
331
+ ecosystem(s). All of them must support Battery Saver Mode (called Matter LIT (Long Idle
332
+ Time) ICD), otherwise the device will appear offline or unresponsive in those ecosystems.`
333
+ }
324
334
  </p>
325
335
  <p>
326
336
  You can switch back to Standard Mode later as long as no other ecosystem is registered for Battery Saver
@@ -129,22 +129,26 @@ export class DashboardHeader extends LitElement {
129
129
  aria-current=${this.activeView === "nodes" ? "page" : nothing}
130
130
  >Nodes</a
131
131
  >
132
- ${showThreadTab
133
- ? html`<a
134
- href="#thread"
135
- class="nav-tab ${this.activeView === "thread" ? "active" : ""}"
136
- aria-current=${this.activeView === "thread" ? "page" : nothing}
137
- >Thread</a
138
- >`
139
- : nothing}
140
- ${showWifiTab
141
- ? html`<a
142
- href="#wifi"
143
- class="nav-tab ${this.activeView === "wifi" ? "active" : ""}"
144
- aria-current=${this.activeView === "wifi" ? "page" : nothing}
145
- >WiFi</a
146
- >`
147
- : nothing}
132
+ ${
133
+ showThreadTab
134
+ ? html`<a
135
+ href="#thread"
136
+ class="nav-tab ${this.activeView === "thread" ? "active" : ""}"
137
+ aria-current=${this.activeView === "thread" ? "page" : nothing}
138
+ >Thread</a
139
+ >`
140
+ : nothing
141
+ }
142
+ ${
143
+ showWifiTab
144
+ ? html`<a
145
+ href="#wifi"
146
+ class="nav-tab ${this.activeView === "wifi" ? "active" : ""}"
147
+ aria-current=${this.activeView === "wifi" ? "page" : nothing}
148
+ >WiFi</a
149
+ >`
150
+ : nothing
151
+ }
148
152
  </nav>
149
153
  `;
150
154
  }
@@ -153,14 +157,16 @@ export class DashboardHeader extends LitElement {
153
157
  return html`
154
158
  <div class="header">
155
159
  <!-- optional back button -->
156
- ${this.backButton
157
- ? html` <md-icon-button title="Back" aria-label="Back" @click=${this._goBack}>
158
- <ha-svg-icon .path=${mdiArrowLeft}></ha-svg-icon>
159
- </md-icon-button>
160
- <md-icon-button title="Home" aria-label="Home" @click=${this._goHome}>
161
- <ha-svg-icon .path=${mdiHome}></ha-svg-icon>
162
- </md-icon-button>`
163
- : ""}
160
+ ${
161
+ this.backButton
162
+ ? html` <md-icon-button title="Back" aria-label="Back" @click=${this._goBack}>
163
+ <ha-svg-icon .path=${mdiArrowLeft}></ha-svg-icon>
164
+ </md-icon-button>
165
+ <md-icon-button title="Home" aria-label="Home" @click=${this._goHome}>
166
+ <ha-svg-icon .path=${mdiHome}></ha-svg-icon>
167
+ </md-icon-button>`
168
+ : ""
169
+ }
164
170
 
165
171
  <div class="title">${this.title ?? ""}</div>
166
172
  ${this._renderNavTabs()}
@@ -173,38 +179,44 @@ export class DashboardHeader extends LitElement {
173
179
  `;
174
180
  })}
175
181
  <!-- dev-mode badge (only when dev mode is active and a client exists) -->
176
- ${this._devMode && this.client
177
- ? html`
178
- <button
179
- class="dev-badge"
180
- @click=${this._openSettings}
181
- title="Developer mode active — click to open settings"
182
- aria-label="Developer mode active — click to open settings"
183
- >
184
- DEV
185
- </button>
186
- `
187
- : nothing}
182
+ ${
183
+ this._devMode && this.client
184
+ ? html`
185
+ <button
186
+ class="dev-badge"
187
+ @click=${this._openSettings}
188
+ title="Developer mode active — click to open settings"
189
+ aria-label="Developer mode active — click to open settings"
190
+ >
191
+ DEV
192
+ </button>
193
+ `
194
+ : nothing
195
+ }
188
196
  <!-- settings button (only when connected) -->
189
- ${this.client
190
- ? html`
191
- <md-icon-button @click=${this._openSettings} title="Settings">
192
- <ha-svg-icon .path=${mdiCog}></ha-svg-icon>
193
- </md-icon-button>
194
- `
195
- : nothing}
197
+ ${
198
+ this.client
199
+ ? html`
200
+ <md-icon-button @click=${this._openSettings} title="Settings">
201
+ <ha-svg-icon .path=${mdiCog}></ha-svg-icon>
202
+ </md-icon-button>
203
+ `
204
+ : nothing
205
+ }
196
206
  <!-- theme toggle button -->
197
207
  <md-icon-button @click=${this._cycleTheme} .title=${this._getThemeTooltip()}>
198
208
  <ha-svg-icon .path=${this._getThemeIcon()}></ha-svg-icon>
199
209
  </md-icon-button>
200
210
  <!-- optional logout button (only when client exists and not in production) -->
201
- ${this.client && !this.client.isProduction
202
- ? html`
203
- <md-icon-button @click=${this.client.disconnect}>
204
- <ha-svg-icon .path=${mdiLogout}></ha-svg-icon>
205
- </md-icon-button>
206
- `
207
- : nothing}
211
+ ${
212
+ this.client && !this.client.isProduction
213
+ ? html`
214
+ <md-icon-button @click=${this.client.disconnect}>
215
+ <ha-svg-icon .path=${mdiLogout}></ha-svg-icon>
216
+ </md-icon-button>
217
+ `
218
+ : nothing
219
+ }
208
220
  </div>
209
221
  </div>
210
222
  `;