@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.
Files changed (183) hide show
  1. package/dist/esm/client/models/descriptions.d.ts.map +1 -1
  2. package/dist/esm/client/models/descriptions.js +67 -62
  3. package/dist/esm/client/models/descriptions.js.map +1 -1
  4. package/dist/esm/components/avsum-ptz-strip.d.ts.map +1 -1
  5. package/dist/esm/components/avsum-ptz-strip.js +75 -75
  6. package/dist/esm/components/avsum-ptz-strip.js.map +1 -1
  7. package/dist/esm/components/dialog-box/dialog-box.d.ts.map +1 -1
  8. package/dist/esm/components/dialog-box/dialog-box.js +6 -4
  9. package/dist/esm/components/dialog-box/dialog-box.js.map +1 -1
  10. package/dist/esm/components/dialogs/acl/acl-actions.d.ts.map +1 -1
  11. package/dist/esm/components/dialogs/acl/acl-actions.js +11 -4
  12. package/dist/esm/components/dialogs/acl/acl-actions.js.map +1 -1
  13. package/dist/esm/components/dialogs/acl/node-acl-add-dialog.d.ts.map +1 -1
  14. package/dist/esm/components/dialogs/acl/node-acl-add-dialog.js +15 -15
  15. package/dist/esm/components/dialogs/acl/node-acl-add-dialog.js.map +1 -1
  16. package/dist/esm/components/dialogs/binding/binding-actions.d.ts +8 -3
  17. package/dist/esm/components/dialogs/binding/binding-actions.d.ts.map +1 -1
  18. package/dist/esm/components/dialogs/binding/binding-actions.js +45 -11
  19. package/dist/esm/components/dialogs/binding/binding-actions.js.map +1 -1
  20. package/dist/esm/components/dialogs/binding/node-binding-dialog.d.ts.map +1 -1
  21. package/dist/esm/components/dialogs/binding/node-binding-dialog.js +37 -37
  22. package/dist/esm/components/dialogs/binding/node-binding-dialog.js.map +1 -1
  23. package/dist/esm/components/dialogs/commission-node-dialog/commission-node-dialog.d.ts.map +1 -1
  24. package/dist/esm/components/dialogs/commission-node-dialog/commission-node-dialog.js +16 -16
  25. package/dist/esm/components/dialogs/commission-node-dialog/commission-node-dialog.js.map +1 -1
  26. package/dist/esm/components/dialogs/commission-node-dialog/commission-node-thread.d.ts.map +1 -1
  27. package/dist/esm/components/dialogs/commission-node-dialog/commission-node-thread.js +13 -13
  28. package/dist/esm/components/dialogs/commission-node-dialog/commission-node-thread.js.map +1 -1
  29. package/dist/esm/components/dialogs/commission-node-dialog/commission-node-wifi.d.ts.map +1 -1
  30. package/dist/esm/components/dialogs/commission-node-dialog/commission-node-wifi.js +13 -13
  31. package/dist/esm/components/dialogs/commission-node-dialog/commission-node-wifi.js.map +1 -1
  32. package/dist/esm/components/dialogs/dev/attribute-write-dialog.d.ts.map +1 -1
  33. package/dist/esm/components/dialogs/dev/attribute-write-dialog.js +5 -1
  34. package/dist/esm/components/dialogs/dev/attribute-write-dialog.js.map +1 -1
  35. package/dist/esm/components/dialogs/dev/command-invoke-dialog.d.ts.map +1 -1
  36. package/dist/esm/components/dialogs/dev/command-invoke-dialog.js +3 -3
  37. package/dist/esm/components/dialogs/dev/command-invoke-dialog.js.map +1 -1
  38. package/dist/esm/components/dialogs/settings/log-level-section.d.ts.map +1 -1
  39. package/dist/esm/components/dialogs/settings/log-level-section.js +14 -14
  40. package/dist/esm/components/dialogs/settings/log-level-section.js.map +1 -1
  41. package/dist/esm/components/dialogs/settings/settings-dialog.d.ts.map +1 -1
  42. package/dist/esm/components/dialogs/settings/settings-dialog.js +83 -81
  43. package/dist/esm/components/dialogs/settings/settings-dialog.js.map +1 -1
  44. package/dist/esm/components/webrtc-stream-view.d.ts.map +1 -1
  45. package/dist/esm/components/webrtc-stream-view.js +11 -11
  46. package/dist/esm/components/webrtc-stream-view.js.map +1 -1
  47. package/dist/esm/pages/camera-overlay.d.ts.map +1 -1
  48. package/dist/esm/pages/camera-overlay.js +90 -87
  49. package/dist/esm/pages/camera-overlay.js.map +1 -1
  50. package/dist/esm/pages/cluster-commands/clusters/access-control-commands.d.ts.map +1 -1
  51. package/dist/esm/pages/cluster-commands/clusters/access-control-commands.js +32 -28
  52. package/dist/esm/pages/cluster-commands/clusters/access-control-commands.js.map +1 -1
  53. package/dist/esm/pages/cluster-commands/clusters/avsum-commands.d.ts.map +1 -1
  54. package/dist/esm/pages/cluster-commands/clusters/avsum-commands.js +130 -129
  55. package/dist/esm/pages/cluster-commands/clusters/avsum-commands.js.map +1 -1
  56. package/dist/esm/pages/cluster-commands/clusters/basic-information-commands.d.ts.map +1 -1
  57. package/dist/esm/pages/cluster-commands/clusters/basic-information-commands.js.map +1 -1
  58. package/dist/esm/pages/cluster-commands/clusters/binding-commands.d.ts.map +1 -1
  59. package/dist/esm/pages/cluster-commands/clusters/binding-commands.js +32 -30
  60. package/dist/esm/pages/cluster-commands/clusters/binding-commands.js.map +1 -1
  61. package/dist/esm/pages/cluster-commands/clusters/chime-commands.d.ts +5 -0
  62. package/dist/esm/pages/cluster-commands/clusters/chime-commands.d.ts.map +1 -1
  63. package/dist/esm/pages/cluster-commands/clusters/chime-commands.js +45 -24
  64. package/dist/esm/pages/cluster-commands/clusters/chime-commands.js.map +1 -1
  65. package/dist/esm/pages/cluster-commands/clusters/closure-control-commands.d.ts.map +1 -1
  66. package/dist/esm/pages/cluster-commands/clusters/closure-control-commands.js +79 -79
  67. package/dist/esm/pages/cluster-commands/clusters/closure-control-commands.js.map +1 -1
  68. package/dist/esm/pages/cluster-commands/clusters/icd-management-commands.d.ts.map +1 -1
  69. package/dist/esm/pages/cluster-commands/clusters/icd-management-commands.js +27 -20
  70. package/dist/esm/pages/cluster-commands/clusters/icd-management-commands.js.map +1 -1
  71. package/dist/esm/pages/components/header.d.ts.map +1 -1
  72. package/dist/esm/pages/components/header.js +32 -32
  73. package/dist/esm/pages/components/header.js.map +1 -1
  74. package/dist/esm/pages/components/node-details.d.ts.map +1 -1
  75. package/dist/esm/pages/components/node-details.js +43 -42
  76. package/dist/esm/pages/components/node-details.js.map +1 -1
  77. package/dist/esm/pages/matter-cluster-view.d.ts +3 -0
  78. package/dist/esm/pages/matter-cluster-view.d.ts.map +1 -1
  79. package/dist/esm/pages/matter-cluster-view.js +105 -90
  80. package/dist/esm/pages/matter-cluster-view.js.map +1 -1
  81. package/dist/esm/pages/matter-endpoint-view.d.ts +3 -2
  82. package/dist/esm/pages/matter-endpoint-view.d.ts.map +1 -1
  83. package/dist/esm/pages/matter-endpoint-view.js +65 -20
  84. package/dist/esm/pages/matter-endpoint-view.js.map +1 -1
  85. package/dist/esm/pages/matter-network-view.d.ts.map +1 -1
  86. package/dist/esm/pages/matter-network-view.js +20 -20
  87. package/dist/esm/pages/matter-network-view.js.map +1 -1
  88. package/dist/esm/pages/matter-node-view.d.ts.map +1 -1
  89. package/dist/esm/pages/matter-node-view.js +9 -5
  90. package/dist/esm/pages/matter-node-view.js.map +1 -1
  91. package/dist/esm/pages/matter-server-view.d.ts.map +1 -1
  92. package/dist/esm/pages/matter-server-view.js +6 -6
  93. package/dist/esm/pages/matter-server-view.js.map +1 -1
  94. package/dist/esm/pages/network/device-panel.d.ts.map +1 -1
  95. package/dist/esm/pages/network/device-panel.js +10 -10
  96. package/dist/esm/pages/network/device-panel.js.map +1 -1
  97. package/dist/esm/pages/network/network-details.d.ts.map +1 -1
  98. package/dist/esm/pages/network/network-details.js +384 -382
  99. package/dist/esm/pages/network/network-details.js.map +1 -1
  100. package/dist/esm/pages/network/thread-graph.d.ts.map +1 -1
  101. package/dist/esm/pages/network/thread-graph.js.map +1 -1
  102. package/dist/esm/pages/network/update-connections-dialog.d.ts.map +1 -1
  103. package/dist/esm/pages/network/update-connections-dialog.js +30 -30
  104. package/dist/esm/pages/network/update-connections-dialog.js.map +1 -1
  105. package/dist/esm/util/binding.d.ts +18 -0
  106. package/dist/esm/util/binding.d.ts.map +1 -1
  107. package/dist/esm/util/binding.js +28 -6
  108. package/dist/esm/util/binding.js.map +1 -1
  109. package/dist/esm/util/chime.d.ts.map +1 -1
  110. package/dist/esm/util/chime.js +9 -2
  111. package/dist/esm/util/chime.js.map +1 -1
  112. package/dist/esm/util/icd.d.ts +6 -2
  113. package/dist/esm/util/icd.d.ts.map +1 -1
  114. package/dist/esm/util/icd.js +6 -6
  115. package/dist/esm/util/icd.js.map +1 -1
  116. package/dist/esm/util/matter-status.d.ts +11 -0
  117. package/dist/esm/util/matter-status.d.ts.map +1 -1
  118. package/dist/esm/util/matter-status.js +16 -0
  119. package/dist/esm/util/matter-status.js.map +1 -1
  120. package/dist/esm/util/node-label.d.ts +1 -1
  121. package/dist/esm/util/node-label.d.ts.map +1 -1
  122. package/dist/esm/util/node-label.js +6 -2
  123. package/dist/esm/util/node-label.js.map +1 -1
  124. package/dist/esm/util/shared-styles.d.ts +2 -0
  125. package/dist/esm/util/shared-styles.d.ts.map +1 -1
  126. package/dist/esm/util/shared-styles.js +38 -0
  127. package/dist/esm/util/shared-styles.js.map +1 -1
  128. package/dist/web/index.html +1 -0
  129. package/dist/web/js/{attribute-write-dialog-Dfm95ZtQ.js → attribute-write-dialog-lNuCZ3k9.js} +2 -2
  130. package/dist/web/js/{command-invoke-dialog-DrORSE5f.js → command-invoke-dialog-BsvOYKuy.js} +4 -4
  131. package/dist/web/js/{commission-node-dialog-Wjb4chGv.js → commission-node-dialog-BHdEFbdo.js} +21 -21
  132. package/dist/web/js/{commission-node-existing-Ykm-eejQ.js → commission-node-existing-DHnKVo6U.js} +1 -1
  133. package/dist/web/js/{commission-node-thread-DacHGwnB.js → commission-node-thread-Cj3toV8W.js} +14 -14
  134. package/dist/web/js/{commission-node-wifi-CEKp93HM.js → commission-node-wifi-BdAS2Vof.js} +14 -14
  135. package/dist/web/js/{dialog-box-DEKE_ZlH.js → dialog-box-DQV4kYxU.js} +7 -5
  136. package/dist/web/js/{fabric-label-dialog-CcMZOA7F.js → fabric-label-dialog-Be5bxfzQ.js} +1 -1
  137. package/dist/web/js/main.js +1 -1
  138. package/dist/web/js/{matter-dashboard-app-CEG7MSLx.js → matter-dashboard-app-B186DbKC.js} +1494 -1209
  139. package/dist/web/js/{node-acl-add-dialog-BDM3Rcou.js → node-acl-add-dialog-D4ZLnora.js} +16 -16
  140. package/dist/web/js/{node-binding-dialog-CYsbUPsh.js → node-binding-dialog-MGTLF9MJ.js} +38 -38
  141. package/dist/web/js/{node-label-dialog-DFIMPMuJ.js → node-label-dialog-DgbTIGwf.js} +1 -1
  142. package/dist/web/js/{settings-dialog-CGXliJcr.js → settings-dialog-BQJbHl4j.js} +98 -96
  143. package/package.json +3 -3
  144. package/src/client/models/descriptions.ts +67 -62
  145. package/src/components/avsum-ptz-strip.ts +109 -100
  146. package/src/components/dialog-box/dialog-box.ts +20 -12
  147. package/src/components/dialogs/acl/acl-actions.ts +15 -6
  148. package/src/components/dialogs/acl/node-acl-add-dialog.ts +35 -29
  149. package/src/components/dialogs/binding/binding-actions.ts +58 -15
  150. package/src/components/dialogs/binding/node-binding-dialog.ts +78 -66
  151. package/src/components/dialogs/commission-node-dialog/commission-node-dialog.ts +25 -23
  152. package/src/components/dialogs/commission-node-dialog/commission-node-thread.ts +22 -20
  153. package/src/components/dialogs/commission-node-dialog/commission-node-wifi.ts +22 -20
  154. package/src/components/dialogs/dev/attribute-write-dialog.ts +10 -4
  155. package/src/components/dialogs/dev/command-invoke-dialog.ts +13 -9
  156. package/src/components/dialogs/settings/log-level-section.ts +21 -19
  157. package/src/components/dialogs/settings/settings-dialog.ts +141 -115
  158. package/src/components/webrtc-stream-view.ts +30 -22
  159. package/src/pages/camera-overlay.ts +165 -132
  160. package/src/pages/cluster-commands/clusters/access-control-commands.ts +47 -37
  161. package/src/pages/cluster-commands/clusters/avsum-commands.ts +210 -187
  162. package/src/pages/cluster-commands/clusters/basic-information-commands.ts +5 -3
  163. package/src/pages/cluster-commands/clusters/binding-commands.ts +40 -36
  164. package/src/pages/cluster-commands/clusters/chime-commands.ts +84 -52
  165. package/src/pages/cluster-commands/clusters/closure-control-commands.ts +171 -139
  166. package/src/pages/cluster-commands/clusters/icd-management-commands.ts +51 -34
  167. package/src/pages/components/header.ts +62 -50
  168. package/src/pages/components/node-details.ts +87 -72
  169. package/src/pages/matter-cluster-view.ts +154 -121
  170. package/src/pages/matter-endpoint-view.ts +76 -25
  171. package/src/pages/matter-network-view.ts +36 -30
  172. package/src/pages/matter-node-view.ts +14 -8
  173. package/src/pages/matter-server-view.ts +11 -9
  174. package/src/pages/network/device-panel.ts +20 -18
  175. package/src/pages/network/network-details.ts +758 -618
  176. package/src/pages/network/thread-graph.ts +5 -3
  177. package/src/pages/network/update-connections-dialog.ts +64 -52
  178. package/src/util/binding.ts +42 -6
  179. package/src/util/chime.ts +9 -2
  180. package/src/util/icd.ts +12 -8
  181. package/src/util/matter-status.ts +26 -0
  182. package/src/util/node-label.ts +6 -2
  183. 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
