@matter-server/dashboard 0.2.4-alpha.0-20260116-d0b21f3 → 0.2.4

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 (21) hide show
  1. package/dist/esm/client/models/descriptions.d.ts.map +1 -1
  2. package/dist/esm/client/models/descriptions.js +486 -0
  3. package/dist/esm/client/models/descriptions.js.map +1 -1
  4. package/dist/esm/pages/matter-cluster-view.d.ts.map +1 -1
  5. package/dist/esm/pages/matter-cluster-view.js +23 -7
  6. package/dist/esm/pages/matter-cluster-view.js.map +1 -1
  7. package/dist/web/js/{commission-node-dialog-B6EYNztD.js → commission-node-dialog-30lGnJcb.js} +5 -5
  8. package/dist/web/js/{commission-node-existing-CKKStTjd.js → commission-node-existing-RgaziosB.js} +4 -4
  9. package/dist/web/js/{commission-node-thread-D_Hgo4-b.js → commission-node-thread-CJn6OYQX.js} +4 -4
  10. package/dist/web/js/{commission-node-wifi-DQrWnfn9.js → commission-node-wifi-CCBBvBEh.js} +4 -4
  11. package/dist/web/js/{dialog-box-9i64nfcC.js → dialog-box-CFO9GMyG.js} +2 -2
  12. package/dist/web/js/{fire_event-CGgNDbLy.js → fire_event-CdvT7FSP.js} +1 -1
  13. package/dist/web/js/main.js +1 -1
  14. package/dist/web/js/{matter-dashboard-app-DD29PeTW.js → matter-dashboard-app-DwI2RvT1.js} +509 -7
  15. package/dist/web/js/{node-binding-dialog-DnO2DL_u.js → node-binding-dialog-CmTgtqz1.js} +3 -3
  16. package/dist/web/js/{outlined-text-field-tv3ZtxuK.js → outlined-text-field-DeeCilzP.js} +2 -2
  17. package/dist/web/js/{prevent_default-C72e35wq.js → prevent_default--haJaAsZ.js} +1 -1
  18. package/package.json +4 -3
  19. package/src/client/models/descriptions.ts +486 -0
  20. package/src/pages/matter-cluster-view.ts +31 -8
  21. package/src/tsconfig.json +3 -0
@@ -10944,5 +10944,491 @@ export const clusters: Record<number, ClusterDescription> = {
10944
10944
  "type": "ClusterRevision"
10945
10945
  }
10946
10946
  }
