Skip to content

Commit 12de9ff

Browse files
authored
Update dashboard definition files (#781)
1 parent cb3060b commit 12de9ff

File tree

2 files changed

+81
-41
lines changed

2 files changed

+81
-41
lines changed

dashboard/script/setup

+4
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ cd "$(dirname "$0")/.."
77

88
# Install node modules
99
npm install
10+
11+
# generate descriptions file (from python source)
12+
cd ".."
13+
python3 scripts/generate_descriptions.py

dashboard/src/client/models/descriptions.ts

+77-41
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ export const device_types: Record<number, DeviceType> = {
2828
"clusters": [
2929
66,
3030
67,
31-
28,
32-
68
31+
68,
32+
28
3333
]
3434
},
3535
"22": {
@@ -96,8 +96,8 @@ export const device_types: Record<number, DeviceType> = {
9696
"id": 14,
9797
"label": "Aggregator",
9898
"clusters": [
99-
37,
100-
29
99+
29,
100+
37
101101
]
102102
},
103103
"19": {
@@ -191,13 +191,13 @@ export const device_types: Record<number, DeviceType> = {
191191
"clusters": [
192192
512,
193193
1026,
194-
3,
195-
1028,
196194
98,
195+
1027,
196+
1028,
197197
6,
198-
4,
198+
3,
199199
8,
200-
1027,
200+
4,
201201
29,
202202
30
203203
]
@@ -262,9 +262,9 @@ export const device_types: Record<number, DeviceType> = {
262262
"id": 21,
263263
"label": "Contact Sensor",
264264
"clusters": [
265+
29,
265266
3,
266-
69,
267-
29
267+
69
268268
]
269269
},
270270
"262": {
@@ -300,8 +300,8 @@ export const device_types: Record<number, DeviceType> = {
300300
"id": 773,
301301
"label": "Pressure Sensor",
302302
"clusters": [
303-
3,
304303
1027,
304+
3,
305305
29
306306
]
307307
},
@@ -354,10 +354,10 @@ export const device_types: Record<number, DeviceType> = {
354354
"id": 514,
355355
"label": "Window Covering",
356356
"clusters": [
357-
258,
357+
98,
358358
3,
359+
258,
359360
4,
360-
98,
361361
29
362362
]
363363
},
@@ -374,9 +374,9 @@ export const device_types: Record<number, DeviceType> = {
374374
"id": 768,
375375
"label": "Heating/Cooling Unit",
376376
"clusters": [
377+
98,
377378
514,
378379
3,
379-
98,
380380
4,
381381
6,
382382
8,
@@ -418,11 +418,11 @@ export const device_types: Record<number, DeviceType> = {
418418
1286,
419419
1287,
420420
1288,
421-
6,
421+
1289,
422422
1290,
423423
1291,
424+
6,
424425
1292,
425-
1289,
426426
1294,
427427
29
428428
]
@@ -437,8 +437,8 @@ export const device_types: Record<number, DeviceType> = {
437437
1286,
438438
1287,
439439
1288,
440-
6,
441440
1289,
441+
6,
442442
1291,
443443
29
444444
]
@@ -452,15 +452,15 @@ export const device_types: Record<number, DeviceType> = {
452452
1285,
453453
1286,
454454
1287,
455-
8,
456455
1288,
457-
6,
458-
1291,
456+
1289,
459457
1290,
460-
1292,
461-
1294,
458+
1291,
459+
6,
462460
1293,
463-
1289,
461+
1294,
462+
8,
463+
1292,
464464
29,
465465
30
466466
]
@@ -474,14 +474,14 @@ export const device_types: Record<number, DeviceType> = {
474474
1285,
475475
1286,
476476
1287,
477-
8,
478477
1288,
479-
6,
480-
1291,
478+
1289,
481479
1290,
482-
1292,
480+
1291,
481+
6,
482+
8,
483483
1294,
484-
1289,
484+
1292,
485485
29,
486486
30
487487
]
@@ -526,14 +526,14 @@ export const device_types: Record<number, DeviceType> = {
526526
"label": "Room Air Conditioner",
527527
"clusters": [
528528
513,
529-
1026,
530-
3,
529+
98,
531530
514,
531+
1026,
532532
1029,
533533
6,
534-
516,
535-
98,
534+
3,
536535
4,
536+
516,
537537
29
538538
]
539539
},
@@ -572,12 +572,12 @@ export const device_types: Record<number, DeviceType> = {
572572
1029,
573573
1066,
574574
1067,
575-
1068,
576575
1036,
577-
1070,
578576
1069,
579577
1037,
580578
1071,
579+
1068,
580+
1070,
581581
1043,
582582
1045,
583583
91,
@@ -692,9 +692,9 @@ export const device_types: Record<number, DeviceType> = {
692692
"label": "Water Freeze Detector",
693693
"clusters": [
694694
128,
695+
29,
695696
3,
696-
69,
697-
29
697+
69
698698
]
699699
},
700700
"66": {
@@ -711,19 +711,19 @@ export const device_types: Record<number, DeviceType> = {
711711
"label": "Water Leak Detector",
712712
"clusters": [
713713
128,
714+
29,
714715
3,
715-
69,
716-
29
716+
69
717717
]
718718
},
719719
"68": {
720720
"id": 68,
721721
"label": "Rain Sensor",
722722
"clusters": [
723723
128,
724+
29,
724725
3,
725-
69,
726-
29
726+
69
727727
]
728728
},
729729
"4293984272": {
@@ -739,10 +739,10 @@ export const device_types: Record<number, DeviceType> = {
739739
"clusters": [
740740
768,
741741
257,
742+
98,
742743
1026,
743744
259,
744745
3,
745-
98,
746746
6,
747747
4,
748748
8,
@@ -12566,6 +12566,12 @@ export const clusters: Record<number, ClusterDescription> = {
1256612566
"id": 319486977,
1256712567
"label": "EveCluster",
1256812568
"attributes": {
12569+
"319422470": {
12570+
"id": 319422470,
12571+
"cluster_id": 319486977,
12572+
"label": "TimesOpened",
12573+
"type": "int"
12574+
},
1256912575
"319422474": {
1257012576
"id": 319422474,
1257112577
"cluster_id": 319486977,
@@ -12597,5 +12603,35 @@ export const clusters: Record<number, ClusterDescription> = {
1259712603
"type": "float32"
1259812604
}
1259912605
}
12606+
},
12607+
"308149265": {
12608+
"id": 308149265,
12609+
"label": "NeoCluster",
12610+
"attributes": {
12611+
"308084771": {
12612+
"id": 308084771,
12613+
"cluster_id": 308149265,
12614+
"label": "Watt",
12615+
"type": "float32"
12616+
},
12617+
"308084769": {
12618+
"id": 308084769,
12619+
"cluster_id": 308149265,
12620+
"label": "WattAccumulated",
12621+
"type": "float32"
12622+
},
12623+
"308084772": {
12624+
"id": 308084772,
12625+
"cluster_id": 308149265,
12626+
"label": "Voltage",
12627+
"type": "float32"
12628+
},
12629+
"308084770": {
12630+
"id": 308084770,
12631+
"cluster_id": 308149265,
12632+
"label": "Current",
12633+
"type": "float32"
12634+
}
12635+
}
1260012636
}
1260112637
}

0 commit comments

Comments
 (0)