forked from dresden-elektronik/deconz-rest-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
general.xml
6686 lines (6523 loc) · 443 KB
/
general.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<zcl>
<datatypes>
<!--Null-->
<datatype id="0x00" name="No data" shortname="ndat" length="0" ad="-"></datatype>
<!--General data -->
<datatype id="0x08" name="8-bit data" shortname="dat8" length="1" ad="D"></datatype>
<datatype id="0x09" name="16-bit data" shortname="dat16" length="2" ad="D"></datatype>
<datatype id="0x0a" name="24-bit data" shortname="dat24" length="3" ad="D"></datatype>
<datatype id="0x0b" name="32-bit data" shortname="dat32" length="4" ad="D"></datatype>
<datatype id="0x0c" name="40-bit data" shortname="dat40" length="5" ad="D"></datatype>
<datatype id="0x0d" name="48-bit data" shortname="dat48" length="6" ad="D"></datatype>
<datatype id="0x0e" name="56-bit data" shortname="dat56" length="7" ad="D"></datatype>
<datatype id="0x0f" name="64-bit data" shortname="dat64" length="8" ad="D"></datatype>
<!-- Logical -->
<datatype id="0x10" name="Boolean" shortname="bool" length="1" inval="0xff" ad="D"></datatype>
<!-- Bitmap -->
<datatype id="0x18" name="8-bit bitmap" shortname="bmp8" length="1" ad="D"></datatype>
<datatype id="0x19" name="16-bit bitmap" shortname="bmp16" length="2" ad="D"></datatype>
<datatype id="0x1a" name="24-bit bitmap" shortname="bmp24" length="3" ad="D"></datatype>
<datatype id="0x1b" name="32-bit bitmap" shortname="bmp32" length="4" ad="D"></datatype>
<datatype id="0x1c" name="40-bit bitmap" shortname="bmp40" length="5" ad="D"></datatype>
<datatype id="0x1d" name="48-bit bitmap" shortname="bmp48" length="6" ad="D"></datatype>
<datatype id="0x1e" name="56-bit bitmap" shortname="bmp56" length="7" ad="D"></datatype>
<datatype id="0x1f" name="64-bit bitmap" shortname="bmp64" length="8" ad="D"></datatype>
<!-- Unsigned integer -->
<datatype id="0x20" name="Unsigned 8-bit integer" shortname="u8" length="1" inval="0xff" ad="A"></datatype>
<datatype id="0x21" name="Unsigned 16-bit integer" shortname="u16" length="2" inval="0xffff" ad="A"></datatype>
<datatype id="0x22" name="Unsigned 24-bit integer" shortname="u24" length="3" inval="0xffffff" ad="A"></datatype>
<datatype id="0x23" name="Unsigned 32-bit integer" shortname="u32" length="4" inval="0xffffffff" ad="A"></datatype>
<datatype id="0x24" name="Unsigned 40-bit integer" shortname="u40" length="5" inval="0xffffffffff" ad="A"></datatype>
<datatype id="0x25" name="Unsigned 48-bit integer" shortname="u48" length="6" inval="0xffffffffffff" ad="A"></datatype>
<datatype id="0x26" name="Unsigned 56-bit integer" shortname="u56" length="7" inval="0xffffffffffffff" ad="A"></datatype>
<datatype id="0x27" name="Unsigned 64-bit integer" shortname="u64" length="8" inval="0xffffffffffffffff" ad="A"></datatype>
<!-- Signed integer -->
<datatype id="0x28" name="Signed 8-bit integer" shortname="s8" length="1" inval="0x80" ad="A"></datatype>
<datatype id="0x29" name="Signed 16-bit integer" shortname="s16" length="2" inval="0x8000" ad="A"></datatype>
<datatype id="0x2a" name="Signed 24-bit integer" shortname="s24" length="3" inval="0x800000" ad="A"></datatype>
<datatype id="0x2b" name="Signed 32-bit integer" shortname="s32" length="4" inval="0x80000000" ad="A"></datatype>
<datatype id="0x2c" name="Signed 40-bit integer" shortname="s40" length="5" inval="0x8000000000" ad="A"></datatype>
<datatype id="0x2d" name="Signed 48-bit integer" shortname="s48" length="6" inval="0x800000000000" ad="A"></datatype>
<datatype id="0x2e" name="Signed 56-bit integer" shortname="s56" length="7" inval="0x80000000000000" ad="A"></datatype>
<datatype id="0x2f" name="Signed 64-bit integer" shortname="s64" length="8" inval="0x8000000000000000" ad="A"></datatype>
<!-- Enumeration -->
<datatype id="0x30" name="8-bit enumeration" shortname="enum8" length="1" inval="0xff" ad="D"></datatype>
<datatype id="0x31" name="16-bit enumeration" shortname="enum16" length="2" inval="0xffff" ad="D"></datatype>
<!-- Floating point -->
<datatype id="0x38" name="Semi-precision" shortname="semi" length="2" inval="nan" ad="A"></datatype>
<datatype id="0x39" name="Single precision" shortname="float" length="4" inval="nan" ad="A"></datatype>
<datatype id="0x3a" name="Double precision" shortname="double" length="8" inval="nan" ad="A"></datatype>
<!-- String -->
<!-- oN, defined in first N octets -->
<datatype id="0x41" name="Octed string" shortname="ostring" length="o1" inval="0xff" ad="D"></datatype>
<datatype id="0x42" name="Character string" shortname="cstring" length="o1" inval="0xff" ad="D"></datatype>
<datatype id="0x43" name="Long octed string" shortname="lostring" length="o2" inval="0xffff" ad="D"></datatype>
<datatype id="0x44" name="Long character string" shortname="lcstring" length="o2" inval="0xffff" ad="D"></datatype>
<!-- Ordered sequence -->
<!-- sloc, sum of length of content -->
<datatype id="0x48" name="Array" shortname="array" length="2+sloc" inval="0xffff" ad="D"></datatype>
<datatype id="0x4c" name="Structure" shortname="struct" length="2+sloc" inval="0xffff" ad="D"></datatype>
<!-- Collection -->
<datatype id="0x50" name="Set" shortname="set" length="sloc" inval="0xffff" ad="D"></datatype>
<datatype id="0x51" name="Bag" shortname="bag" length="sloc" inval="0xffff" ad="D"></datatype>
<!-- Time -->
<datatype id="0xe0" name="Time of day" shortname="time" length="4" inval="0xffffffff" ad="A"></datatype>
<datatype id="0xe1" name="Date" shortname="date" length="4" inval="0xffffffff" ad="A"></datatype>
<datatype id="0xe2" name="UTCTime" shortname="utc" length="4" inval="0xffffffff" ad="A"></datatype>
<!-- Identifier -->
<datatype id="0xe8" name="Cluster ID" shortname="cid" length="2" inval="0xffff" ad="D"></datatype>
<datatype id="0xe9" name="Attribute ID" shortname="aid" length="2" inval="0xffff" ad="D"></datatype>
<datatype id="0xea" name="BACnet OID" shortname="oid" length="4" inval="0xffffffff" ad="D"></datatype>
<!-- Miscellaneous -->
<datatype id="0xf0" name="IEEE address" shortname="uid" length="8" inval="0xffffffffffffffff" ad="D"></datatype>
<datatype id="0xf1" name="128-bit security key" shortname="seckey" length="16" ad="D"></datatype>
</datatypes>
<enumeration id="0x00" name="ZCL_Status">
<value value="0x00" name="SUCCESS"></value>
<value value="0x01" name="FAILURE"></value>
<value value="0x7e" name="NOT_AUTHORIZED"></value>
<value value="0x7f" name="RESERVED_FIELD_NOT_ZERO"></value>
<value value="0x80" name="MALFORMED_COMMAND"></value>
<value value="0x81" name="UNSUP_CLUSTER_COMMAND"></value>
<value value="0x82" name="UNSUP_GENERAL_COMMAND"></value>
<value value="0x83" name="UNSUP_MANUF_CLUSTER_COMMAND"></value>
<value value="0x84" name="UNSUP_MANUF_GENERAL_COMMAND"></value>
<value value="0x85" name="INVALID_FIELD"></value>
<value value="0x86" name="UNSUPPORTED_ATTRIBUTE"></value>
<value value="0x87" name="INVALID_VALUE"></value>
<value value="0x88" name="READ_ONLY"></value>
<value value="0x89" name="INSUFFICIENT_SPACE"></value>
<value value="0x8a" name="DUPLICATE_EXISTS"></value>
<value value="0x8b" name="NOT_FOUND"></value>
<value value="0x8c" name="UNREPORTABLE_ATTRIBUTE"></value>
<value value="0x8d" name="INVALID_DATA_TYPE"></value>
<value value="0x8e" name="INVALID_SECTOR"></value>
<value value="0x8f" name="WRITE_ONLY"></value>
<value value="0x90" name="INCONSISTENT_STARTUP_STATE"></value>
<value value="0x91" name="DEFINED_OUT_OF_BAND"></value>
<value value="0xc0" name="HARDWARE_FAILURE"></value>
<value value="0xc1" name="SOFTWARE_FAILURE"></value>
<value value="0xc2" name="CALIBRATION_ERROR"></value>
</enumeration>
<enumeration id="0x01" name="ZDP_Status">
<value value="0x00" name="SUCCESS"></value>
<value value="0x80" name="INV_REQUESTTYPE"></value>
<value value="0x81" name="DEVICE_NOT_FOUND"></value>
<value value="0x82" name="INVALID_EP"></value>
<value value="0x83" name="NOT_ACTIVE"></value>
<value value="0x84" name="NOT_SUPPORTED"></value>
<value value="0x85" name="TIMEOUT"></value>
<value value="0x86" name="NO_MATCH"></value>
<!-- 0x87 reserved -->
<value value="0x88" name="NO_ENTRY"></value>
<value value="0x89" name="NO_DESCRIPTOR"></value>
<value value="0x8a" name="INSUFFCIENT_SPACE"></value>
<value value="0x8b" name="NOT_PERMITTED"></value>
<value value="0x8c" name="TABLE_FULL"></value>
<value value="0x8d" name="NOT_AUTHORIZED"></value>
</enumeration>
<domain name="General" useZcl="true" description="The general functional domain contains clusters and information that provides generally applicable functions and attributes that are not specific to other functional domains.">
<cluster id="0x0000" name="Basic">
<description>Attributes for determining basic information about a device, setting user device information such as description of location, and enabling a device.</description>
<server>
<attribute-set id="0x0000" description="Basic Device Information">
<attribute id="0x0000" name="ZCL Version" type="u8" access="r" default="0" required="m"></attribute>
<attribute id="0x0001" name="Application Version" type="u8" access="r" default="0" required="o"></attribute>
<attribute id="0x0002" name="Stack Version" type="u8" access="r" default="0" required="o"></attribute>
<attribute id="0x0003" name="HW Version" type="u8" access="r" default="0" required="o"></attribute>
<attribute id="0x0004" name="Manufacturer Name" type="cstring" access="r" required="o" range="0,32"></attribute>
<attribute id="0x0005" name="Model Identifier" type="cstring" access="r" required="o" range="0,32"></attribute>
<attribute id="0x0006" name="Date Code" type="cstring" access="r" required="o" range="0,16"></attribute>
<attribute id="0x0007" name="Power Source" type="enum8" default="0" access="r" required="m">
<value name="Unknown" value="0"></value>
<value name="Mains (single phase)" value="1"></value>
<value name="Mains (3 phase)" value="2"></value>
<value name="Battery" value="3"></value>
<value name="DC Source" value="4"></value>
<value name="Emergency mains constantly powered" value="5"></value>
<value name="Emergency mains and transfer switch" value="6"></value>
<value name="Unknown with battery backup" value="0x80"></value>
<value name="Mains (single phase) with battery backup" value="0x81"></value>
<value name="Mains (3 phase) with battery backup" value="0x82"></value>
<value name="Battery with battery backup" value="0x83"></value>
<value name="DC Source with battery backup" value="0x84"></value>
<value name="Emergency mains constantly powered with battery backup" value="0x85"></value>
<value name="Emergency mains and transfer switch with battery backup" value="0x86"></value>
</attribute>
<attribute id="0x0008" name="Generic Device Class" type="enum8" default="0xff" access="r" required="o" >
<description>IKEA control outlet specific.</description>
<value name="Lighting" value="0"></value>
<value name="Unspecified" value="0xff"></value>
</attribute>
<attribute id="0x0009" name="Generic Device Type" type="enum8" default="0xff" access="r" required="o" >
<description>IKEA control outlet specific.</description>
<value name="Incandescent" value="0"></value>
<value name="Spotlight Halogen" value="1"></value>
<value name="Halogen Bulb" value="2"></value>
<value name="CFL" value="3"></value>
<value name="Linear Fluorencent" value="4"></value>
<value name="LED Bulb" value="5"></value>
<value name="Spotlight LED" value="6"></value>
<value name="LED Strip" value="7"></value>
<value name="LED Tube" value="8"></value>
<value name="Indoor Luminaire" value="9"></value>
<value name="Outdoor Luminaire" value="0x0a"></value>
<value name="Pendant Luminaire" value="0x0b"></value>
<value name="Floor Standing Luminaire" value="0x0c"></value>
<value name="Controller" value="0xe0"></value>
<value name="Wall Switch" value="0xe1"></value>
<value name="Portable Remote Controller" value="0xe2"></value>
<value name="Motion or Light Sensor" value="0xe3"></value>
<!-- 0xe4 to 0xef Reserved -->
<value name="Actuator" value="0xf0"></value>
<value name="Wall Socket" value="0xf1"></value>
<value name="Gateway or Bridge" value="0xf2"></value>
<value name="Plug-In Unit" value="0xf3"></value>
<value name="Retrofit Actuator" value="0xf4"></value>
<value name="Unspecified" value="0xff"></value>
</attribute>
<attribute id="0x000a" name="Product code" type="ostring" access="r" required="o" >
<description>As printed on the product.</description>
</attribute>
<attribute id="0x000b" name="Product URL" type="cstring" access="r" required="o" range="0,50"></attribute>
<attribute id="0x000c" name="Manufacturer Version Details" type="cstring" access="r" required="o"></attribute>
<attribute id="0x000d" name="Serial Number" type="cstring" access="r" required="o"></attribute>
<attribute id="0x000e" name="Product Label" type="cstring" access="r" required="o"></attribute>
<attribute id="0x4000" name="SW Build ID" type="cstring" access="r" required="o" range="0,16"></attribute>
<attribute id="0xff0d" name="Xiaomi Sensitivity" type="u8" access="rw" required="o" mfcode="0x115f"></attribute>
<attribute id="0xff22" name="Xiaomi Disconnect 1" type="u8" showas="hex" access="rw" required="o" mfcode="0x115f">
<description>Set to 0x12 (0xFE) to connect (disconnect) the left button to (from) the relay.</description>
</attribute>
<attribute id="0xff23" name="Xiaomi Disconnect 2" type="u8" showas="hex" access="rw" required="o" mfcode="0x115f">
<description>Set to 0x22 (0xFE) to connect (disconnect) the left button to (from) the relay.</description>
</attribute>
<!-- <attribute id="0xff0d" name="Xiaomi Sensitivity" type="u8" access="rw" required="o" mfcode="0x1037"></attribute> -->
<attribute id="0xfffd" name="Cluster Revision" type="u16" default="0" access="rw" required="o"></attribute>
<attribute id="0xfffe" name="Tuya magic spell final attribute" type="enum8" default="0" access="rw" required="o">
<description>Read attributes in this order Manufacturer name,ZCL version,Application version,Model Identifier,Power source and finally this one"</description>
</attribute>
</attribute-set>
<attribute-set id="0x0010" description="Basic Device Settings">
<attribute id="0x0010" name="Location Description" type="cstring" range="0,16" access="rw" required="o"></attribute>
<attribute id="0x0011" name="Physical Environment" type="enum8" default="0" access="rw" required="o">
<value name="Unspecified Environment" value="0x00"></value>
<value name="Mirror (ZSE Profile)" value="0x01"></value>
<value name="Atrium (non ZSE profile)" value="0x01"></value>
<value name="Bar" value="0x02"></value>
<value name="Courtyard" value="0x03"></value>
<value name="Bathroom" value="0x04"></value>
<value name="Bedroom" value="0x05"></value>
<value name="Billiard Room" value="0x06"></value>
<value name="Utility Room" value="0x07"></value>
<value name="Cellar" value="0x08"></value>
<value name="Storage Closet" value="0x09"></value>
<value name="Theater" value="0x0a"></value>
<value name="Office" value="0x0b"></value>
<value name="Deck" value="0x0c"></value>
<value name="Den" value="0x0d"></value>
<value name="Dining Room" value="0x0e"></value>
<value name="Electrical Room" value="0x0f"></value>
<value name="Elevator" value="0x10"></value>
<value name="Entry" value="0x11"></value>
<value name="Family Room" value="0x12"></value>
<value name="Main Floor" value="0x13"></value>
<value name="Upstairs" value="0x14"></value>
<value name="Downstairs" value="0x15"></value>
<value name="Basement/Lower Level" value="0x16"></value>
<value name="Gallery" value="0x17"></value>
<value name="Game Room" value="0x18"></value>
<value name="Garage" value="0x19"></value>
<value name="Gym" value="0x1a"></value>
<value name="Hallway" value="0x1b"></value>
<value name="House" value="0x1c"></value>
<value name="Kitchen" value="0x1d"></value>
<value name="Laundry Room" value="0x1e"></value>
<value name="Library" value="0x1f"></value>
<value name="Master Bedroom" value="0x20"></value>
<value name="Mud Room (small room for coats and boots)" value="0x21"></value>
<value name="Nursery" value="0x22"></value>
<value name="Pantry" value="0x23"></value>
<value name="Office" value="0x24"></value>
<value name="Outside" value="0x25"></value>
<value name="Pool" value="0x26"></value>
<value name="Porch" value="0x27"></value>
<value name="Sewing Room" value="0x28"></value>
<value name="Sitting Room" value="0x29"></value>
<value name="Stairway" value="0x2a"></value>
<value name="Yard" value="0x2b"></value>
<value name="Attic" value="0x2c"></value>
<value name="Hot Tub" value="0x2d"></value>
<value name="Living Room" value="0x2e"></value>
<value name="Sauna" value="0x2f"></value>
<value name="Shop/Workshop" value="0x30"></value>
<value name="Guest Bedroom" value="0x31"></value>
<value name="Guest Bath" value="0x32"></value>
<value name="Powder Room (1/2 bath)" value="0x33"></value>
<value name="Back Yard" value="0x34"></value>
<value name="Front Yard" value="0x35"></value>
<value name="Patio" value="0x36"></value>
<value name="Driveway" value="0x37"></value>
<value name="Sun Room" value="0x38"></value>
<value name="Living Room" value="0x39"></value>
<value name="Spa" value="0x3a"></value>
<value name="Whirlpool" value="0x3b"></value>
<value name="Shed" value="0x3c"></value>
<value name="Equipment Storage" value="0x3d"></value>
<value name="Hobby/Craft Room" value="0x3e"></value>
<value name="Fountain" value="0x3f"></value>
<value name="Pond" value="0x40"></value>
<value name="Reception Room" value="0x41"></value>
<value name="Breakfast Room" value="0x42"></value>
<value name="Nook" value="0x43"></value>
<value name="Garden" value="0x44"></value>
<value name="Balcony" value="0x45"></value>
<value name="Panic Room" value="0x46"></value>
<value name="Terrace" value="0x47"></value>
<value name="Roof" value="0x48"></value>
<value name="Toilet" value="0x49"></value>
<value name="Toilet Main" value="0x4a"></value>
<value name="Outside Toilet" value="0x4b"></value>
<value name="Shower room" value="0x4c"></value>
<value name="Study" value="0x4d"></value>
<value name="Front Garden" value="0x4e"></value>
<value name="Back Garden" value="0x4f"></value>
<value name="Kettle" value="0x50"></value>
<value name="Television" value="0x51"></value>
<value name="Stove" value="0x52"></value>
<value name="Microwave" value="0x53"></value>
<value name="Toaster" value="0x54"></value>
<value name="Vacuum" value="0x55"></value>
<value name="Appliance" value="0x56"></value>
<value name="Front Door" value="0x57"></value>
<value name="Back Door" value="0x58"></value>
<value name="Fridge Door" value="0x59"></value>
<value name="Medication Cabinet Door" value="0x60"></value>
<value name="Wardrobe Door" value="0x61"></value>
<value name="Front Cupboard Door" value="0x62"></value>
<value name="Other Door" value="0x63"></value>
<value name="Waiting Room" value="0x64"></value>
<value name="Triage Room" value="0x65"></value>
<value name="Doctor’s Office" value="0x66"></value>
<value name="Patient’s Private Room" value="0x67"></value>
<value name="Consultation Room" value="0x68"></value>
<value name="Nurse Station" value="0x69"></value>
<value name="Ward" value="0x6a"></value>
<value name="Corridor" value="0x6b"></value>
<value name="Operating Theatre" value="0x6c"></value>
<value name="Dental Surgery Room" value="0x6d"></value>
<value name="Medical Imaging Room" value="0x6e"></value>
<value name="Decontamination Room" value="0x6f"></value>
<value name="Atrium" value="0x70"></value>
<value name="Mirror" value="0x71"></value>
<value name="Unknown Environment" value="0xff"></value>
</attribute>
<attribute id="0x0012" name="Device Enabled" type="bool" default="1" access="rw" required="o">
<value name="Disabled" value="0"></value>
<value name="Enabled" value="1"></value>
</attribute>
<attribute id="0x0013" name="Alarm Mask" type="bmp8" default="00000000" access="rw" required="o">
<value name="General Hardware Fault" value="0"></value>
<value name="General Software Fault" value="1"></value>
</attribute>
<attribute id="0x0014" name="Disable Local Config" type="bmp8" default="00000000" access="rw" required="o">
<value name="Reset (to factory defaults) disabled" value="0"></value>
<value name="Device configuration disabled" value="1"></value>
</attribute>
</attribute-set>
<attribute-set id="0x0030" description="Hue Specific" mfcode="0x100b">
<!--
<attribute id="0x0000" name="Hue Unknown 0" type="cstring" mfcode="0x100b" access="r" required="o"></attribute>
<attribute id="0x0001" name="Hue Unknown 1" type="u32" mfcode="0x100b" access="r" required="o"></attribute>
<attribute id="0x0002" name="Hue Unknown 1" type="u32" mfcode="0x100b" access="r" required="o"></attribute>
<attribute id="0x0003" name="Hue Unknown 1" type="u32" mfcode="0x100b" access="r" required="o"></attribute>
-->
<attribute id="0x0030" name="Sensitivity" description="Hue motion sensor related SML001" type="enum8" default="0" access="rw" required="o" mfcode="0x100b">
<value name="default" value="0"></value>
<value name="high" value="1"></value>
<value name="max" value="2"></value>
</attribute>
<attribute id="0x0031" name="Configuration" type="bmp16" default="0" access="rw" required="o" mfcode="0x100b" description="TODO flags are only known for hue dimmer switch">
<value name="Touchlink enabled 0" value="0"></value>
<value name="Touchlink enabled 1" value="1"></value>
<value name="Touchlink enabled 2" value="3"></value>
</attribute>
<attribute id="0x0032" name="Usertest" type="bool" default="0" access="rw" required="o" mfcode="0x100b"></attribute>
<attribute id="0x0033" name="LED Indication" type="bool" default="0" access="rw" required="o" mfcode="0x100b"></attribute>
<attribute id="0x0034" name="Device Mode" type="enum8" default="0" access="rw" required="o" mfcode="0x100b">
<value name="Single Rocker" value="0"></value>
<value name="Single Push Button" value="1"></value>
<value name="Dual Rocker" value="2"></value>
<value name="Dual Push Button" value="3"></value>
</attribute>
<attribute id="0x0040" name="Product Identifier" type="cstring" mfcode="0x100b" access="r" required="o"></attribute>
<attribute id="0x0041" name="Software Config Identifier" type="u32" mfcode="0x100b" showas="hex" access="r" required="o"></attribute>
<attribute id="0x0050" name="Hue Unknown 50" type="bmp32" mfcode="0x100b" access="r" required="o">
<value name="Unknown" value="0x00"/>
</attribute>
<attribute id="0x0051" name="Hue Unknown 51" type="enum8" mfcode="0x100b" access="rw" required="o">
<value name="Default" value="0x00"/>
<value name="Hue bridge setting" value="0x01"/>
</attribute>
<attribute id="0xf109" name="Hue Unknown f109" type="bool" mfcode="0x100b" access="r" required="o"></attribute>
</attribute-set>
<attribute-set id="0x4000" description="Manufacturer specific" mfcode="0x1037">
<attribute id="0x4001" name="128-Bit security key" type="seckey" access="r" required="m" mfcode="0x1037"></attribute>
<attribute id="0x4002" name="IEEE address" type="uid" access="rw" required="m" mfcode="0x1037"></attribute>
</attribute-set>
<attribute-set id="0x4000" description="Manufacturer specific" mfcode="0x1166">
<attribute id="0x4001" name="128-Bit security key" type="seckey" access="r" required="m" mfcode="0x1166"></attribute>
<attribute id="0x4002" name="IEEE address" type="uid" access="rw" required="m" mfcode="0x1166"></attribute>
</attribute-set>
<attribute-set id="0x4000" description="Müller Licht specific" mfcode="0x121b">
<attribute id="0x4005" name="Scene" type="u8" access="rw" required="o" mfcode="0x121b"></attribute>
</attribute-set>
<attribute-set id="0x5000" description="ID Lock specific" mfcode="0x1337">
<attribute id="0x5000" name="Lock fw" type="cstring" access="r" required="m" mfcode="0x1337" />
</attribute-set>
<attribute-set id="0x8000" description="Develco specific" mfcode="0x1015">
<attribute id="0x8000" name="Primary SW Version" type="ostring" access="r" required="m" mfcode="0x1015"></attribute>
<attribute id="0x8010" name="Primary Bootloader SW Version" type="ostring" access="r" required="m" mfcode="0x1015"></attribute>
<attribute id="0x8020" name="Primary HW Version" type="ostring" access="r" required="m" mfcode="0x1015"></attribute>
<attribute id="0x8030" name="Primary HW name" type="ostring" access="r" required="m" mfcode="0x1015"></attribute>
<attribute id="0x8050" name="Primary SW Version 3rd Party" type="ostring" access="r" required="m" mfcode="0x1015"></attribute>
<attribute id="0x8100" name="LED Control" type="bmp8" default="0xff" access="rw" required="o" mfcode="0x1015">
<value name="0x00 - LED disabled, 0x01 - Enable periodic fault flashes" value="0"></value>
<value name="0x02 - Indicate motion detection" value="1"></value>
</attribute>
</attribute-set>
<attribute-set id="0x9000" description="Sunricher specific" mfcode="0x1224">
<attribute id="0x8806" name="Dimming brightness curve" type="u8" default="0x00" access="rw" required="m" mfcode="0x1224">
<description>Works after reset power of the device.
0: linear,
15: logarithmic with gamma value 1.5,
18: logarithmic with gamma value 1.8</description>
</attribute>
<attribute id="0x8903" name="Motion sensor daylight sensor lux threshold" type="u16" default="0x0000" access="rw" required="m" mfcode="0x1224">
<description>2 bytes, only when the detected lux is lower than the threshold, turning on the light is permitted. For instance, with value 0x0000, this function does not work.</description>
</attribute>
<attribute id="0x8904" name="Motion sensor operation mode" type="u8" default="0x00" access="rw" required="m" mfcode="0x1224">
<description>0: means auto mode,
1: means manual mode
Auto mode means that when a motion is detected, the device will output PWM according to the set brightness threshold, and delay time.
PWM status needs to be reported to the gateway.
Manual mode means that PWM output is controlled and determined by the gateway or the wireless switch, not associated with motion detection.</description>
</attribute>
<attribute id="0x8905" name="Motion sensor sensitivity setting" type="u8" default="0x01" access="rw" required="m" mfcode="0x1224">
<description>Works after reset power of the device. 1 byte, data range 0-15, 0 is the highest sensitivity, 15 is the lowest sensitivity.</description>
</attribute>
<attribute id="0x8906" name="Motion sensor microwave detection" type="u8" default="0x01" access="rw" required="m" mfcode="0x1224">
<description>Works after reset power of the device.
0: disabled,
1: enabled.</description>
</attribute>
<attribute id="0x8907" name="Send ON/OFF command to the touchlink devices" type="u8" default="0x01" access="rw" required="m" mfcode="0x1224">
<description>Works after reset power of the device. Configuration of whether to send ON/OFF command to the touchlink devices and binding devices.
0=do not send,
1=send</description>
</attribute>
<attribute id="0x890C" name="Brightness module" type="u8" default="0x01" access="rw" required="m" mfcode="0x1224">
<description>0=disabled,
1=enabled</description>
</attribute>
<attribute id="0x8902" name="Light on time" type="u16" default="0x003C" access="rw" required="m" mfcode="0x1224">
<description>Light on time (the first delay time).
Works after reset power of the device. When motion sensor mode is set as auto mode, and motion is detected, after the person leaves, light on time of the device.
2 bytes, unit is second.</description>
</attribute>
<attribute id="0x8908" name="Brightness of PWM output when motion detected" type="u16" default="0x0000" access="rw" required="m" mfcode="0x1224">
<description>Configuration of the brightness value of PWM output when motion detected, this brightness value is controlled through PWM output working as PID
closed loop control to achieve the constant light output. Value range is 0-1000LUX, 0LUX means this attribute is disabled, and PWM output when motion
detected is not associated with the brightness value.</description>
</attribute>
<attribute id="0x8909" name="PWM output percentage when motion detected" type="u8" default="0xfe" access="rw" required="m" mfcode="0x1224">
<description>Configuration of PWM output percentage when motion detected. Value Range is 0-254, which means 0-100%.
When configured PID closed loop control brightness LUX is 0, PWM output of the device is according to this value.</description>
</attribute>
<attribute id="0x890A" name="Light on time (status 2nd delay)" type="u8" default="0x00" access="rw" required="m" mfcode="0x1224">
<description>After the light on time expires, the light status within the duration of 2nd delay time. Value Range is 0-254, which means 0-100%.</description>
</attribute>
<attribute id="0x8901" name="Light on time (duration 2nd delay)" type="u16" default="0x003C" access="rw" required="m" mfcode="0x1224">
<description>After the light on time expires, the duration of 2nd delay time. Value range is 0-65536s.</description>
</attribute>
<attribute id="0x890B" name="Light status after expiration 2nd delay time" type="u8" default="0x00" access="rw" required="m" mfcode="0x1224">
<description>After the 2nd delay time expires, the status of the light. Value Range is 0-254, which means 0-100%.</description>
</attribute>
<attribute id="0x890D" name="Linearity error ratio coefficient of LUX measurement (M)" type="u16" default="0x03E8" access="rw" required="m" mfcode="0x1224">
<description>Default value is 1000, which means 1000 per mill. When increase the value of M, LUX measurement value will be magnified linearly.
When decrease the value of M, LUX measurement value will be minified linearly. For instance, modify M value as 1001, LUX measurement value will be magnified
to 1.001 times. Modify M value as 500, LUX measurement value will be magnified to 0.5 times.</description>
</attribute>
<attribute id="0x890E" name="Fixed deviation of LUX measurement" type="s16" default="0x0000" access="rw" required="m" mfcode="0x1224">
<description>For instance, if we need to increase the measurement value by 100LUX, then this parameter value will be +100.
If we need to decrease the measurement value by 100LUX, then this parameter value will be -100.
</description>
</attribute>
</attribute-set>
<attribute-set id="0x9000" description="Sunricher specific" mfcode="0x1224">
<attribute id="0x9001" name="Light PWM Frequency" type="u16" default="0x0CE4" access="rw" required="m" mfcode="0x1224">
<description>Works after reset power of the device, the device that directly outputs PWM can be configured,
DO NOT set the PWM frequency too high which will affect the dimming resolution.</description>
</attribute>
</attribute-set>
<attribute-set id="0xe000" description="Schneider specific" mfcode="0x105e">
<attribute id="0xe001" name="Application FW Version" type="cstring" access="r" required="o" mfcode="0x105e"></attribute>
<attribute id="0xe002" name="Application HW Version" type="cstring" access="r" required="o" mfcode="0x105e"></attribute>
<attribute id="0xe004" name="Serial Number" type="cstring" access="r" required="o" mfcode="0x105e"></attribute>
<attribute id="0xe007" name="Product Indentifier" type="enum16" access="r" required="o" mfcode="0x105e"></attribute>
<attribute id="0xe008" name="Product Range" type="cstring" access="r" required="o" mfcode="0x105e"></attribute>
<attribute id="0xe009" name="Product Model" type="cstring" access="r" required="o" mfcode="0x105e"></attribute>
<attribute id="0xe00a" name="Product Family" type="cstring" access="r" required="o" mfcode="0x105e"></attribute>
<attribute id="0xe00b" name="Vendor URL" type="cstring" access="r" required="o" mfcode="0x105e"></attribute>
</attribute-set>
<attribute-set id="0xFF00" description="Xiaomi specific" mfcode="0x1037">
<attribute id="0xFF0D" name="Xiaomi Sensitivity" type="u8" access="rw" required="o" mfcode="0x115f"></attribute>
<attribute id="0xFF22" name="Xiaomi Disconnect 1" type="u8" showas="hex" access="rw" required="o" mfcode="0x115f">
<description>Set to 0x12 (0xFE) to connect (disconnect) the left button to (from) the relay.</description>
</attribute>
<attribute id="0xFF23" name="Xiaomi Disconnect 2" type="u8" showas="hex" access="rw" required="o" mfcode="0x115f">
<description>Set to 0x22 (0xFE) to connect (disconnect) the left button to (from) the relay.</description>
</attribute>
</attribute-set>
<attribute-set id="0xFF00" description="Xiaomi specific" mfcode="0x115f">
<attribute id="0xFF08" name="Unknown" type="u16" access="rw" required="o" mfcode="0x115f"></attribute>
<attribute id="0xFF51" name="Unknown" type="ostring" access="rw" required="o" mfcode="0x115f"></attribute>
<attribute id="0xFF52" name="Unknown" type="cstring" access="rw" required="o" mfcode="0x115f"></attribute>
<attribute id="0xFF53" name="Unknown" type="ostring" access="rw" required="o" mfcode="0x115f"></attribute>
<attribute id="0xFF54" name="Unknown" type="ostring" access="rw" required="o" mfcode="0x115f"></attribute>
<attribute id="0xFFF0" name="Unknown" type="ostring" access="rw" required="o" mfcode="0x115f"></attribute>
</attribute-set>
<attribute-set id="0xFF00" description="Tuya specific" mfcode="0x1002">
<attribute id="0xffde" name="Reporting1" type="u8" default="0" access="rw" required="o"></attribute>
<attribute id="0xffe2" name="Unknown1" type="u8" default="0" access="rw" required="o"></attribute>
<attribute id="0xffe4" name="Unknown2" type="u8" default="0" access="rw" required="o"></attribute>
<attribute id="0xfffe" name="Unknown3" type="enum8" default="0" access="rw" required="o"></attribute>
</attribute-set>
<command id="00" dir="recv" name="Reset to Factory Defaults" required="o"></command>
<command id="0xc0" dir="recv" name="Hue Capabilities" vendor="0x100b" required="o" response="0xc1">
<payload>
<attribute id="0x0000" type="u8" name="0x00" default="0x00" showas="hex" required="m"></attribute>
<attribute id="0x0001" type="u32" name="Offset" default="0x00" showas="hex" required="m"></attribute>
<attribute id="0x0002" type="u8" name="Max Packet Size" default="0x40" showas="hex" required="m"></attribute>
</payload>
</command>
</server>
<client>
<command id="0xc1" dir="recv" name="Hue Capabilities Response" vendor="0x100b" required="o">
<payload>
<attribute id="0x0000" type="u16" name="Status" showas="hex" required="m"></attribute>
<attribute id="0x0001" type="u32" name="Offset" showas="hex" required="m"></attribute>
<attribute id="0x0002" type="u32" name="Total Payload Length" showas="hex" required="m"></attribute>
<attribute id="0x0003" type="ostring" name="Payload" required="m"></attribute>
</payload>
</command>
</client>
</cluster>
<cluster id="0x0001" name="Power Configuration">
<description>Attributes for determining more detailed information about a device’s power source(s), and for configuring under/over voltage alarms.</description>
<server>
<attribute-set id="0x0000" description="Mains Information">
<attribute id="0x0000" name="Mains Voltage" type="u16" access="r" required="o"></attribute>
<attribute id="0x0001" name="Mains Frequency" type="u8" access="r" required="o"></attribute>
</attribute-set>
<attribute-set id="0x0010" description="Mains Settings">
<attribute id="0x0010" name="Mains Alarm Mask" type="bmp8" default="00000000" access="rw" required="o">
<value name="Mains Voltage too low (7.2.2.2.2)" value="0"></value>
<value name="Mains Voltage too high (7.2.2.2.3)" value="1"></value>
</attribute>
<attribute id="0x0011" name="Mains Voltage Min Threshold" type="u16" access="rw" default="0" required="o"></attribute>
<attribute id="0x0012" name="Mains Voltage Max Threshold" type="u16" access="rw" default="0xffff" required="o"></attribute>
<attribute id="0x0013" name="Mains Voltage Dwell Trip Point" type="u16" access="rw" default="0" required="o"></attribute>
</attribute-set>
<attribute-set id="0x0020" description="Battery Information">
<attribute id="0x0020" name="Battery Voltage" type="u8" access="r" required="o"></attribute>
<attribute id="0x0021" name="Battery Percentage Remaining" type="u8" access="r" required="o"></attribute>
</attribute-set>
<attribute-set id="0x0030" description="Battery Settings">
<attribute id="0x0030" name="Battery Manufacturer" type="cstring" access="rw" required="o" range="0,16"></attribute>
<attribute id="0x0031" name="Battery Size" type="enum8" default="0xff" access="rw" required="o">
<value name="No Battery" value="0"></value>
<value name="Built in" value="1"></value>
<value name="Other" value="2"></value>
<value name="AA" value="3"></value>
<value name="AAA" value="4"></value>
<value name="C" value="5"></value>
<value name="D" value="6"></value>
<value name="CR2" value="7"></value>
<value name="CR123A" value="8"></value>
<value name="Unknown" value="0xff"></value>
</attribute>
<attribute id="0x0032" name="Battery AHr Rating" type="u16" access="rw" required="o"></attribute>
<attribute id="0x0033" name="Battery Quantity" type="u8" access="rw" required="o"></attribute>
<attribute id="0x0034" name="Battery Rated Voltage" type="u8" access="rw" required="o"></attribute>
<attribute id="0x0035" name="Battery Alarm Mask" type="bmp8" default="00000000" access="rw" required="o">
<value name="Battery Voltage too low" value="0"></value>
<value name="Battery Alarm 1" value="1"></value>
<value name="Battery Alarm 2" value="2"></value>
<value name="Battery Alarm 3" value="3"></value>
</attribute>
<attribute id="0x0036" name="Battery Voltage Min Threshold" type="u8" access="rw" default="00" required="o"></attribute>
<attribute id="0x003e" name="Battery Alarm State" type="bmp32" access="rw" default="0" required="o"></attribute>
</attribute-set>
</server>
<client>
</client>
</cluster>
<cluster id="0x0002" name="Device Temperature Configuration">
<description>Attributes for determining information about a device’s internal temperature, and for configuring under/over temperature alarms.</description>
<server>
<attribute-set id="0x0000" description="Device Temperature Information">
<attribute id="0x0000" name="Current Temperature" type="s16" access="r" range="-200,200" required="m"></attribute>
<attribute id="0x0001" name="Min Temp Experienced" type="s16" access="r" range="-200,200" required="o"></attribute>
<attribute id="0x0002" name="Max Temp Experienced" type="s16" access="r" range="-200,200" required="o"></attribute>
<attribute id="0x0003" name="Over Temp Total Dwell" type="u16" access="r" range="0x0000,0xffff" default="0" required="o"></attribute>
</attribute-set>
<attribute-set id="0x0010" description="Device Temperature Settings">
<attribute id="0x0010" name="Device Temp Alarm Mask" type="bmp8" access="rw" range="00000000,00000011" default="00000000" required="o"></attribute>
<attribute id="0x0011" name="Low Temp Threshold" type="s16" access="rw" range="-200,200" required="o"></attribute>
<attribute id="0x0012" name="High Temp Threshold" type="s16" access="rw" range="-200,200" required="o"></attribute>
<attribute id="0x0013" name="Low Temp Dwell Trip Point" type="u24" access="rw" range="0x000000,0xffffff" required="o"></attribute>
<attribute id="0x0014" name="High Temp Dwell Trip Point" type="u24" access="rw" range="0x000000,0xffffff" required="o"></attribute>
</attribute-set>
</server>
<client>
</client>
</cluster>
<cluster id="0x0003" name="Identify">
<description>Attributes and commands for putting a device into Identification mode (e.g. flashing a light)</description>
<server>
<attribute id="0x0000" name="Identify Time" type="u16" access="rw" default="0x0000" range="0x0000,0xfff" required="m"></attribute>
<attribute id="0x4000" name="Identification button" type="bool" default="0x00" access="r" required="m" mfcode="0x1246"></attribute>
<command id="00" dir="recv" name="Identify" required="m">
<description>Start or stop the device identifying itself.</description>
<payload>
<attribute id="0x0000" type="u16" name="Identify Time" required="m" default="5">
<description>The time in seconds for which a device will stay in identify mode.</description>
</attribute>
</payload>
</command>
<command id="01" dir="recv" name="Identify Query" response="0x00" required="m">
<description>Allows the sending device to request the target or targets to respond if they are currently identifying themselves.</description>
<payload>
</payload>
</command>
<command id="40" dir="recv" name="Trigger Effect" required="m">
<description>The trigger effect command allows the support of feedback to the user, such as a certain light effect.
</description>
<payload>
<attribute id="0x0000" type="enum8" name="Effect identifier" required="m" default="0x00">
<description>The effect identifier field specifies the identify effect to use.</description>
<value name="Blink" value="0x00"></value>
<value name="Breathe" value="0x01"></value>
<value name="Okay" value="0x02"></value>
<value name="Channel change" value="0x0b"></value>
<value name="Finish" value="0xfe"></value>
<value name="Stop" value="0xff"></value>
</attribute>
<attribute id="0x0001" type="enum8" name="Effect variant" required="m" default="0">
<description>The effect identifier field specifies the identify effect to use.</description>
<value name="Default" value="0x00"></value>
</attribute>
</payload>
</command>
</server>
<client>
<command id="00" dir="recv" name="Identify Query Response" required="m">
<description>Response of a identify query command.</description>
<payload>
<attribute id="0x0000" type="u16" name="Timeout" required="m" default="0">
<description>The time in seconds for which a device will stay in identify mode.</description>
</attribute>
</payload>
</command>
</client>
</cluster>
<cluster id="0x0004" name="Groups">
<description>Attributes and commands for group configuration and manipulation.</description>
<server>
<attribute id="0000" name="Name Support" type="bmp8" range="x0000000" access="r" required="m">
<value name="Name Support" value="7"></value>
</attribute>
<attribute id="0x0001" name="IKEA Scene" type="u32" access="rw" required="m" showas="hex" mfcode="0x117c"></attribute>
<command id="00" dir="recv" name="Add group" required="m" response="0x00">
<description>Add a group to the device.</description>
<payload>
<attribute id="0x0000" type="u16" name="Group ID" showas="hex" required="m" default="0x0000"></attribute>
<attribute id="0x0001" type="cstring" name="Group Name" required="m"></attribute>
</payload>
</command>
<command id="01" dir="recv" name="View group" required="m" response="0x01">
<description>Get the name of a group.</description>
<payload>
<attribute id="0x0000" type="u16" name="Group ID" showas="hex" required="m" default="0x0000"></attribute>
</payload>
</command>
<command id="02" dir="recv" name="Get group membership" required="m" response="0x02">
<description>Get the group membership of the device.</description>
<payload>
<attribute id="0x0000" type="u8" name="Group count" required="m" default="0x00"></attribute>
<attribute id="0x0001" type="u16" name="Group list" showas="hex" listSize="@0x0000" required="m" ></attribute>
</payload>
</command>
<command id="03" dir="recv" name="Remove group" required="m" response="0x03">
<description>Remove a group from the device.</description>
<payload>
<attribute id="0x0000" type="u16" name="Group ID" showas="hex" required="m" default="0x0000"></attribute>
</payload>
</command>
<command id="04" dir="recv" name="Remove all groups" required="m">
<description>Remove all group from the device.</description>
</command>
</server>
<client>
<command id="00" dir="recv" name="Add group response" required="m">
<description>The Response to the add group request.</description>
<payload>
<attribute id="0x0000" type="enum8" name="Status" required="m" default="0x00" enumeration="ZCL_Status"></attribute>
<attribute id="0x0001" type="u16" name="Group ID" showas="hex" required="m" default="0x0000"></attribute>
</payload>
</command>
<command id="01" dir="recv" name="View group response" required="m">
<description>The Response to the view group request.</description>
<payload>
<attribute id="0x0000" type="enum8" name="Status" required="m" default="0x00" enumeration="ZCL_Status"></attribute>
<attribute id="0x0001" type="u16" name="Group ID" showas="hex" required="m" default="0x0000"></attribute>
<attribute id="0x0002" type="cstring" name="Group Name" required="m"></attribute>
<condition id="0x0000" op="!=" value="0x00">
<action action="ignore" id="0x0001" />
<action action="ignore" id="0x0002" />
</condition>
</payload>
</command>
<command id="02" dir="recv" name="Get group membership response" required="m">
<description>The Response to the get group membership request.</description>
<payload>
<attribute id="0x0000" type="u8" name="Capacity" required="m" default="0x00"></attribute>
<attribute id="0x0001" type="u8" name="Group count" required="m" default="0x00"></attribute>
<attribute id="0x0002" type="u16" name="Group list" showas="hex" listSize="0x0001" required="o" ></attribute>
</payload>
</command>
<command id="03" dir="recv" name="Remove group response" required="m">
<description>The Response to the remove group request.</description>
<payload>
<attribute id="0x0000" type="enum8" name="Status" required="m" default="0x00" enumeration="ZCL_Status"></attribute>
<attribute id="0x0001" type="u16" name="Group ID" showas="hex" required="m" default="0x0000"></attribute>
</payload>
</command>
</client>
</cluster>
<cluster id="0x0005" name="Scenes">
<description>Attributes and commands for scene configuration and manipulation.</description>
<server>
<attribute id="0x0000" name="Scene Count" type="u8" range="0x00-0xff" access="r" required="m" showas="hex" default="0x00"></attribute>
<attribute id="0x0001" name="Current Scene" type="u8" range="0x00-0xff" access="r" required="m" showas="hex" default="0x00"></attribute>
<!--
<attribute id="0x0001" name="Hue Unknown 01" type="bmp32" mfcode="0x100b" access="r" required="o" default="0x00"></attribute>
-->
<attribute id="0x0002" name="Current Group" type="u16" range="0x0000-0xfff7" access="r" required="m" showas="hex" default="0x0000"></attribute>
<attribute id="0x0003" name="Scene Valid" type="bool" access="r" required="m" default="0"></attribute>
<attribute id="0x0004" name="Name Support" type="bmp8" access="r" showas="hex" required="m" default="0"></attribute>
<attribute id="0x0005" name="Last ConfiguredBy" type="uid" access="r" showas="hex" required="o"></attribute>
<command id="0x00" dir="recv" name="Add scene" required="m" response="0x00">
<description>Add a scenes to the group (empty).</description>
<payload>
<attribute id="0x0000" type="u16" name="Group ID" required="m" showas="hex" default="0x0000"></attribute>
<attribute id="0x0001" type="u8" name="Scene ID" required="m" showas="hex" default="0x00"></attribute>
<attribute id="0x0002" type="u16" name="Transition Time" required="m" showas="hex" default="0x0000"></attribute>
<attribute id="0x0003" type="u8" name="Name Length" required="m" showas="hex" default="0x00"></attribute>
</payload>
</command>
<command id="0x01" dir="recv" name="View scene" required="m" response="0x01">
<description>Views the scenes of a group.</description>
<payload>
<attribute id="0x0000" type="u16" name="Group ID" required="m" showas="hex" default="0x0000"></attribute>
<attribute id="0x0001" type="u8" name="Scene ID" required="m" showas="hex" default="0x00"></attribute>
</payload>
</command>
<command id="0x02" dir="recv" name="Remove scene" required="m" response="0x02">
<description>Removes a scenes of a group.</description>
<payload>
<attribute id="0x0000" type="u16" name="Group ID" required="m" showas="hex" default="0x0000"></attribute>
<attribute id="0x0001" type="u8" name="Scene ID" required="m" showas="hex" default="0x00"></attribute>
</payload>
</command>
<command id="0x03" dir="recv" name="Remove all scenes" required="m" response="0x03">
<description>Removes all scenes of a group.</description>
<payload>
<attribute id="0x0000" type="u16" name="Group ID" required="m" showas="hex" default="0x0000"></attribute>
</payload>
</command>
<command id="0x04" dir="recv" name="Store scene" required="m" response="0x04">
<description>Stores a scene of a group for a device.</description>
<payload>
<attribute id="0x0000" type="u16" name="Group ID" required="m" showas="hex" default="0x0000"></attribute>
<attribute id="0x0001" type="u8" name="Scene ID" required="m" showas="hex" default="0x00"></attribute>
</payload>
</command>
<command id="0x05" dir="recv" name="Recall scene" required="m" response="0x05">
<description>Recalls a scene of a group for a device.</description>
<payload>
<attribute id="0x0000" type="u16" name="Group ID" required="m" showas="hex" default="0x0000"></attribute>
<attribute id="0x0001" type="u8" name="Scene ID" required="m" showas="hex" default="0x00"></attribute>
</payload>
</command>
<command id="0x06" dir="recv" name="Get scene membership" required="m" response="0x06">
<description>Get the scenes of a group for a device.</description>
<payload>
<attribute id="0x0000" type="u16" name="Group ID" required="m" showas="hex" default="0x0000"></attribute>
</payload>
</command>
<command id="0x41" dir="recv" name="Enhanced view scene" required="m" response="0x41">
<description>Views the scenes of a group.</description>
<payload>
<attribute id="0x0000" type="u16" name="Group ID" required="m" showas="hex" default="0x0000"></attribute>
<attribute id="0x0001" type="u8" name="Scene ID" required="m" showas="hex" default="0x00"></attribute>
</payload>
</command>
<command id="0x07" dir="recv" name="IKEA step" required="o" vendor="0x117c">
<description>Command sent by TRADFRI remote control on press left or right. Set Direction to 1 for left or leave at 0 for right. Leave the Unknown parameters at their default values.</description>
<payload>
<attribute id="0x0000" type="u8" name="Direction" required="m" default="0x0"></attribute>
<attribute id="0x0001" type="u8" name="Unknown" required="m" showas="hex" default="0x01"></attribute>
<attribute id="0x0002" type="u16" name="Unknown" required="m" showas="hex" default="0x000d"></attribute>
</payload>
</command>
<command id="0x08" dir="recv" name="IKEA move" required="o" vendor="0x117c">
<description>Command sent by TRADFRI remote control on hold left or right. Set Direction to 1 for left or leave at 0 for right. Leave the Unknown parameter at its default value.</description>
<payload>
<attribute id="0x0000" type="u8" name="Direction" required="m" default="0x0"></attribute>
<attribute id="0x0001" type="u16" name="Unknown" required="m" showas="hex" default="0x000d"></attribute>
</payload>
</command>
<command id="0x09" dir="recv" name="IKEA stop" required="o" vendor="0x117c">
<description>Command sent by TRADFRI remote control on release (after hold). Leave the Unknown parameter at its default value.</description>
<payload>
<attribute id="0x0000" type="u16" name="Unknown" required="m" showas="hex" default="0x0000"></attribute>
</payload>
</command>
<!-- TODO -->
</server>
<client>
<command id="0x00" dir="recv" name="Add scene response" required="m">
<description>Response to the add scene command.</description>
<payload>
<attribute id="0x0000" type="enum8" name="Status" required="m" default="0x00" enumeration="ZCL_Status"></attribute>
<attribute id="0x0001" type="u16" name="Group ID" required="m" showas="hex" default="0x0000"></attribute>
<attribute id="0x0002" type="u8" name="Scene ID" required="m" showas="hex" default="0x00"></attribute>
</payload>
</command>
<command id="0x01" dir="recv" name="View scene response" required="m">
<description>Response to the view scene command.</description>
<payload>
<attribute id="0x0000" type="enum8" name="Status" required="m" default="0x00" enumeration="ZCL_Status"></attribute>
<attribute id="0x0001" type="u16" name="Group ID" required="m" showas="hex" default="0x0000"></attribute>
<attribute id="0x0002" type="u8" name="Scene ID" required="m" showas="hex" default="0x00"></attribute>
<attribute id="0x0003" type="u16" name="Transition Time" required="m" showas="hex" default="0x0000"></attribute>
</payload>
</command>
<command id="0x02" dir="recv" name="Remove scene response" required="m">
<description>Response to the remove scene command.</description>
<payload>
<attribute id="0x0000" type="enum8" name="Status" required="m" default="0x00" enumeration="ZCL_Status"></attribute>
<attribute id="0x0001" type="u16" name="Group ID" required="m" showas="hex" default="0x0000"></attribute>
<attribute id="0x0002" type="u8" name="Scene ID" required="m" showas="hex" default="0x00"></attribute>
</payload>
</command>
<command id="0x03" dir="recv" name="Remove all scenes response" required="m">
<description>Response to the remove all scenes command.</description>
<payload>
<attribute id="0x0000" type="enum8" name="Status" required="m" default="0x00" enumeration="ZCL_Status"></attribute>
<attribute id="0x0001" type="u16" name="Group ID" required="m" showas="hex" default="0x0000"></attribute>
</payload>
</command>
<command id="0x04" dir="recv" name="Store scene response" required="m">
<description>Response to the store scene command.</description>
<payload>
<attribute id="0x0000" type="enum8" name="Status" required="m" default="0x00" enumeration="ZCL_Status"></attribute>
<attribute id="0x0001" type="u16" name="Group ID" required="m" showas="hex" default="0x0000"></attribute>
<attribute id="0x0002" type="u8" name="Scene ID" required="m" showas="hex" default="0x00"></attribute>
</payload>
</command>
<command id="0x06" dir="recv" name="Get scene membershio response" required="m">
<description>Shows details about scene membership.</description>
<payload>
<attribute id="0x0000" type="enum8" name="Status" required="m" default="0x00" enumeration="ZCL_Status"></attribute>
<attribute id="0x0001" type="u8" name="Capacity" required="m" showas="dec" default="0x00"></attribute>
<attribute id="0x0002" type="u16" name="Group ID" required="m" showas="hex" default="0x0000"></attribute>
<attribute id="0x0003" type="u8" name="Scene count" required="m" showas="dec" default="0x00"></attribute>
</payload>
</command>
<command id="0x41" dir="recv" name="Enhanced view scene response" required="m">
<description>A scene description.</description>
<payload>
<attribute id="0x0000" type="enum8" name="Status" required="m" default="0x00" enumeration="ZCL_Status"></attribute>
<attribute id="0x0001" type="u16" name="Group ID" required="m" showas="hex" default="0x0000"></attribute>
<attribute id="0x0002" type="u8" name="Scene ID" required="m" showas="hex" default="0x00"></attribute>
<attribute id="0x0003" type="u16" name="Transition Time" required="m" showas="dec" default="0x00"></attribute>
<attribute id="0x0004" type="cstring" name="Name" required="m"></attribute>
</payload>
</command>
<!-- TODO -->
</client>
</cluster>
<cluster id="0x0006" name="On/Off">
<description>Attributes and commands for switching devices between 'On' and 'Off' states.</description>
<server>
<attribute-set id="0x0000" description="OnOff state">
<attribute id="0000" name="OnOff" type="bool" access="r" default="0" required="m">
<value name="On" value="1"></value>
<value name="Off" value="0"></value>
</attribute>
<attribute id="0x4000" name="GlobalSceneControl" type="bool" access="r" default="0x01" required="o"></attribute>
<attribute id="0x4001" name="OnTime" type="u16" access="rw" default="0" required="o"></attribute>
<attribute id="0x4002" name="OffWaitTime" type="u16" access="rw" default="0" required="o"></attribute>
<attribute id="0x4003" name="StartUp OnOff" type="enum8" access="rw" default="0x01" required="o">
<value name="Off" value="0x00"></value>
<value name="On" value="0x01"></value>
<value name="Toggle" value="0x02"></value>
<value name="Previous" value="0xff"></value>
</attribute>
</attribute-set>
<attribute-set id="0x8000" description="Xiaomi" mfcode="0x1037">
<attribute id="0x8000" name="Button Press" type="u8" access="r" required="o"/>
</attribute-set>
<attribute-set id="0x8001" description="Tuya special">
<attribute id="0x8001" name="Back Light mode" type="enum8" default="0" required="o" access="rw">
<value name="Mode 1-Off" value="0"></value>
<value name="Mode 2-Light when On" value="1"></value>
<value name="Mode 3-Light when Off" value="2"></value>
<value name="Mode 4-Actual state" value="3"></value>
</attribute>
<attribute id="0x8002" name="Power on state" type="enum8" default="0" required="o" access="rw">
<value name="Off" value="0"></value>
<value name="On" value="1"></value>
<value name="Last state" value="2"></value>
</attribute>
<attribute id="0x8003" name="Over current alarm" type="bool" default="0" required="o" access="r">
<value name="Over current OK" value="0"></value>
<value name="Over current alarm" value="1"></value>
</attribute>
<attribute id="0x8004" name="Switch operation mode" type="enum8" default="0" required="m" access="r">
<value name="Command Mode (Light OnOff/Dimmer commands)" value="0"></value>
<value name="Event Mode (Tuya Scene commands)" value="1"></value>
</attribute>
</attribute-set>
<attribute-set id="0xe000" description="Schneider specific" mfcode="0x105e">
<attribute id="0xe001" name="On Time Reload" type="u32" access="rw" required="o" mfcode="0x105e">
<description>Defines number of seconds before the light is switched off automaticaly. Time is in seconds.
Value 0 disables the functionality. When brightness is changed, or ON command is received, timer is always restarted.
Check On Time Reload Options for possible impulse modes (if attribute is implemented).</description>
</attribute>
</attribute-set>
<command id="00" dir="recv" name="Off" required="m">
<description>On receipt of this command, a device shall enter its 'Off' state. This state is device dependent, but it is recommended that it is used for power off or similar functions.</description>
</command>
<command id="01" dir="recv" name="On" required="m">
<description>On receipt of this command, a device shall enter its 'On' state. This state is device dependent, but it is recommended that it is used for power on or similar functions.</description>
</command>
<command id="02" dir="recv" name="Toggle" required="m">
<description>On receipt of this command, if a device is in its ‘Off’ state it shall enter its 'On' state. Otherwise, if it is in its ‘On’ state it shall enter its 'Off' state.</description>
</command>
<command id="40" dir="recv" name="Off with effect" required="m">
<description></description>
<payload>
<attribute id="0x0000" type="enum8" name="Effect identifier" required="m" default="0x00">
<description>The effect identifier field specifies the fading effect to use.</description>
<value name="Delayed all off" value="0x00"></value>
<value name="Dying light" value="0x01"></value>
</attribute>
<attribute id="0x0001" type="enum8" name="Effect variant" required="m" default="0x00">
<description>The effect identifier field specifies the effect variant to use.</description>
<value name="Fade off in 0.8s (Delayed all off)/20% dim up in 0.5s then off in 1s (Dying light)" value="0x00"></value>
<value name="No fade (Delayed all off)" value="0x01"></value>
<value name="50% dim down in 0.8s then fade off in 12s (Delayed all off)" value="0x02"></value>
</attribute>
</payload>
</command>
<command id="41" dir="recv" name="On with recall global scene" required="m">
<description>The on with recall global scene command allows the recall of the light settings when the light was turned off.</description>
</command>
<command id="42" dir="recv" name="On with timed off" required="m">
<description>Allows lamps to be turned on for a specific duration with a guarded off duration so that should the lamp be subsequently switched off, further on with timed off commands, received during this time, are prevented from turning the lamps back on.</description>
<payload>
<attribute id="0x0000" type="bmp8" name="On/off control" required="m" default="0x00">
<description>The effect identifier field specifies the fading effect to use.</description>
<value name="Accept only when on" value="0"></value>
</attribute>
<attribute id="0x0001" type="u16" name="On time" required="m" default="0x0000">
<description>Length of time (in 1/10ths second) that the lamp is to remain on.</description>
</attribute>
<attribute id="0x0002" type="u16" name="Off wait time" required="m" default="0x0000">
<description>Length of time (in 1/10ths second) that the lamp shall remain off.</description>
</attribute>
</payload>
</command>
</server>
<client>
</client>
</cluster>
<cluster id="0xde06" name="RGB Color">
<description>Attributes and commands for setting devices light color. The color is specified in the RGB range from 0 - 255.</description>
<server>
<attribute id="0000" name="CurrentColorSet" type="u32" access="r" default="0" required="m" showas="hex"></attribute>
<attribute id="0001" name="ColorSetCount" type="u8" access="r" default="0" required="m"></attribute>
<command id="00" dir="recv" name="Set Color" required="m">
<description>On receipt of this command, the color of the light shall be changed and the current index updatet.</description>
<payload>
<attribute id="0x0000" type="u8" name="Red" required="m" default="0x00" range="0x00,0xFF" showas="slider"></attribute>
<attribute id="0x0001" type="u8" name="Green" required="m" default="0x00" range="0x00,0xFF" showas="slider"></attribute>
<attribute id="0x0002" type="u8" name="Blue" required="m" default="0x00" range="0x00,0xFF" showas="slider"></attribute>
<attribute id="0x0003" type="u8" name="Set Index" required="m" default="0x00"></attribute>
<attribute id="0x0004" type="bmp8" name="Options" required="m" default="0x00">
<value name="Change colors" value="0"></value>
<value name="Use current preset" value="1"></value>
</attribute>
</payload>
</command>
</server>
<client>
</client>
</cluster>
<cluster id="0x0007" name="On/Off Switch Configuration">
<description>Attributes and commands for configuring On/Off switching devices</description>
<server>
<attribute-set id="0x0000" description="Switch Information">