10947
+ },
10948
+ "2820": {
10949
+ "id": 2820,
10950
+ "label": "Draft Electrical Measurement Cluster",
10951
+ "attributes": {
10952
+ "1285": {
10953
+ "id": 1285,
10954
+ "cluster_id": 2820,
10955
+ "label": "Rms Voltage",
10956
+ "type": "Optional[unknown]"
10957
+ },
10958
+ "1288": {
10959
+ "id": 1288,
10960
+ "cluster_id": 2820,
10961
+ "label": "Rms Current",
10962
+ "type": "Optional[unknown]"
10963
+ },
10964
+ "1291": {
10965
+ "id": 1291,
10966
+ "cluster_id": 2820,
10967
+ "label": "Active Power",
10968
+ "type": "Optional[unknown]"
10969
+ },
10970
+ "1536": {
10971
+ "id": 1536,
10972
+ "cluster_id": 2820,
10973
+ "label": "Ac Voltage Multiplier",
10974
+ "type": "Optional[unknown]"
10975
+ },
10976
+ "1537": {
10977
+ "id": 1537,
10978
+ "cluster_id": 2820,
10979
+ "label": "Ac Voltage Divisor",
10980
+ "type": "Optional[unknown]"
10981
+ },
10982
+ "1538": {
10983
+ "id": 1538,
10984
+ "cluster_id": 2820,
10985
+ "label": "Ac Current Multiplier",
10986
+ "type": "Optional[unknown]"
10987
+ },
10988
+ "1539": {
10989
+ "id": 1539,
10990
+ "cluster_id": 2820,
10991
+ "label": "Ac Current Divisor",
10992
+ "type": "Optional[unknown]"
10993
+ },
10994
+ "1540": {
10995
+ "id": 1540,
10996
+ "cluster_id": 2820,
10997
+ "label": "Ac Power Multiplier",
10998
+ "type": "Optional[unknown]"
10999
+ },
11000
+ "1541": {
11001
+ "id": 1541,
11002
+ "cluster_id": 2820,
11003
+ "label": "Ac Power Divisor",
11004
+ "type": "Optional[unknown]"
11005
+ },
11006
+ "65528": {
11007
+ "id": 65528,
11008
+ "cluster_id": 2820,
11009
+ "label": "Generated Command List",
11010
+ "type": "List[command-id]"
11011
+ },
11012
+ "65529": {
11013
+ "id": 65529,
11014
+ "cluster_id": 2820,
11015
+ "label": "Accepted Command List",
11016
+ "type": "List[command-id]"
11017
+ },
11018
+ "65530": {
11019
+ "id": 65530,
11020
+ "cluster_id": 2820,
11021
+ "label": "Event List",
11022
+ "type": "Optional[unknown]"
11023
+ },
11024
+ "65531": {
11025
+ "id": 65531,
11026
+ "cluster_id": 2820,
11027
+ "label": "Attribute List",
11028
+ "type": "List[attrib-id]"
11029
+ },
11030
+ "65532": {
11031
+ "id": 65532,
11032
+ "cluster_id": 2820,
11033
+ "label": "Feature Map",
11034
+ "type": "map32"
11035
+ },
11036
+ "65533": {
11037
+ "id": 65533,
11038
+ "cluster_id": 2820,
11039
+ "label": "Cluster Revision",
11040
+ "type": "uint16"
11041
+ }
11042
+ }
11043
+ },
11044
+ "302775297": {
11045
+ "id": 302775297,
11046
+ "label": "Heiman Cluster",
11047
+ "attributes": {
11048
+ "65528": {
11049
+ "id": 65528,
11050
+ "cluster_id": 302775297,
11051
+ "label": "Generated Command List",
11052
+ "type": "List[command-id]"
11053
+ },
11054
+ "65529": {
11055
+ "id": 65529,
11056
+ "cluster_id": 302775297,
11057
+ "label": "Accepted Command List",
11058
+ "type": "List[command-id]"
11059
+ },
11060
+ "65530": {
11061
+ "id": 65530,
11062
+ "cluster_id": 302775297,
11063
+ "label": "Event List",
11064
+ "type": "Optional[unknown]"
11065
+ },
11066
+ "65531": {
11067
+ "id": 65531,
11068
+ "cluster_id": 302775297,
11069
+ "label": "Attribute List",
11070
+ "type": "List[attrib-id]"
11071
+ },
11072
+ "65532": {
11073
+ "id": 65532,
11074
+ "cluster_id": 302775297,
11075
+ "label": "Feature Map",
11076
+ "type": "map32"
11077
+ },
11078
+ "65533": {
11079
+ "id": 65533,
11080
+ "cluster_id": 302775297,
11081
+ "label": "Cluster Revision",
11082
+ "type": "uint16"
11083
+ },
11084
+ "302710800": {
11085
+ "id": 302710800,
11086
+ "cluster_id": 302775297,
11087
+ "label": "Tamper Alarm",
11088
+ "type": "Optional[unknown]"
11089
+ },
11090
+ "302710801": {
11091
+ "id": 302710801,
11092
+ "cluster_id": 302775297,
11093
+ "label": "Preheating State",
11094
+ "type": "Optional[unknown]"
11095
+ },
11096
+ "302710802": {
11097
+ "id": 302710802,
11098
+ "cluster_id": 302775297,
11099
+ "label": "No Disturbing State",
11100
+ "type": "Optional[unknown]"
11101
+ },
11102
+ "302710803": {
11103
+ "id": 302710803,
11104
+ "cluster_id": 302775297,
11105
+ "label": "Sensor Type",
11106
+ "type": "Optional[unknown]"
11107
+ },
11108
+ "302710804": {
11109
+ "id": 302710804,
11110
+ "cluster_id": 302775297,
11111
+ "label": "Siren Active",
11112
+ "type": "Optional[unknown]"
11113
+ },
11114
+ "302710805": {
11115
+ "id": 302710805,
11116
+ "cluster_id": 302775297,
11117
+ "label": "Alarm Mute",
11118
+ "type": "Optional[unknown]"
11119
+ },
11120
+ "302710806": {
11121
+ "id": 302710806,
11122
+ "cluster_id": 302775297,
11123
+ "label": "Low Power Mode",
11124
+ "type": "Optional[unknown]"
11125
+ }
11126
+ }
11127
+ },
11128
+ "305134641": {
11129
+ "id": 305134641,
11130
+ "label": "Inovelli Cluster",
11131
+ "attributes": {
11132
+ "65528": {
11133
+ "id": 65528,
11134
+ "cluster_id": 305134641,
11135
+ "label": "Generated Command List",
11136
+ "type": "List[command-id]"
11137
+ },
11138
+ "65529": {
11139
+ "id": 65529,
11140
+ "cluster_id": 305134641,
11141
+ "label": "Accepted Command List",
11142
+ "type": "List[command-id]"
11143
+ },
11144
+ "65530": {
11145
+ "id": 65530,
11146
+ "cluster_id": 305134641,
11147
+ "label": "Event List",
11148
+ "type": "Optional[unknown]"
11149
+ },
11150
+ "65531": {
11151
+ "id": 65531,
11152
+ "cluster_id": 305134641,
11153
+ "label": "Attribute List",
11154
+ "type": "List[attrib-id]"
11155
+ },
11156
+ "65532": {
11157
+ "id": 65532,
11158
+ "cluster_id": 305134641,
11159
+ "label": "Feature Map",
11160
+ "type": "map32"
11161
+ },
11162
+ "65533": {
11163
+ "id": 65533,
11164
+ "cluster_id": 305134641,
11165
+ "label": "Cluster Revision",
11166
+ "type": "uint16"
11167
+ },
11168
+ "305070177": {
11169
+ "id": 305070177,
11170
+ "cluster_id": 305134641,
11171
+ "label": "Led Indicator Intensity On",
11172
+ "type": "Optional[unknown]"
11173
+ },
11174
+ "305070178": {
11175
+ "id": 305070178,
11176
+ "cluster_id": 305134641,
11177
+ "label": "Led Indicator Intensity Off",
11178
+ "type": "Optional[unknown]"
11179
+ },
11180
+ "305070342": {
11181
+ "id": 305070342,
11182
+ "cluster_id": 305134641,
11183
+ "label": "Clear Notification With Config Double Tap",
11184
+ "type": "Optional[bool]"
11185
+ }
11186
+ }
11187
+ },
11188
+ "308149265": {
11189
+ "id": 308149265,
11190
+ "label": "Neo Cluster",
11191
+ "attributes": {
11192
+ "65528": {
11193
+ "id": 65528,
11194
+ "cluster_id": 308149265,
11195
+ "label": "Generated Command List",
11196
+ "type": "List[command-id]"
11197
+ },
11198
+ "65529": {
11199
+ "id": 65529,
11200
+ "cluster_id": 308149265,
11201
+ "label": "Accepted Command List",
11202
+ "type": "List[command-id]"
11203
+ },
11204
+ "65530": {
11205
+ "id": 65530,
11206
+ "cluster_id": 308149265,
11207
+ "label": "Event List",
11208
+ "type": "Optional[unknown]"
11209
+ },
11210
+ "65531": {
11211
+ "id": 65531,
11212
+ "cluster_id": 308149265,
11213
+ "label": "Attribute List",
11214
+ "type": "List[attrib-id]"
11215
+ },
11216
+ "65532": {
11217
+ "id": 65532,
11218
+ "cluster_id": 308149265,
11219
+ "label": "Feature Map",
11220
+ "type": "map32"
11221
+ },
11222
+ "65533": {
11223
+ "id": 65533,
11224
+ "cluster_id": 308149265,
11225
+ "label": "Cluster Revision",
11226
+ "type": "uint16"
11227
+ },
11228
+ "308084769": {
11229
+ "id": 308084769,
11230
+ "cluster_id": 308149265,
11231
+ "label": "Watt Accumulated",
11232
+ "type": "Optional[unknown]"
11233
+ },
11234
+ "308084770": {
11235
+ "id": 308084770,
11236
+ "cluster_id": 308149265,
11237
+ "label": "Current",
11238
+ "type": "Optional[unknown]"
11239
+ },
11240
+ "308084771": {
11241
+ "id": 308084771,
11242
+ "cluster_id": 308149265,
11243
+ "label": "Watt",
11244
+ "type": "Optional[unknown]"
11245
+ },
11246
+ "308084772": {
11247
+ "id": 308084772,
11248
+ "cluster_id": 308149265,
11249
+ "label": "Voltage",
11250
+ "type": "Optional[unknown]"
11251
+ }
11252
+ }
11253
+ },
11254
+ "319486977": {
11255
+ "id": 319486977,
11256
+ "label": "Eve Cluster",
11257
+ "attributes": {
11258
+ "65528": {
11259
+ "id": 65528,
11260
+ "cluster_id": 319486977,
11261
+ "label": "Generated Command List",
11262
+ "type": "List[command-id]"
11263
+ },
11264
+ "65529": {
11265
+ "id": 65529,
11266
+ "cluster_id": 319486977,
11267
+ "label": "Accepted Command List",
11268
+ "type": "List[command-id]"
11269
+ },
11270
+ "65530": {
11271
+ "id": 65530,
11272
+ "cluster_id": 319486977,
11273
+ "label": "Event List",
11274
+ "type": "Optional[unknown]"
11275
+ },
11276
+ "65531": {
11277
+ "id": 65531,
11278
+ "cluster_id": 319486977,
11279
+ "label": "Attribute List",
11280
+ "type": "List[attrib-id]"
11281
+ },
11282
+ "65532": {
11283
+ "id": 65532,
11284
+ "cluster_id": 319486977,
11285
+ "label": "Feature Map",
11286
+ "type": "map32"
11287
+ },
11288
+ "65533": {
11289
+ "id": 65533,
11290
+ "cluster_id": 319486977,
11291
+ "label": "Cluster Revision",
11292
+ "type": "uint16"
11293
+ },
11294
+ "319422470": {
11295
+ "id": 319422470,
11296
+ "cluster_id": 319486977,
11297
+ "label": "Times Opened",
11298
+ "type": "Optional[unknown]"
11299
+ },
11300
+ "319422472": {
11301
+ "id": 319422472,
11302
+ "cluster_id": 319486977,
11303
+ "label": "Voltage",
11304
+ "type": "Optional[unknown]"
11305
+ },
11306
+ "319422473": {
11307
+ "id": 319422473,
11308
+ "cluster_id": 319486977,
11309
+ "label": "Current",
11310
+ "type": "Optional[unknown]"
11311
+ },
11312
+ "319422474": {
11313
+ "id": 319422474,
11314
+ "cluster_id": 319486977,
11315
+ "label": "Watt",
11316
+ "type": "Optional[unknown]"
11317
+ },
11318
+ "319422475": {
11319
+ "id": 319422475,
11320
+ "cluster_id": 319486977,
11321
+ "label": "Watt Accumulated",
11322
+ "type": "Optional[unknown]"
11323
+ },
11324
+ "319422477": {
11325
+ "id": 319422477,
11326
+ "cluster_id": 319486977,
11327
+ "label": "Motion Sensitivity",
11328
+ "type": "Optional[unknown]"
11329
+ },
11330
+ "319422478": {
11331
+ "id": 319422478,
11332
+ "cluster_id": 319486977,
11333
+ "label": "Watt Accumulated Control Point",
11334
+ "type": "Optional[unknown]"
11335
+ },
11336
+ "319422480": {
11337
+ "id": 319422480,
11338
+ "cluster_id": 319486977,
11339
+ "label": "Obstruction Detected",
11340
+ "type": "Optional[bool]"
11341
+ },
11342
+ "319422483": {
11343
+ "id": 319422483,
11344
+ "cluster_id": 319486977,
11345
+ "label": "Altitude",
11346
+ "type": "Optional[unknown]"
11347
+ },
11348
+ "319422484": {
11349
+ "id": 319422484,
11350
+ "cluster_id": 319486977,
11351
+ "label": "Pressure",
11352
+ "type": "Optional[unknown]"
11353
+ },
11354
+ "319422485": {
11355
+ "id": 319422485,
11356
+ "cluster_id": 319486977,
11357
+ "label": "Weather Trend",
11358
+ "type": "Optional[unknown]"
11359
+ },
11360
+ "319422488": {
11361
+ "id": 319422488,
11362
+ "cluster_id": 319486977,
11363
+ "label": "Valve Position",
11364
+ "type": "Optional[unknown]"
11365
+ }
11366
+ }
11367
+ },
11368
+ "319683586": {
11369
+ "id": 319683586,
11370
+ "label": "Third Reality Metering Cluster",
11371
+ "attributes": {
11372
+ "0": {
11373
+ "id": 0,
11374
+ "cluster_id": 319683586,
11375
+ "label": "Current Summation Delivered",
11376
+ "type": "Optional[unknown]"
11377
+ },
11378
+ "769": {
11379
+ "id": 769,
11380
+ "cluster_id": 319683586,
11381
+ "label": "Multiplier",
11382
+ "type": "Optional[unknown]"
11383
+ },
11384
+ "770": {
11385
+ "id": 770,
11386
+ "cluster_id": 319683586,
11387
+ "label": "Divisor",
11388
+ "type": "Optional[unknown]"
11389
+ },
11390
+ "1024": {
11391
+ "id": 1024,
11392
+ "cluster_id": 319683586,
11393
+ "label": "Instantaneous Demand",
11394
+ "type": "Optional[unknown]"
11395
+ },
11396
+ "65528": {
11397
+ "id": 65528,
11398
+ "cluster_id": 319683586,
11399
+ "label": "Generated Command List",
11400
+ "type": "List[command-id]"
11401
+ },
11402
+ "65529": {
11403
+ "id": 65529,
11404
+ "cluster_id": 319683586,
11405
+ "label": "Accepted Command List",
11406
+ "type": "List[command-id]"
11407
+ },
11408
+ "65530": {
11409
+ "id": 65530,
11410
+ "cluster_id": 319683586,
11411
+ "label": "Event List",
11412
+ "type": "Optional[unknown]"
11413
+ },
11414
+ "65531": {
11415
+ "id": 65531,
11416
+ "cluster_id": 319683586,
11417
+ "label": "Attribute List",
11418
+ "type": "List[attrib-id]"
11419
+ },
11420
+ "65532": {
11421
+ "id": 65532,
11422
+ "cluster_id": 319683586,
11423
+ "label": "Feature Map",
11424
+ "type": "map32"
11425
+ },
11426
+ "65533": {
11427
+ "id": 65533,
11428
+ "cluster_id": 319683586,
11429
+ "label": "Cluster Revision",
11430
+ "type": "uint16"
11431
+ }
11432
+ }
10947
11433
  }