- "0": {
4214
- "bit": 0,
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
- "1": {
5767
- "bit": 1,
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
- "1": {
5863
- "bit": 1,
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
- "1": {
7256
- "bit": 1,
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
- "2": {
7261
- "bit": 2,
7265
+ "22": {
7266
+ "bit": 22,
7262
7267
  "code": "MAJOR",
7263
7268
  "label": "Major Threshold"
7264
7269
  },
7265
- "3": {
7266
- "bit": 3,
7270
+ "23": {
7271
+ "bit": 23,
7267
7272
  "code": "MINOR",
7268
7273
  "label": "Minor Threshold"
7269
7274
  },
7270
- "4": {
7271
- "bit": 4,
7275
+ "24": {
7276
+ "bit": 24,
7272
7277
  "code": "OCRIADJ",
7273
7278
  "label": "Over Critical Adjustable"
7274
7279
  },
7275
- "5": {
7276
- "bit": 5,
7280
+ "25": {
7281
+ "bit": 25,
7277
7282
  "code": "OMAJADJ",
7278
7283
  "label": "Over Major Adjustable"
7279
7284
  },
7280
- "6": {
7281
- "bit": 6,
7285
+ "26": {
7286
+ "bit": 26,
7282
7287
  "code": "OMINADJ",
7283
7288
  "label": "Over Minor Adjustable"
7284
7289
  },
7285
- "7": {
7286
- "bit": 7,
7290
+ "27": {
7291
+ "bit": 27,
7287
7292
  "code": "UMINADJ",
7288
7293
  "label": "Under Minor Adjustable"
7289
7294
  },
7290
- "8": {
7291
- "bit": 8,
7295
+ "28": {
7296
+ "bit": 28,
7292
7297
  "code": "UMAJADJ",
7293
7298
  "label": "Under Major Adjustable"
7294
7299
  },
7295
- "9": {
7296
- "bit": 9,
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
- "3": {
10240
- "bit": 3,
10244
+ "4": {
10245
+ "bit": 4,
10241
10246
  "code": "WDSCH",
10242
10247
  "label": "Week Day Access Schedules"
10243
10248
  },
10244
- "4": {
10245
- "bit": 4,
10249
+ "5": {
10250
+ "bit": 5,
10246
10251
  "code": "DPS",
10247
10252
  "label": "Door Position Sensor"
10248
10253
  },
10249
- "5": {
10250
- "bit": 5,
10254
+ "6": {
10255
+ "bit": 6,
10251
10256
  "code": "FACE",
10252
10257
  "label": "Face Credentials"
10253
10258
  },
10254
- "6": {
10255
- "bit": 6,
10259
+ "7": {
10260
+ "bit": 7,
10256
10261
  "code": "COTA",
10257
10262
  "label": "Credential Over The Air Access"
10258
10263
  },
10259
- "7": {
10260
- "bit": 7,
10264
+ "8": {
10265
+ "bit": 8,
10261
10266
  "code": "USR",
10262
10267
  "label": "User"
10263
10268
  },
10264
- "8": {
10265
- "bit": 8,
10269
+ "10": {
10270
+ "bit": 10,
10266
10271
  "code": "YDSCH",
10267
10272
  "label": "Year Day Access Schedules"
10268
10273
  },
10269
- "9": {
10270
- "bit": 9,
10274
+ "11": {
10275
+ "bit": 11,
10271
10276
  "code": "HDSCH",
10272
10277
  "label": "Holiday Schedules"
10273
10278
  },
10274
- "10": {
10275
- "bit": 10,
10279
+ "12": {
10280
+ "bit": 12,
10276
10281
  "code": "UBOLT",
10277
10282
  "label": "Unbolting"
10278
10283
  },
10279
- "11": {
10280
- "bit": 11,
10284
+ "13": {
10285
+ "bit": 13,
10281
10286
  "code": "ALIRO",
10282
10287
  "label": "Aliro Provisioning"
10283
10288
  },
10284
- "12": {
10285
- "bit": 12,
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
- "3": {
10485
- "bit": 3,
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
- "3": {
11740
- "bit": 3,
11744
+ "4": {
11745
+ "bit": 4,
11741
11746
  "code": "SB",
11742
11747
  "label": "Setback"
11743
11748
  },
11744
- "4": {
11745
- "bit": 4,
11749
+ "5": {
11750
+ "bit": 5,
11746
11751
  "code": "AUTO",
11747
11752
  "label": "Auto Mode"
11748
11753
  },
11749
- "5": {
11750
- "bit": 5,
11754
+ "6": {
11755
+ "bit": 6,
11751
11756
  "code": "LTNE",
11752
11757
  "label": "Local Temperature Not Exposed"
11753
11758
  },
11754
- "6": {
11755
- "bit": 6,
11759
+ "7": {
11760
+ "bit": 7,
11756
11761
  "code": "MSCH",
11757
11762
  "label": "Matter Schedule Configuration"
11758
11763
  },
11759
- "7": {
11760
- "bit": 7,
11764
+ "8": {
11765
+ "bit": 8,
11761
11766
  "code": "PRES",
11762
11767
  "label": "Presets"
11763
11768
  },
11764
- "8": {
11765
- "bit": 8,
11769
+ "9": {
11770
+ "bit": 9,
11766
11771
  "code": "TEVT",
11767
11772
  "label": "Events"
11768
11773
  },
11769
- "9": {
11770
- "bit": 9,
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
- "8": {
13200
- "bit": 8,
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
- ${hasMech || features.dptz
86
- ? html`<div class="group movement">
87
- <div class="dpad">
88
- <span></span>
89
- <md-icon-button
90
- ?disabled=${this._isDisabled(effective, "tilt", features, movement)}
91
- title="Tilt up"
92
- @click=${handleAsyncEvent((e: MouseEvent) =>
93
- this._move(effective, "tilt", this._step(e, 10)),
94
- )}
95
- >
96
- <ha-svg-icon .path=${mdiArrowUp}></ha-svg-icon>
97
- </md-icon-button>
98
- <span></span>
99
- <md-icon-button
100
- ?disabled=${this._isDisabled(effective, "pan", features, movement)}
101
- title="Pan left"
102
- @click=${handleAsyncEvent((e: MouseEvent) =>
103
- this._move(effective, "pan", this._step(e, -10)),
104
- )}
105
- >
106
- <ha-svg-icon .path=${mdiArrowLeft}></ha-svg-icon>
107
- </md-icon-button>
108
- <span></span>
109
- <md-icon-button
110
- ?disabled=${this._isDisabled(effective, "pan", features, movement)}
111
- title="Pan right"
112
- @click=${handleAsyncEvent((e: MouseEvent) =>
113
- this._move(effective, "pan", this._step(e, 10)),
114
- )}
115
- >
116
- <ha-svg-icon .path=${mdiArrowRight}></ha-svg-icon>
117
- </md-icon-button>
118
- <span></span>
119
- <md-icon-button
120
- ?disabled=${this._isDisabled(effective, "tilt", features, movement)}
121
- title="Tilt down"
122
- @click=${handleAsyncEvent((e: MouseEvent) =>
123
- this._move(effective, "tilt", this._step(e, -10)),
124
- )}
125
- >
126
- <ha-svg-icon .path=${mdiArrowDown}></ha-svg-icon>
127
- </md-icon-button>
128
- <span></span>
129
- </div>
130
- <div class="zoom">
131
- <md-icon-button
132
- ?disabled=${this._isDisabled(effective, "zoom", features, movement)}
133
- title="Zoom in"
134
- @click=${handleAsyncEvent((e: MouseEvent) =>
135
- this._move(effective, "zoom", this._step(e, 10)),
136
- )}
137
- >
138
- <ha-svg-icon .path=${mdiPlus}></ha-svg-icon>
139
- </md-icon-button>
140
- <md-icon-button
141
- ?disabled=${this._isDisabled(effective, "zoom", features, movement)}
142
- title="Zoom out"
143
- @click=${handleAsyncEvent((e: MouseEvent) =>
144
- this._move(effective, "zoom", this._step(e, -10)),
145
- )}
146
- >
147
- <ha-svg-icon .path=${mdiMinus}></ha-svg-icon>
148
- </md-icon-button>
149
- </div>
150
- ${hasMech && features.dptz
151
- ? html`<div class="mode-toggle">
152
- <button
153
- class=${this._mode === "mech" ? "active" : ""}
154
- @click=${() => (this._mode = "mech")}
155
- >
156
- Mech
157
- </button>
158
- <button
159
- class=${this._mode === "digital" ? "active" : ""}
160
- @click=${() => (this._mode = "digital")}
161
- >
162
- Digital
163
- </button>
164
- </div>`
165
- : nothing}
166
- ${effective === "digital" && this.activeVideoStreamId === null
167
- ? html`<span class="mode-hint">Start stream to enable DPTZ</span>`
168
- : nothing}
169
- </div>`
170
- : nothing}
171
- ${features.mPresets && presets.length > 0
172
- ? html`<div class="group presets">
173
- ${presets.map(
174
- p => html`<button
175
- class="chip"
176
- title="p=${p.settings.pan ?? 0}° · t=${p.settings.tilt ?? 0}° · z=${p.settings.zoom ??
177
- 1}×"
178
- @click=${handleAsync(() => this._handleGoPreset(p.presetId))}
179
- >
180
- ${p.name}
181
- </button>`,
182
- )}
183
- </div>`
184
- : nothing}
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
- ${params.text
28
- ? html`<div slot="content">
29
- ${params.asCodeBlock && typeof params.text === "string"
30
- ? html`<code>${params.text}</code>`
31
- : params.text}
32
- </div>`
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
- ${this.type === "prompt"
36
- ? html`
37
- <md-text-button @click=${this._cancel}>${params.cancelText ?? "Cancel"}</md-text-button>
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 (explicit reads are not fabric-filtered) and narrow
27
- * to our fabric. Fails rather than risk writing back other fabrics' entries if the index is unknown.
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
- await client.setACLEntry(nodeId, updated.map(toApiAcl));
76
+ requireWriteSuccess(
77
+ await client.setACLEntry(nodeId, updated.map(toApiAcl)),
78
+ "Writing the access control list failed",
79
+ );
71
80
  }