@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
|
@@ -4210,8 +4210,8 @@ export const clusters: Record<number, ClusterDescription> = {
|
|
|
4210
4210
|
}
|
|
4211
4211
|
},
|
|
4212
4212
|
"features": {
|
|
4213
|
-
"
|
|
4214
|
-
"bit":
|
|
4213
|
+
"20": {
|
|
4214
|
+
"bit": 20,
|
|
4215
4215
|
"code": "BIS",
|
|
4216
4216
|
"label": "Bridged Icd Support"
|
|
4217
4217
|
}
|
|
@@ -5763,8 +5763,8 @@ export const clusters: Record<number, ClusterDescription> = {
|
|
|
5763
5763
|
"code": "DEPONOFF",
|
|
5764
5764
|
"label": "On Off"
|
|
5765
5765
|
},
|
|
5766
|
-
"
|
|
5767
|
-
"bit":
|
|
5766
|
+
"20": {
|
|
5767
|
+
"bit": 20,
|
|
5768
5768
|
"code": "DIRECTMODECH",
|
|
5769
5769
|
"label": "Direct Mode Change"
|
|
5770
5770
|
}
|
|
@@ -5859,8 +5859,8 @@ export const clusters: Record<number, ClusterDescription> = {
|
|
|
5859
5859
|
"code": "DEPONOFF",
|
|
5860
5860
|
"label": "On Off"
|
|
5861
5861
|
},
|
|
5862
|
-
"
|
|
5863
|
-
"bit":
|
|
5862
|
+
"20": {
|
|
5863
|
+
"bit": 20,
|
|
5864
5864
|
"code": "DIRECTMODECH",
|
|
5865
5865
|
"label": "Direct Mode Change"
|
|
5866
5866
|
}
|
|
@@ -7252,48 +7252,53 @@ export const clusters: Record<number, ClusterDescription> = {
|
|
|
7252
7252
|
"code": "RESET",
|
|
7253
7253
|
"label": "Reset"
|
|
7254
7254
|
},
|
|
7255
|
-
"
|
|
7256
|
-
"bit":
|
|
7255
|
+
"20": {
|
|
7256
|
+
"bit": 20,
|
|
7257
|
+
"code": "OVER",
|
|
7258
|
+
"label": "Over Temperature"
|
|
7259
|
+
},
|
|
7260
|
+
"21": {
|
|
7261
|
+
"bit": 21,
|
|
7257
7262
|
"code": "UNDER",
|
|
7258
7263
|
"label": "Under Temperature"
|
|
7259
7264
|
},
|
|
7260
|
-
"
|
|
7261
|
-
"bit":
|
|
7265
|
+
"22": {
|
|
7266
|
+
"bit": 22,
|
|
7262
7267
|
"code": "MAJOR",
|
|
7263
7268
|
"label": "Major Threshold"
|
|
7264
7269
|
},
|
|
7265
|
-
"
|
|
7266
|
-
"bit":
|
|
7270
|
+
"23": {
|
|
7271
|
+
"bit": 23,
|
|
7267
7272
|
"code": "MINOR",
|
|
7268
7273
|
"label": "Minor Threshold"
|
|
7269
7274
|
},
|
|
7270
|
-
"
|
|
7271
|
-
"bit":
|
|
7275
|
+
"24": {
|
|
7276
|
+
"bit": 24,
|
|
7272
7277
|
"code": "OCRIADJ",
|
|
7273
7278
|
"label": "Over Critical Adjustable"
|
|
7274
7279
|
},
|
|
7275
|
-
"
|
|
7276
|
-
"bit":
|
|
7280
|
+
"25": {
|
|
7281
|
+
"bit": 25,
|
|
7277
7282
|
"code": "OMAJADJ",
|
|
7278
7283
|
"label": "Over Major Adjustable"
|
|
7279
7284
|
},
|
|
7280
|
-
"
|
|
7281
|
-
"bit":
|
|
7285
|
+
"26": {
|
|
7286
|
+
"bit": 26,
|
|
7282
7287
|
"code": "OMINADJ",
|
|
7283
7288
|
"label": "Over Minor Adjustable"
|
|
7284
7289
|
},
|
|
7285
|
-
"
|
|
7286
|
-
"bit":
|
|
7290
|
+
"27": {
|
|
7291
|
+
"bit": 27,
|
|
7287
7292
|
"code": "UMINADJ",
|
|
7288
7293
|
"label": "Under Minor Adjustable"
|
|
7289
7294
|
},
|
|
7290
|
-
"
|
|
7291
|
-
"bit":
|
|
7295
|
+
"28": {
|
|
7296
|
+
"bit": 28,
|
|
7292
7297
|
"code": "UMAJADJ",
|
|
7293
7298
|
"label": "Under Major Adjustable"
|
|
7294
7299
|
},
|
|
7295
|
-
"
|
|
7296
|
-
"bit":
|
|
7300
|
+
"29": {
|
|
7301
|
+
"bit": 29,
|
|
7297
7302
|
"code": "UCRIADJ",
|
|
7298
7303
|
"label": "Under Critical Adjustable"
|
|
7299
7304
|
}
|
|
@@ -10236,53 +10241,53 @@ export const clusters: Record<number, ClusterDescription> = {
|
|
|
10236
10241
|
"code": "FGP",
|
|
10237
10242
|
"label": "Finger Credentials"
|
|
10238
10243
|
},
|
|
10239
|
-
"
|
|
10240
|
-
"bit":
|
|
10244
|
+
"4": {
|
|
10245
|
+
"bit": 4,
|
|
10241
10246
|
"code": "WDSCH",
|
|
10242
10247
|
"label": "Week Day Access Schedules"
|
|
10243
10248
|
},
|
|
10244
|
-
"
|
|
10245
|
-
"bit":
|
|
10249
|
+
"5": {
|
|
10250
|
+
"bit": 5,
|
|
10246
10251
|
"code": "DPS",
|
|
10247
10252
|
"label": "Door Position Sensor"
|
|
10248
10253
|
},
|
|
10249
|
-
"
|
|
10250
|
-
"bit":
|
|
10254
|
+
"6": {
|
|
10255
|
+
"bit": 6,
|
|
10251
10256
|
"code": "FACE",
|
|
10252
10257
|
"label": "Face Credentials"
|
|
10253
10258
|
},
|
|
10254
|
-
"
|
|
10255
|
-
"bit":
|
|
10259
|
+
"7": {
|
|
10260
|
+
"bit": 7,
|
|
10256
10261
|
"code": "COTA",
|
|
10257
10262
|
"label": "Credential Over The Air Access"
|
|
10258
10263
|
},
|
|
10259
|
-
"
|
|
10260
|
-
"bit":
|
|
10264
|
+
"8": {
|
|
10265
|
+
"bit": 8,
|
|
10261
10266
|
"code": "USR",
|
|
10262
10267
|
"label": "User"
|
|
10263
10268
|
},
|
|
10264
|
-
"
|
|
10265
|
-
"bit":
|
|
10269
|
+
"10": {
|
|
10270
|
+
"bit": 10,
|
|
10266
10271
|
"code": "YDSCH",
|
|
10267
10272
|
"label": "Year Day Access Schedules"
|
|
10268
10273
|
},
|
|
10269
|
-
"
|
|
10270
|
-
"bit":
|
|
10274
|
+
"11": {
|
|
10275
|
+
"bit": 11,
|
|
10271
10276
|
"code": "HDSCH",
|
|
10272
10277
|
"label": "Holiday Schedules"
|
|
10273
10278
|
},
|
|
10274
|
-
"
|
|
10275
|
-
"bit":
|
|
10279
|
+
"12": {
|
|
10280
|
+
"bit": 12,
|
|
10276
10281
|
"code": "UBOLT",
|
|
10277
10282
|
"label": "Unbolting"
|
|
10278
10283
|
},
|
|
10279
|
-
"
|
|
10280
|
-
"bit":
|
|
10284
|
+
"13": {
|
|
10285
|
+
"bit": 13,
|
|
10281
10286
|
"code": "ALIRO",
|
|
10282
10287
|
"label": "Aliro Provisioning"
|
|
10283
10288
|
},
|
|
10284
|
-
"
|
|
10285
|
-
"bit":
|
|
10289
|
+
"14": {
|
|
10290
|
+
"bit": 14,
|
|
10286
10291
|
"code": "ALBU",
|
|
10287
10292
|
"label": "Aliro Bleuwb"
|
|
10288
10293
|
}
|
|
@@ -10481,8 +10486,8 @@ export const clusters: Record<number, ClusterDescription> = {
|
|
|
10481
10486
|
"code": "PA_LF",
|
|
10482
10487
|
"label": "Position Aware Lift"
|
|
10483
10488
|
},
|
|
10484
|
-
"
|
|
10485
|
-
"bit":
|
|
10489
|
+
"4": {
|
|
10490
|
+
"bit": 4,
|
|
10486
10491
|
"code": "PA_TL",
|
|
10487
10492
|
"label": "Position Aware Tilt"
|
|
10488
10493
|
}
|
|
@@ -11736,38 +11741,38 @@ export const clusters: Record<number, ClusterDescription> = {
|
|
|
11736
11741
|
"code": "OCC",
|
|
11737
11742
|
"label": "Occupancy"
|
|
11738
11743
|
},
|
|
11739
|
-
"
|
|
11740
|
-
"bit":
|
|
11744
|
+
"4": {
|
|
11745
|
+
"bit": 4,
|
|
11741
11746
|
"code": "SB",
|
|
11742
11747
|
"label": "Setback"
|
|
11743
11748
|
},
|
|
11744
|
-
"
|
|
11745
|
-
"bit":
|
|
11749
|
+
"5": {
|
|
11750
|
+
"bit": 5,
|
|
11746
11751
|
"code": "AUTO",
|
|
11747
11752
|
"label": "Auto Mode"
|
|
11748
11753
|
},
|
|
11749
|
-
"
|
|
11750
|
-
"bit":
|
|
11754
|
+
"6": {
|
|
11755
|
+
"bit": 6,
|
|
11751
11756
|
"code": "LTNE",
|
|
11752
11757
|
"label": "Local Temperature Not Exposed"
|
|
11753
11758
|
},
|
|
11754
|
-
"
|
|
11755
|
-
"bit":
|
|
11759
|
+
"7": {
|
|
11760
|
+
"bit": 7,
|
|
11756
11761
|
"code": "MSCH",
|
|
11757
11762
|
"label": "Matter Schedule Configuration"
|
|
11758
11763
|
},
|
|
11759
|
-
"
|
|
11760
|
-
"bit":
|
|
11764
|
+
"8": {
|
|
11765
|
+
"bit": 8,
|
|
11761
11766
|
"code": "PRES",
|
|
11762
11767
|
"label": "Presets"
|
|
11763
11768
|
},
|
|
11764
|
-
"
|
|
11765
|
-
"bit":
|
|
11769
|
+
"9": {
|
|
11770
|
+
"bit": 9,
|
|
11766
11771
|
"code": "TEVT",
|
|
11767
11772
|
"label": "Events"
|
|
11768
11773
|
},
|
|
11769
|
-
"
|
|
11770
|
-
"bit":
|
|
11774
|
+
"10": {
|
|
11775
|
+
"bit": 10,
|
|
11771
11776
|
"code": "TSUGGEST",
|
|
11772
11777
|
"label": "Thermostat Suggestions"
|
|
11773
11778
|
}
|
|
@@ -13196,8 +13201,8 @@ export const clusters: Record<number, ClusterDescription> = {
|
|
|
13196
13201
|
"code": "VIS",
|
|
13197
13202
|
"label": "Vision"
|
|
13198
13203
|
},
|
|
13199
|
-
"
|
|
13200
|
-
"bit":
|
|
13204
|
+
"9": {
|
|
13205
|
+
"bit": 9,
|
|
13201
13206
|
"code": "OCCEVENT",
|
|
13202
13207
|
"label": "Occupancy Event"
|
|
13203
13208
|
}
|
|
@@ -82,106 +82,115 @@ export class AvsumPtzStrip extends LitElement {
|
|
|
82
82
|
|
|
83
83
|
return html`
|
|
84
84
|
<div class="strip">
|
|
85
|
-
${
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
<
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
<
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
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
|
-
|
|
85
|
+
${
|
|
86
|
+
hasMech || features.dptz
|
|
87
|
+
? html`<div class="group movement">
|
|
88
|
+
<div class="dpad">
|
|
89
|
+
<span></span>
|
|
90
|
+
<md-icon-button
|
|
91
|
+
?disabled=${this._isDisabled(effective, "tilt", features, movement)}
|
|
92
|
+
title="Tilt up"
|
|
93
|
+
@click=${handleAsyncEvent((e: MouseEvent) =>
|
|
94
|
+
this._move(effective, "tilt", this._step(e, 10)),
|
|
95
|
+
)}
|
|
96
|
+
>
|
|
97
|
+
<ha-svg-icon .path=${mdiArrowUp}></ha-svg-icon>
|
|
98
|
+
</md-icon-button>
|
|
99
|
+
<span></span>
|
|
100
|
+
<md-icon-button
|
|
101
|
+
?disabled=${this._isDisabled(effective, "pan", features, movement)}
|
|
102
|
+
title="Pan left"
|
|
103
|
+
@click=${handleAsyncEvent((e: MouseEvent) =>
|
|
104
|
+
this._move(effective, "pan", this._step(e, -10)),
|
|
105
|
+
)}
|
|
106
|
+
>
|
|
107
|
+
<ha-svg-icon .path=${mdiArrowLeft}></ha-svg-icon>
|
|
108
|
+
</md-icon-button>
|
|
109
|
+
<span></span>
|
|
110
|
+
<md-icon-button
|
|
111
|
+
?disabled=${this._isDisabled(effective, "pan", features, movement)}
|
|
112
|
+
title="Pan right"
|
|
113
|
+
@click=${handleAsyncEvent((e: MouseEvent) =>
|
|
114
|
+
this._move(effective, "pan", this._step(e, 10)),
|
|
115
|
+
)}
|
|
116
|
+
>
|
|
117
|
+
<ha-svg-icon .path=${mdiArrowRight}></ha-svg-icon>
|
|
118
|
+
</md-icon-button>
|
|
119
|
+
<span></span>
|
|
120
|
+
<md-icon-button
|
|
121
|
+
?disabled=${this._isDisabled(effective, "tilt", features, movement)}
|
|
122
|
+
title="Tilt down"
|
|
123
|
+
@click=${handleAsyncEvent((e: MouseEvent) =>
|
|
124
|
+
this._move(effective, "tilt", this._step(e, -10)),
|
|
125
|
+
)}
|
|
126
|
+
>
|
|
127
|
+
<ha-svg-icon .path=${mdiArrowDown}></ha-svg-icon>
|
|
128
|
+
</md-icon-button>
|
|
129
|
+
<span></span>
|
|
130
|
+
</div>
|
|
131
|
+
<div class="zoom">
|
|
132
|
+
<md-icon-button
|
|
133
|
+
?disabled=${this._isDisabled(effective, "zoom", features, movement)}
|
|
134
|
+
title="Zoom in"
|
|
135
|
+
@click=${handleAsyncEvent((e: MouseEvent) =>
|
|
136
|
+
this._move(effective, "zoom", this._step(e, 10)),
|
|
137
|
+
)}
|
|
138
|
+
>
|
|
139
|
+
<ha-svg-icon .path=${mdiPlus}></ha-svg-icon>
|
|
140
|
+
</md-icon-button>
|
|
141
|
+
<md-icon-button
|
|
142
|
+
?disabled=${this._isDisabled(effective, "zoom", features, movement)}
|
|
143
|
+
title="Zoom out"
|
|
144
|
+
@click=${handleAsyncEvent((e: MouseEvent) =>
|
|
145
|
+
this._move(effective, "zoom", this._step(e, -10)),
|
|
146
|
+
)}
|
|
147
|
+
>
|
|
148
|
+
<ha-svg-icon .path=${mdiMinus}></ha-svg-icon>
|
|
149
|
+
</md-icon-button>
|
|
150
|
+
</div>
|
|
151
|
+
${
|
|
152
|
+
hasMech && features.dptz
|
|
153
|
+
? html`<div class="mode-toggle">
|
|
154
|
+
<button
|
|
155
|
+
class=${this._mode === "mech" ? "active" : ""}
|
|
156
|
+
@click=${() => (this._mode = "mech")}
|
|
157
|
+
>
|
|
158
|
+
Mech
|
|
159
|
+
</button>
|
|
160
|
+
<button
|
|
161
|
+
class=${this._mode === "digital" ? "active" : ""}
|
|
162
|
+
@click=${() => (this._mode = "digital")}
|
|
163
|
+
>
|
|
164
|
+
Digital
|
|
165
|
+
</button>
|
|
166
|
+
</div>`
|
|
167
|
+
: nothing
|
|
168
|
+
}
|
|
169
|
+
${
|
|
170
|
+
effective === "digital" && this.activeVideoStreamId === null
|
|
171
|
+
? html`<span class="mode-hint">Start stream to enable DPTZ</span>`
|
|
172
|
+
: nothing
|
|
173
|
+
}
|
|
174
|
+
</div>`
|
|
175
|
+
: nothing
|
|
176
|
+
}
|
|
177
|
+
${
|
|
178
|
+
features.mPresets && presets.length > 0
|
|
179
|
+
? html`<div class="group presets">
|
|
180
|
+
${presets.map(
|
|
181
|
+
p => html`<button
|
|
182
|
+
class="chip"
|
|
183
|
+
title="p=${p.settings.pan ?? 0}° · t=${p.settings.tilt ?? 0}° · z=${
|
|
184
|
+
p.settings.zoom ?? 1
|
|
185
|
+
}×"
|
|
186
|
+
@click=${handleAsync(() => this._handleGoPreset(p.presetId))}
|
|
187
|
+
>
|
|
188
|
+
${p.name}
|
|
189
|
+
</button>`,
|
|
190
|
+
)}
|
|
191
|
+
</div>`
|
|
192
|
+
: nothing
|
|
193
|
+
}
|
|
185
194
|
<div class="group readout">
|
|
186
195
|
${features.mPan && pos.pan !== null ? html`<span>Pan ${this._fmt(pos.pan)}°</span>` : nothing}
|
|
187
196
|
${features.mTilt && pos.tilt !== null ? html`<span>Tilt ${this._fmt(pos.tilt)}°</span>` : nothing}
|
|
@@ -24,19 +24,27 @@ export class DialogBox extends LitElement {
|
|
|
24
24
|
return html`
|
|
25
25
|
<md-dialog open @cancel=${preventDefault} @closed=${this._handleClosed}>
|
|
26
26
|
${params.title ? html`<div slot="headline">${params.title}</div>` : ""}
|
|
27
|
-
${
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
${
|
|
28
|
+
params.text
|
|
29
|
+
? html`<div slot="content">
|
|
30
|
+
${
|
|
31
|
+
params.asCodeBlock && typeof params.text === "string"
|
|
32
|
+
? html`<code>${params.text}</code>`
|
|
33
|
+
: params.text
|
|
34
|
+
}
|
|
35
|
+
</div>`
|
|
36
|
+
: ""
|
|
37
|
+
}
|
|
34
38
|
<div slot="actions">
|
|
35
|
-
${
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
${
|
|
40
|
+
this.type === "prompt"
|
|
41
|
+
? html`
|
|
42
|
+
<md-text-button @click=${this._cancel}
|
|
43
|
+
>${params.cancelText ?? "Cancel"}</md-text-button
|
|
44
|
+
>
|
|
45
|
+
`
|
|
46
|
+
: ""
|
|
47
|
+
}
|
|
40
48
|
<md-text-button @click=${this._confirm}>${params.confirmText ?? "OK"}</md-text-button>
|
|
41
49
|
</div>
|
|
42
50
|
</md-dialog>
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import { AccessControlEntry, MatterClient } from "@matter-server/ws-client";
|
|
8
8
|
import { Privilege, aclEntryKey, attributeArray, entriesForFabric } from "../../../util/access-control.js";
|
|
9
|
+
import { requireWriteSuccess } from "../../../util/matter-status.js";
|
|
9
10
|
import { AccessControlEntryDataTransformer, type AccessControlEntryStruct } from "./model.js";
|
|
10
11
|
|
|
11
12
|
function toApiAcl(e: AccessControlEntryStruct): AccessControlEntry {
|
|
@@ -23,11 +24,16 @@ function toApiAcl(e: AccessControlEntryStruct): AccessControlEntry {
|
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
/**
|
|
26
|
-
* Read the node's ACL + CurrentFabricIndex fresh
|
|
27
|
-
*
|
|
27
|
+
* Read the node's ACL + CurrentFabricIndex fresh and narrow to our fabric. Fails rather than risk
|
|
28
|
+
* writing back other fabrics' entries if the index is unknown.
|
|
28
29
|
*/
|
|
29
30
|
async function freshOurAcl(client: MatterClient, nodeId: number | bigint): Promise<AccessControlEntryStruct[]> {
|
|
30
|
-
const res = await client.readAttribute(nodeId, ["0/31/0", "0/62/5"]);
|
|
31
|
+
const res = await client.readAttribute(nodeId, ["0/31/0", "0/62/5"], undefined, true);
|
|
32
|
+
// A read reports per-path failures by omitting the path, and the ACL is rewritten whole — an
|
|
33
|
+
// absent list would be written back as an empty one, locking every controller out of the node.
|
|
34
|
+
if (!("0/31/0" in res)) {
|
|
35
|
+
throw new Error(`Could not read the access control list (0/31/0) from node ${nodeId}`);
|
|
36
|
+
}
|
|
31
37
|
const all = attributeArray(res["0/31/0"]).map(v => AccessControlEntryDataTransformer.transform(v));
|
|
32
38
|
const fi = res["0/62/5"];
|
|
33
39
|
if (typeof fi !== "number") {
|
|
@@ -43,7 +49,7 @@ export async function addAclEntry(
|
|
|
43
49
|
): Promise<void> {
|
|
44
50
|
const acl = await freshOurAcl(client, nodeId);
|
|
45
51
|
acl.push(entry);
|
|
46
|
-
await client.setACLEntry(nodeId, acl.map(toApiAcl));
|
|
52
|
+
requireWriteSuccess(await client.setACLEntry(nodeId, acl.map(toApiAcl)), "Writing the access control list failed");
|
|
47
53
|
}
|
|
48
54
|
|
|
49
55
|
export async function deleteAclEntry(client: MatterClient, nodeId: number | bigint, key: string): Promise<void> {
|
|
@@ -56,7 +62,7 @@ export async function deleteAclEntry(client: MatterClient, nodeId: number | bigi
|
|
|
56
62
|
}
|
|
57
63
|
return true;
|
|
58
64
|
});
|
|
59
|
-
await client.setACLEntry(nodeId, kept.map(toApiAcl));
|
|
65
|
+
requireWriteSuccess(await client.setACLEntry(nodeId, kept.map(toApiAcl)), "Writing the access control list failed");
|
|
60
66
|
}
|
|
61
67
|
|
|
62
68
|
/** Downgrade the given entries (by key) to Operate privilege. */
|
|
@@ -67,5 +73,8 @@ export async function downgradeToOperate(
|
|
|
67
73
|
): Promise<void> {
|
|
68
74
|
const acl = await freshOurAcl(client, nodeId);
|
|
69
75
|
const updated = acl.map(e => (keys.has(aclEntryKey(e)) ? { ...e, privilege: Privilege.Operate } : e));
|
|
70
|
-
|
|
76
|
+
requireWriteSuccess(
|
|
77
|
+
await client.setACLEntry(nodeId, updated.map(toApiAcl)),
|
|
78
|
+
"Writing the access control list failed",
|
|
79
|
+
);
|
|
71
80
|
}
|