10948
11434
  };
@@ -27,14 +27,33 @@ declare global {
27
27
  }
28
28
  }
29
29
 
30
+ // Global attribute IDs range (0xFFF0-0xFFFF)
31
+ const GLOBAL_ATTRIBUTE_MIN = 0xfff0;
32
+ const GLOBAL_ATTRIBUTE_MAX = 0xffff;
33
+
34
+ function isGlobalAttribute(id: number): boolean {
35
+ return id >= GLOBAL_ATTRIBUTE_MIN && id <= GLOBAL_ATTRIBUTE_MAX;
36
+ }
37
+
30
38
  function clusterAttributes(attributes: { [key: string]: any }, endpoint: number, cluster: number) {
31
- // extract unique clusters from the node attributes, as (sorted) array
39
+ // Extract attributes and sort by ID, with global attributes (0xFFF0-0xFFFF) always last
32
40
  return Object.keys(attributes)
33
41
  .filter(key => key.startsWith(`${endpoint}/${cluster}/`))
34
42
  .map(key => {
35
43
  const attributeKey = Number(key.split("/")[2]);
36
44
  return { key: attributeKey, value: attributes[key] };
37
- }, []);
45
+ })
46
+ .sort((a, b) => {
47
+ const aIsGlobal = isGlobalAttribute(a.key);
48
+ const bIsGlobal = isGlobalAttribute(b.key);
49
+
50
+ // If one is global and the other isn't, non-global comes first
51
+ if (aIsGlobal !== bIsGlobal) {
52
+ return aIsGlobal ? 1 : -1;
53
+ }
54
+ // Otherwise sort by ID
55
+ return a.key - b.key;
56
+ });
38
57
  }
