@matter-server/dashboard 1.3.3 → 1.4.0-alpha.0-20260802-ac0d816
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.
- package/dist/esm/client/models/descriptions.d.ts.map +1 -1
- package/dist/esm/client/models/descriptions.js +67 -62
- package/dist/esm/client/models/descriptions.js.map +1 -1
- package/dist/esm/components/avsum-ptz-strip.d.ts.map +1 -1
- package/dist/esm/components/avsum-ptz-strip.js +75 -75
- package/dist/esm/components/avsum-ptz-strip.js.map +1 -1
- package/dist/esm/components/dialog-box/dialog-box.d.ts.map +1 -1
- package/dist/esm/components/dialog-box/dialog-box.js +6 -4
- package/dist/esm/components/dialog-box/dialog-box.js.map +1 -1
- package/dist/esm/components/dialogs/acl/acl-actions.d.ts.map +1 -1
- package/dist/esm/components/dialogs/acl/acl-actions.js +11 -4
- package/dist/esm/components/dialogs/acl/acl-actions.js.map +1 -1
- package/dist/esm/components/dialogs/acl/node-acl-add-dialog.d.ts.map +1 -1
- package/dist/esm/components/dialogs/acl/node-acl-add-dialog.js +15 -15
- package/dist/esm/components/dialogs/acl/node-acl-add-dialog.js.map +1 -1
- package/dist/esm/components/dialogs/binding/binding-actions.d.ts +8 -3
- package/dist/esm/components/dialogs/binding/binding-actions.d.ts.map +1 -1
- package/dist/esm/components/dialogs/binding/binding-actions.js +45 -11
- package/dist/esm/components/dialogs/binding/binding-actions.js.map +1 -1
- package/dist/esm/components/dialogs/binding/node-binding-dialog.d.ts.map +1 -1
- package/dist/esm/components/dialogs/binding/node-binding-dialog.js +37 -37
- package/dist/esm/components/dialogs/binding/node-binding-dialog.js.map +1 -1
- package/dist/esm/components/dialogs/commission-node-dialog/commission-node-dialog.d.ts.map +1 -1
- package/dist/esm/components/dialogs/commission-node-dialog/commission-node-dialog.js +16 -16
- package/dist/esm/components/dialogs/commission-node-dialog/commission-node-dialog.js.map +1 -1
- package/dist/esm/components/dialogs/commission-node-dialog/commission-node-thread.d.ts.map +1 -1
- package/dist/esm/components/dialogs/commission-node-dialog/commission-node-thread.js +13 -13
- package/dist/esm/components/dialogs/commission-node-dialog/commission-node-thread.js.map +1 -1
- package/dist/esm/components/dialogs/commission-node-dialog/commission-node-wifi.d.ts.map +1 -1
- package/dist/esm/components/dialogs/commission-node-dialog/commission-node-wifi.js +13 -13
- package/dist/esm/components/dialogs/commission-node-dialog/commission-node-wifi.js.map +1 -1
- package/dist/esm/components/dialogs/dev/attribute-write-dialog.d.ts.map +1 -1
- package/dist/esm/components/dialogs/dev/attribute-write-dialog.js +5 -1
- package/dist/esm/components/dialogs/dev/attribute-write-dialog.js.map +1 -1
- package/dist/esm/components/dialogs/dev/command-invoke-dialog.d.ts.map +1 -1
- package/dist/esm/components/dialogs/dev/command-invoke-dialog.js +3 -3
- package/dist/esm/components/dialogs/dev/command-invoke-dialog.js.map +1 -1
- package/dist/esm/components/dialogs/settings/log-level-section.d.ts.map +1 -1
- package/dist/esm/components/dialogs/settings/log-level-section.js +14 -14
- package/dist/esm/components/dialogs/settings/log-level-section.js.map +1 -1
- package/dist/esm/components/dialogs/settings/settings-dialog.d.ts.map +1 -1
- package/dist/esm/components/dialogs/settings/settings-dialog.js +83 -81
- package/dist/esm/components/dialogs/settings/settings-dialog.js.map +1 -1
- package/dist/esm/components/webrtc-stream-view.d.ts.map +1 -1
- package/dist/esm/components/webrtc-stream-view.js +11 -11
- package/dist/esm/components/webrtc-stream-view.js.map +1 -1
- package/dist/esm/pages/camera-overlay.d.ts.map +1 -1
- package/dist/esm/pages/camera-overlay.js +90 -87
- package/dist/esm/pages/camera-overlay.js.map +1 -1
- package/dist/esm/pages/cluster-commands/clusters/access-control-commands.d.ts.map +1 -1
- package/dist/esm/pages/cluster-commands/clusters/access-control-commands.js +32 -28
- package/dist/esm/pages/cluster-commands/clusters/access-control-commands.js.map +1 -1
- package/dist/esm/pages/cluster-commands/clusters/avsum-commands.d.ts.map +1 -1
- package/dist/esm/pages/cluster-commands/clusters/avsum-commands.js +130 -129
- package/dist/esm/pages/cluster-commands/clusters/avsum-commands.js.map +1 -1
- package/dist/esm/pages/cluster-commands/clusters/basic-information-commands.d.ts.map +1 -1
- package/dist/esm/pages/cluster-commands/clusters/basic-information-commands.js.map +1 -1
- package/dist/esm/pages/cluster-commands/clusters/binding-commands.d.ts.map +1 -1
- package/dist/esm/pages/cluster-commands/clusters/binding-commands.js +32 -30
- package/dist/esm/pages/cluster-commands/clusters/binding-commands.js.map +1 -1
- package/dist/esm/pages/cluster-commands/clusters/chime-commands.d.ts +5 -0
- package/dist/esm/pages/cluster-commands/clusters/chime-commands.d.ts.map +1 -1
- package/dist/esm/pages/cluster-commands/clusters/chime-commands.js +45 -24
- package/dist/esm/pages/cluster-commands/clusters/chime-commands.js.map +1 -1
- package/dist/esm/pages/cluster-commands/clusters/closure-control-commands.d.ts.map +1 -1
- package/dist/esm/pages/cluster-commands/clusters/closure-control-commands.js +79 -79
- package/dist/esm/pages/cluster-commands/clusters/closure-control-commands.js.map +1 -1
- package/dist/esm/pages/cluster-commands/clusters/icd-management-commands.d.ts.map +1 -1
- package/dist/esm/pages/cluster-commands/clusters/icd-management-commands.js +27 -20
- package/dist/esm/pages/cluster-commands/clusters/icd-management-commands.js.map +1 -1
- package/dist/esm/pages/components/header.d.ts.map +1 -1
- package/dist/esm/pages/components/header.js +32 -32
- package/dist/esm/pages/components/header.js.map +1 -1
- package/dist/esm/pages/components/node-details.d.ts.map +1 -1
- package/dist/esm/pages/components/node-details.js +43 -42
- package/dist/esm/pages/components/node-details.js.map +1 -1
- package/dist/esm/pages/matter-cluster-view.d.ts +3 -0
- package/dist/esm/pages/matter-cluster-view.d.ts.map +1 -1
- package/dist/esm/pages/matter-cluster-view.js +105 -90
- package/dist/esm/pages/matter-cluster-view.js.map +1 -1
- package/dist/esm/pages/matter-endpoint-view.d.ts +3 -2
- package/dist/esm/pages/matter-endpoint-view.d.ts.map +1 -1
- package/dist/esm/pages/matter-endpoint-view.js +65 -20
- package/dist/esm/pages/matter-endpoint-view.js.map +1 -1
- package/dist/esm/pages/matter-network-view.d.ts.map +1 -1
- package/dist/esm/pages/matter-network-view.js +20 -20
- package/dist/esm/pages/matter-network-view.js.map +1 -1
- package/dist/esm/pages/matter-node-view.d.ts.map +1 -1
- package/dist/esm/pages/matter-node-view.js +9 -5
- package/dist/esm/pages/matter-node-view.js.map +1 -1
- package/dist/esm/pages/matter-server-view.d.ts.map +1 -1
- package/dist/esm/pages/matter-server-view.js +6 -6
- package/dist/esm/pages/matter-server-view.js.map +1 -1
- package/dist/esm/pages/network/device-panel.d.ts.map +1 -1
- package/dist/esm/pages/network/device-panel.js +10 -10
- package/dist/esm/pages/network/device-panel.js.map +1 -1
- package/dist/esm/pages/network/network-details.d.ts.map +1 -1
- package/dist/esm/pages/network/network-details.js +384 -382
- package/dist/esm/pages/network/network-details.js.map +1 -1
- package/dist/esm/pages/network/thread-graph.d.ts.map +1 -1
- package/dist/esm/pages/network/thread-graph.js.map +1 -1
- package/dist/esm/pages/network/update-connections-dialog.d.ts.map +1 -1
- package/dist/esm/pages/network/update-connections-dialog.js +30 -30
- package/dist/esm/pages/network/update-connections-dialog.js.map +1 -1
- package/dist/esm/util/binding.d.ts +18 -0
- package/dist/esm/util/binding.d.ts.map +1 -1
- package/dist/esm/util/binding.js +28 -6
- package/dist/esm/util/binding.js.map +1 -1
- package/dist/esm/util/chime.d.ts.map +1 -1
- package/dist/esm/util/chime.js +9 -2
- package/dist/esm/util/chime.js.map +1 -1
- package/dist/esm/util/icd.d.ts +6 -2
- package/dist/esm/util/icd.d.ts.map +1 -1
- package/dist/esm/util/icd.js +6 -6
- package/dist/esm/util/icd.js.map +1 -1
- package/dist/esm/util/matter-status.d.ts +11 -0
- package/dist/esm/util/matter-status.d.ts.map +1 -1
- package/dist/esm/util/matter-status.js +16 -0
- package/dist/esm/util/matter-status.js.map +1 -1
- package/dist/esm/util/node-label.d.ts +1 -1
- package/dist/esm/util/node-label.d.ts.map +1 -1
- package/dist/esm/util/node-label.js +6 -2
- package/dist/esm/util/node-label.js.map +1 -1
- package/dist/esm/util/shared-styles.d.ts +2 -0
- package/dist/esm/util/shared-styles.d.ts.map +1 -1
- package/dist/esm/util/shared-styles.js +38 -0
- package/dist/esm/util/shared-styles.js.map +1 -1
- package/dist/web/index.html +1 -0
- package/dist/web/js/{attribute-write-dialog-Dfm95ZtQ.js → attribute-write-dialog-lNuCZ3k9.js} +2 -2
- package/dist/web/js/{command-invoke-dialog-DrORSE5f.js → command-invoke-dialog-BsvOYKuy.js} +4 -4
- package/dist/web/js/{commission-node-dialog-Wjb4chGv.js → commission-node-dialog-BHdEFbdo.js} +21 -21
- package/dist/web/js/{commission-node-existing-Ykm-eejQ.js → commission-node-existing-DHnKVo6U.js} +1 -1
- package/dist/web/js/{commission-node-thread-DacHGwnB.js → commission-node-thread-Cj3toV8W.js} +14 -14
- package/dist/web/js/{commission-node-wifi-CEKp93HM.js → commission-node-wifi-BdAS2Vof.js} +14 -14
- package/dist/web/js/{dialog-box-DEKE_ZlH.js → dialog-box-DQV4kYxU.js} +7 -5
- package/dist/web/js/{fabric-label-dialog-CcMZOA7F.js → fabric-label-dialog-Be5bxfzQ.js} +1 -1
- package/dist/web/js/main.js +1 -1
- package/dist/web/js/{matter-dashboard-app-CEG7MSLx.js → matter-dashboard-app-B186DbKC.js} +1494 -1209
- package/dist/web/js/{node-acl-add-dialog-BDM3Rcou.js → node-acl-add-dialog-D4ZLnora.js} +16 -16
- package/dist/web/js/{node-binding-dialog-CYsbUPsh.js → node-binding-dialog-MGTLF9MJ.js} +38 -38
- package/dist/web/js/{node-label-dialog-DFIMPMuJ.js → node-label-dialog-DgbTIGwf.js} +1 -1
- package/dist/web/js/{settings-dialog-CGXliJcr.js → settings-dialog-BQJbHl4j.js} +98 -96
- package/package.json +3 -3
- package/src/client/models/descriptions.ts +67 -62
- package/src/components/avsum-ptz-strip.ts +109 -100
- package/src/components/dialog-box/dialog-box.ts +20 -12
- package/src/components/dialogs/acl/acl-actions.ts +15 -6
- package/src/components/dialogs/acl/node-acl-add-dialog.ts +35 -29
- package/src/components/dialogs/binding/binding-actions.ts +58 -15
- package/src/components/dialogs/binding/node-binding-dialog.ts +78 -66
- package/src/components/dialogs/commission-node-dialog/commission-node-dialog.ts +25 -23
- package/src/components/dialogs/commission-node-dialog/commission-node-thread.ts +22 -20
- package/src/components/dialogs/commission-node-dialog/commission-node-wifi.ts +22 -20
- package/src/components/dialogs/dev/attribute-write-dialog.ts +10 -4
- package/src/components/dialogs/dev/command-invoke-dialog.ts +13 -9
- package/src/components/dialogs/settings/log-level-section.ts +21 -19
- package/src/components/dialogs/settings/settings-dialog.ts +141 -115
- package/src/components/webrtc-stream-view.ts +30 -22
- package/src/pages/camera-overlay.ts +165 -132
- package/src/pages/cluster-commands/clusters/access-control-commands.ts +47 -37
- package/src/pages/cluster-commands/clusters/avsum-commands.ts +210 -187
- package/src/pages/cluster-commands/clusters/basic-information-commands.ts +5 -3
- package/src/pages/cluster-commands/clusters/binding-commands.ts +40 -36
- package/src/pages/cluster-commands/clusters/chime-commands.ts +84 -52
- package/src/pages/cluster-commands/clusters/closure-control-commands.ts +171 -139
- package/src/pages/cluster-commands/clusters/icd-management-commands.ts +51 -34
- package/src/pages/components/header.ts +62 -50
- package/src/pages/components/node-details.ts +87 -72
- package/src/pages/matter-cluster-view.ts +154 -121
- package/src/pages/matter-endpoint-view.ts +76 -25
- package/src/pages/matter-network-view.ts +36 -30
- package/src/pages/matter-node-view.ts +14 -8
- package/src/pages/matter-server-view.ts +11 -9
- package/src/pages/network/device-panel.ts +20 -18
- package/src/pages/network/network-details.ts +758 -618
- package/src/pages/network/thread-graph.ts +5 -3
- package/src/pages/network/update-connections-dialog.ts +64 -52
- package/src/util/binding.ts +42 -6
- package/src/util/chime.ts +9 -2
- package/src/util/icd.ts +12 -8
- package/src/util/matter-status.ts +26 -0
- package/src/util/node-label.ts +6 -2
- package/src/util/shared-styles.ts +39 -0
|
@@ -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
|
-
${
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
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
|
-
${
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
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
|
-
${
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
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
|
-
${
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
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
|
|
@@ -434,7 +444,11 @@ export class IcdManagementClusterCommands extends BaseClusterCommands {
|
|
|
434
444
|
});
|
|
435
445
|
}
|
|
436
446
|
|
|
437
|
-
/**
|
|
447
|
+
/**
|
|
448
|
+
* Non-fabric-filtered RegisteredClients read; counts clients on other fabrics. Its result must not
|
|
449
|
+
* reach the attribute cache: node ids are per-fabric and can collide, so a foreign entry could
|
|
450
|
+
* false-positive `isRegisteredByUs`, and the subscription keeps that attribute fabric-filtered.
|
|
451
|
+
*/
|
|
438
452
|
private async _otherClientCount(node: MatterNode, endpoint: number): Promise<number> {
|
|
439
453
|
const ourFabricIndexRaw = node.attributes[CURRENT_FABRIC_INDEX_PATH];
|
|
440
454
|
const result = await this.client.readAttribute(
|
|
@@ -442,7 +456,10 @@ export class IcdManagementClusterCommands extends BaseClusterCommands {
|
|
|
442
456
|
[REGISTERED_CLIENTS_PATH, CURRENT_FABRIC_INDEX_PATH],
|
|
443
457
|
this._actionTimeoutMs,
|
|
444
458
|
);
|
|
445
|
-
|
|
459
|
+
const currentFabricIndex = result[CURRENT_FABRIC_INDEX_PATH];
|
|
460
|
+
if (this.isSameContext(node, endpoint) && typeof currentFabricIndex === "number") {
|
|
461
|
+
this.node.attributes[CURRENT_FABRIC_INDEX_PATH] = currentFabricIndex;
|
|
462
|
+
}
|
|
446
463
|
const clients = decodeRegisteredClients(result[REGISTERED_CLIENTS_PATH]);
|
|
447
464
|
const ourFabricIndex = result[CURRENT_FABRIC_INDEX_PATH] ?? ourFabricIndexRaw;
|
|
448
465
|
return otherFabricClientCount(clients, typeof ourFabricIndex === "number" ? ourFabricIndex : undefined);
|
|
@@ -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
|
-
${
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
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
|
-
${
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
<
|
|
162
|
-
|
|
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
|
-
${
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
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
|
-
${
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
<
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
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
|
-
${
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
<
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
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
|
`;
|
|
@@ -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
|
-
${
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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
|
-
${
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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
|
-
${
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
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
|
-
${
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
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
|
-
${
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
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
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
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
|