39
58
 
40
59
  @customElement("matter-cluster-view")
@@ -86,9 +105,10 @@ class MatterClusterView extends LitElement {
86
105
  </div>
87
106
  <div slot="supporting-text">ClusterId ${this.cluster} (0x00${this.cluster.toString(16)})</div>
88
107
  </md-list-item>
89
- ${clusterAttributes(this.node.attributes, this.endpoint, this.cluster).map(attribute => {
90
- return html`
91
- <md-list-item>
108
+ <md-divider></md-divider>
109
+ ${clusterAttributes(this.node.attributes, this.endpoint, this.cluster).map(
110
+ (attribute, index) => html`
111
+ <md-list-item class=${index % 2 === 1 ? "alternate-row" : ""}>
92
112
  <div slot="headline">
93
113
  ${clusters[this.cluster!]?.attributes[attribute.key]?.label ||
94
114
  "Custom/Unknown Attribute"}
@@ -109,9 +129,8 @@ class MatterClusterView extends LitElement {
109
129
  : toBigIntAwareJson(attribute.value)}
110
130
  </div>
111
131
  </md-list-item>
112
- <md-divider />
113
- `;
114
- })}
132
+ `,
133
+ )}
115
134
  </md-list>
116
135
  </div>
117
136
  `;
@@ -198,5 +217,9 @@ class MatterClusterView extends LitElement {
198
217
  font-weight: bold;
199
218
  font-size: 0.8em;
200
219
  }
220
+
221
+ md-list-item.alternate-row {
222
+ background-color: rgba(128, 128, 128, 0.1);
223
+ }
201
224
  `;
202
225
  }
package/src/tsconfig.json CHANGED
@@ -9,6 +9,9 @@
9
9
  "allowSyntheticDefaultImports": true
10
10
  },
11
11
  "references": [
12
+ {
13
+ "path": "../../custom-clusters/src"
14
+ },
12
15
  {
13
16
  "path": "../../ws-client/src"
14
17
  }