forked from dresden-elektronik/deconz-rest-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
general.xml
4509 lines (4431 loc) · 276 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="00" name="No data" shortname="ndat" length="0" ad="-"></datatype>
<!--General data -->
<datatype id="08" name="8-bit data" shortname="dat8" length="1" ad="D"></datatype>
<datatype id="09" name="16-bit data" shortname="dat16" length="2" ad="D"></datatype>
<datatype id="0a" name="24-bit data" shortname="dat24" length="3" ad="D"></datatype>
<datatype id="0b" name="32-bit data" shortname="dat32" length="4" ad="D"></datatype>
<datatype id="0c" name="40-bit data" shortname="dat40" length="5" ad="D"></datatype>
<datatype id="0d" name="48-bit data" shortname="dat48" length="6" ad="D"></datatype>
<datatype id="0e" name="56-bit data" shortname="dat56" length="7" ad="D"></datatype>
<datatype id="0f" name="64-bit data" shortname="dat64" length="8" ad="D"></datatype>
<!-- Logical -->
<datatype id="10" name="Boolean" shortname="bool" length="1" inval="ff" ad="D"></datatype>
<!-- Bitmap -->
<datatype id="18" name="8-bit bitmap" shortname="bmp8" length="1" ad="D"></datatype>
<datatype id="19" name="16-bit bitmap" shortname="bmp16" length="2" ad="D"></datatype>
<datatype id="1a" name="24-bit bitmap" shortname="bmp24" length="3" ad="D"></datatype>
<datatype id="1b" name="32-bit bitmap" shortname="bmp32" length="4" ad="D"></datatype>
<datatype id="1c" name="40-bit bitmap" shortname="bmp40" length="5" ad="D"></datatype>
<datatype id="1d" name="48-bit bitmap" shortname="bmp48" length="6" ad="D"></datatype>
<datatype id="1e" name="56-bit bitmap" shortname="bmp56" length="7" ad="D"></datatype>
<datatype id="1f" name="64-bit bitmap" shortname="bmp64" length="8" ad="D"></datatype>
<!-- Unsigned integer -->
<datatype id="20" name="Unsigned 8-bit integer" shortname="u8" length="1" inval="ff" ad="A"></datatype>
<datatype id="21" name="Unsigned 16-bit integer" shortname="u16" length="2" inval="ffff" ad="A"></datatype>
<datatype id="22" name="Unsigned 24-bit integer" shortname="u24" length="3" inval="ffffff" ad="A"></datatype>
<datatype id="23" name="Unsigned 32-bit integer" shortname="u32" length="4" inval="ffffffff" ad="A"></datatype>
<datatype id="24" name="Unsigned 40-bit integer" shortname="u40" length="5" inval="ffffffffff" ad="A"></datatype>
<datatype id="25" name="Unsigned 48-bit integer" shortname="u48" length="6" inval="ffffffffffff" ad="A"></datatype>
<datatype id="26" name="Unsigned 56-bit integer" shortname="u56" length="7" inval="ffffffffffffff" ad="A"></datatype>
<datatype id="27" name="Unsigned 64-bit integer" shortname="u64" length="8" inval="ffffffffffffffff" ad="A"></datatype>
<!-- Signed integer -->
<datatype id="28" name="Signed 8-bit integer" shortname="s8" length="1" inval="80" ad="A"></datatype>
<datatype id="29" name="Signed 16-bit integer" shortname="s16" length="2" inval="8000" ad="A"></datatype>
<datatype id="2a" name="Signed 24-bit integer" shortname="s24" length="3" inval="800000" ad="A"></datatype>
<datatype id="2b" name="Signed 32-bit integer" shortname="s32" length="4" inval="80000000" ad="A"></datatype>
<datatype id="2c" name="Signed 40-bit integer" shortname="s40" length="5" inval="8000000000" ad="A"></datatype>
<datatype id="2d" name="Signed 48-bit integer" shortname="s48" length="6" inval="800000000000" ad="A"></datatype>
<datatype id="2e" name="Signed 56-bit integer" shortname="s56" length="7" inval="80000000000000" ad="A"></datatype>
<datatype id="2f" name="Signed 64-bit integer" shortname="s64" length="8" inval="8000000000000000" ad="A"></datatype>
<!-- Enumeration -->
<datatype id="30" name="8-bit enumeration" shortname="enum8" length="1" inval="ff" ad="D"></datatype>
<datatype id="31" name="16-bit enumeration" shortname="enum16" length="2" inval="ffff" ad="D"></datatype>
<!-- Floating point -->
<datatype id="38" name="Semi-precision" shortname="semi" length="2" inval="nan" ad="A"></datatype>
<datatype id="39" name="Single precision" shortname="float" length="4" inval="nan" ad="A"></datatype>
<datatype id="3a" name="Double precision" shortname="double" length="8" inval="nan" ad="A"></datatype>
<!-- String -->
<!-- oN, defined in first N octets -->
<datatype id="41" name="Octed string" shortname="ostring" length="o1" inval="ff" ad="D"></datatype>
<datatype id="42" name="Character string" shortname="cstring" length="o1" inval="ff" ad="D"></datatype>
<datatype id="43" name="Long octed string" shortname="lostring" length="o2" inval="ffff" ad="D"></datatype>
<datatype id="44" name="Long character string" shortname="lcstring" length="o2" inval="ffff" ad="D"></datatype>
<!-- Ordered sequence -->
<!-- sloc, sum of length of content -->
<datatype id="48" name="Array" shortname="array" length="2+sloc" inval="ffff" ad="D"></datatype>
<datatype id="4c" name="Structure" shortname="struct" length="2+sloc" inval="ffff" ad="D"></datatype>
<!-- Collection -->
<datatype id="50" name="Set" shortname="set" length="sloc" inval="ffff" ad="D"></datatype>
<datatype id="51" name="Bag" shortname="bag" length="sloc" inval="ffff" ad="D"></datatype>
<!-- Time -->
<datatype id="e0" name="Time of day" shortname="time" length="4" inval="ffffffff" ad="A"></datatype>
<datatype id="e1" name="Date" shortname="date" length="4" inval="ffffffff" ad="A"></datatype>
<datatype id="e2" name="UTCTime" shortname="utc" length="4" inval="ffffffff" ad="A"></datatype>
<!-- Identifier -->
<datatype id="e8" name="Cluster ID" shortname="cid" length="2" inval="ffff" ad="D"></datatype>
<datatype id="e9" name="Attribute ID" shortname="aid" length="2" inval="ffff" ad="D"></datatype>
<datatype id="ea" name="BACnet OID" shortname="oid" length="4" inval="ffffffff" ad="D"></datatype>
<!-- Miscellaneous -->
<datatype id="f0" name="IEEE address" shortname="uid" length="8" inval="ffffffffffffffff" ad="D"></datatype>
<datatype id="f1" 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="Mains (single phase) with battery backup" value="0x81"></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>
<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="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-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="0"></value>
<!-- 0x01 - 0x7f Specified per Profile -->
<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="Philips Specific" mfcode="0x100b">
<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-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-set>
<attribute id="0xfffd" name="Cluster Revision" type="u16" default="0" access="rw" required="o"></attribute>
<command id="00" dir="recv" name="Reset to Factory Defaults" required="o"></command>
</server>
<client>
</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="ffff" 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="ff" 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>
</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="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>
</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-set>
<attribute-set id="0x4000" description="ZLL extensions">
<attribute id="0x4000" name="GlobalSceneControl" type="bool" access="r" default="0" required="o">
</attribute>
<attribute id="0x4001" name="OnTime" type="u16" access="r" default="0" required="o">
</attribute>
<attribute id="0x4002" name="OffWaitTime" type="u16" access="r" default="0" required="o">
</attribute>
<attribute id="0x4003" name="PowerOn OnOff" type="enum8" access="rw" default="0x01" required="o">
<value name="Off" value="0x00"></value>
<value name="On" value="0x01"></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="Light mode" type="enum8" default="0" required="m" access="r">
<value name="Mode 1" value="0"></value>
<value name="Mode 2" value="1"></value>
<value name="Mode 3" value="2"></value>
</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)" 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>
<value name="20% dim up in 0.5s then off in 1s (Dying light)" value="0x00"></value>
<value name="" value="0x01"></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">
<attribute id="0x0000" name="SwitchType" type="enum8" access="r" default="0" required="m">
<description>The SwitchType attribute specifies the basic functionality of the On/Off switching device.</description>
<value name="Toggle" value="0">
<description>A switch with two physical states. An action by the user (e.g. toggling a rocker switch) moves the switch from state 1 to state 2. The switch then remains in that state until another action from the user returns it to state 1.</description>
</value>
<value name="Momentary" value="1">
<description>A switch with two physical states. An action by the user (e.g. pressing a button) moves the switch from state 1 to state 2. When the user ends his action (e.g. releases the button) the switch returns to state 1.</description>
</value>
</attribute>
</attribute-set>
<attribute-set id="0x0010" description="Switch Settings">
<attribute id="0x0010" name="SwitchActions" type="enum8" access="rw" default="0" required="m">
<description>The SwitchActions attribute is 8-bits in length and specifies the commands of the On/Off cluster to be generated when the switch moves between its two states.</description>
<value name="On-Off" value="0"></value>
<value name="Off-On" value="1"></value>
<value name="Toggle" value="2"></value>
</attribute>
</attribute-set>
</server>
<client>
</client>
<!-- TODO -->
</cluster>
<cluster id="0x0008" name="Level Control">
<description>This cluster provides an interface for controlling a characteristic of a device that can be set to a level, for example the brightness of a light, the degree of closure of a door, or the power output of a heater.</description>
<server>
<attribute id = "0x0000" name="Current Level" type="u8" range="0x00,0xff" access="r" required="m" default="0x00">
<description>The CurrentLevel attribute represents the current level of this device. meaning of 'level' is device dependent.</description>
</attribute>
<attribute id = "0x0001" name="Remaining Time" type="u16" range="0x0000,0xffff" access="r" required="o" default="0x0000">
<description>The RemainingTime attribute represents the time remaining until the current command is complete - it is specified in 1/10ths of a second.</description>
</attribute>
<attribute id = "0x0010" name="OnOff Transistion Time" type="u16" range="0x0000,0xffff" access="rw" required="o" default="0x0000">
<description>The OnOffTransitionTime attribute represents the time taken to move to or from the target level when On of Off commands are received by an On/Off cluster on the same endpoint. It is specified in 1/10ths of a second. The actual time taken should be as close to OnOffTransitionTime as the device is able.</description>
</attribute>
<attribute id = "0x0011" name="On Level" type="u8" range="0x01,0xff" access="rw" required="o" default="0xff">
<description>The OnLevel attribute determines the value that the CurrentLevel attribute is set to when the OnOff attribute of an On/Off cluster on the same endpoint is set to On. If the OnLevel attribute is not implemented, or is set to 0xff, it has no effect.</description>
</attribute>
<attribute id = "0x0012" name="On Transition Time" type="u16" range="0x0000,0xfffe" access="rw" required="o" default="0">
<description>The OnTransitionTime attribute represents the time taken to move the current level from the minimum level to the maximum level when an On command is received by an On/Off cluster on the same endpoint. It is specified in 10ths of a second. If this command is not implemented, or contains a value of 0xffff, the On/OffTransitionTime will be used instead.</description>
</attribute>
<attribute id = "0x0013" name="Off Transition Time" type="u16" range="0x0000,0xfffe" access="rw" required="o" default="0">
<description>The OffTransitionTime attribute represents the time taken to move the current level from the maximum level to the minimum level when an Off command is received by an On/Off cluster on the same endpoint. It is specified in 10ths of a second. If this command is not implemented, or contains a value of 0xffff, the On/OffTransitionTime will be used instead.</description>
</attribute>
<attribute id = "0x0014" name="Default Move Rate" type="u8" range="0x00,0xfe" access="rw" required="o">
<description>The DefaultMoveRate attribute determines the movement rate, in units per second, when a Move command is received with a Rate parameter of 0xFF.</description>
</attribute>
<attribute id = "0x000f" name="Unknown" type="bmp8" access="rw" required="o">
<description>IKEA specific.</description>
</attribute>
<attribute id="0x4000" name="PowerOn Level" type="u8" access="rw" required="o">
</attribute>
<command id="0x00" dir="recv" name="Move to Level" required="m">
<description></description>
<payload>
<attribute id="0x0000" type="u8" name="Level" required="m" default="0x00" range="0x00,0xff"></attribute>
<attribute id="0x0001" type="u16" name="Transistion time" required="m" default="0x0000"></attribute>
</payload>
</command>
<command id="0x01" dir="recv" name="Move" required="m">
<description></description>
<payload>
<attribute id="0x0000" type="enum8" name="Move mode" required="m" default="0x00">
<value name="Up" value="0x00"></value>
<value name="Down" value="0x01"></value>
</attribute>
<attribute id="0x0001" type="u8" name="Rate" required="m" default="0x00"></attribute>
</payload>
</command>
<command id="0x02" dir="recv" name="Step" required="m">
<description></description>
<payload>
<attribute id="0x0000" type="enum8" name="Step mode" required="m" default="0x00">
<value name="Up" value="0x00"></value>
<value name="Down" value="0x01"></value>
</attribute>
<attribute id="0x0001" type="u8" name="Step size" required="m" default="0x00"></attribute>
<attribute id="0x0002" type="u16" name="Transition time" required="m" default="0x0000"></attribute>
</payload>
</command>
<command id="0x03" dir="recv" name="Stop" required="m">
<description></description>
</command>
<command id="0x04" dir="recv" name="Move to Level (with On/Off)" required="m">
<description></description>
<payload>
<attribute id="0x0000" type="u8" name="Level" required="m" default="0x00" range="0x00,0xff"></attribute>
<attribute id="0x0001" type="u16" name="Transistion time" required="m" default="0x0000"></attribute>
</payload>
</command>
<command id="0x05" dir="recv" name="Move (with On/Off)" required="m">
<description></description>
<payload>
<attribute id="0x0000" type="enum8" name="Move mode" required="m" default="0x00">
<value name="Up" value="0x00"></value>
<value name="Down" value="0x01"></value>
</attribute>
<attribute id="0x0001" type="u8" name="Rate" required="m" default="0x00"></attribute>
</payload>
</command>
<command id="0x06" dir="recv" name="Step (with On/Off)" required="m">
<description></description>
<payload>
<attribute id="0x0000" type="enum8" name="Step mode" required="m" default="0x00">
<value name="Up" value="0x00"></value>
<value name="Down" value="0x01"></value>
</attribute>
<attribute id="0x0001" type="u8" name="Step size" required="m" default="0x00"></attribute>
<attribute id="0x0002" type="u16" name="Transition time" required="m" default="0x0000"></attribute>
</payload>
</command>
<command id="0x07" dir="recv" name="Stop (with On/Off)" required="m">
<description></description>
</command>
</server>
<client>
<!-- TODO commands -->
</client>
<!-- TODO -->
</cluster>
<cluster id="0x0009" name="Alarms">
<description>Sending alarm notifications and configuring alarm functionality.</description>
<!-- TODO -->
<server>
<attribute-set id="0x0000" description="Alarm Information">
<attribute id="0x0000" name="Alarm Count" type="u16" access="rw" required="m" default="0x00"></attribute>
</attribute-set>
<command id="0x00" dir="send" name="Alarm" required="m">
<payload>
<attribute id="0x0000" type="u8" name="Alarm code" default="0x00" required="m" showas="hex">
</attribute>
<attribute id="0x0001" type="u16" name="Cluster Id" default="0x0000" required="m" showas="hex"></attribute>
</payload>
</command>
</server>
<client>
</client>
</cluster>
<cluster id="0x000a" name="Time">
<description>This cluster provides a basic interface to a real-time clock.</description>
<server>
<attribute id="0000" name="Time" type="utc" access="rw" required="m"></attribute>
<attribute id="0001" name="Time Status" type="bmp8" default="0b00000000" access="rw" required="m">
<value name="Master Clock" value="0"></value>
<value name="Synchronized" value="1"></value>
<value name="Master for Timezone and Dst" value="2"></value>
<value name="Superseding" value="3"></value>
</attribute>
<attribute id="0002" name="Time Zone" type="s32" range="-86400,86400" default="0" access="rw" required="o"></attribute>
<attribute id="0003" name="Dst Start" type="u32" range="0x00000000,0xfffffffe" access="rw" required="o"></attribute>
<attribute id="0004" name="Dst End" type="u32" range="0x00000000,0xfffffffe" access="rw" required="o"></attribute>
<attribute id="0005" name="Dst Shift" type="s32" range="-86400,86400" default="0" access="rw" required="o"></attribute>
<attribute id="0006" name="Standard Time" type="u32" range="0x00000000,0xfffffffe" access="r" required="o"></attribute>
<attribute id="0007" name="Local Time" type="u32" range="0x00000000,0xfffffffe" access="r" required="o"></attribute>
<attribute id="0008" name="Last Set Time" type="utc" range="0x00000000,0xfffffffe" default="0xffffffff" access="r" required="o"></attribute>
<attribute id="0009" name="Valid Until Time" type="utc" range="0x00000000,0xfffffffe" default="0xffffffff" access="rw" required="o"></attribute>
<!-- TODO -->
</server>
<client>
</client>
</cluster>
<cluster id="0x000b" name="Location">
<description>Measure distance between devices.</description>
<server>
<command id="0x40" dir="recv" name="Distance measure" required="m" response="0x40" showas="hex">
<description></description>
<payload>
<attribute id="0x0000" type="u16" name="Target address" required="m" default="0x0000" ></attribute>
<attribute id="0x0001" type="enum8" name="Resolution" required="m" default="0x00">
<value name="High" value="0x00"></value>
<value name="Mid" value="0x01"></value>
<value name="Low" value="0x02"></value>
</attribute>
</payload>
</command>
</server>
<client>
<command id="0x40" dir="recv" name="Distance measure response" required="m">
<description>Returns the result of a distance measure.</description>
<payload>
<attribute id="0x0000" type="u16" name="Target address" required="m" default="0x0000" showas="hex"></attribute>
<attribute id="0x0001" type="u16" name="Distance (Meter)" required="m" default="0"></attribute>
<attribute id="0x0002" type="u16" name="Quality index" required="m" default="0"></attribute>
</payload>
</command>
</client>
<!-- TODO -->
</cluster>
<cluster id="0x000c" name="Analog Input (Basic)">
<description>An interface for reading the value of an analog measurement and accessing various characteristics of that measurement.</description>
<server>
<attribute id="0x001c" name="Description" type="cstring" required="o" access="rw"></attribute>
<attribute id="0x0041" name="Max Present Value" type="float" required="o" access="rw"></attribute>
<attribute id="0x0045" name="Min Present Value" type="float" required="o" access="rw"></attribute>
<attribute id="0x0051" name="Out of service" type="bool" required="m" access="rw" default="0"></attribute>
<attribute id="0x0055" name="Present value" type="float" required="m" access="rw" default="0"></attribute>
<attribute id="0x0067" name="Reliability" type="enum8" required="o" access="rw" default="0">
<value name="No fault detected" value="0"></value>
<value name="No sensor" value="1"></value>
<value name="Over range" value="2"></value>
<value name="Under range" value="3"></value>
<value name="Open loop" value="4"></value>
<value name="Shorted loop" value="5"></value>
<value name="No output" value="6"></value>
<value name="Unreliable other" value="7"></value>
<value name="Process error" value="8"></value>
<value name="Multi state fault" value="9"></value>
<value name="Configuration error" value="10"></value>
</attribute>
<attribute id="0x006a" name="Resolution" type="float" required="o" access="rw"></attribute>
<attribute id="0x006f" name="Status flags" type="bmp8" required="m" access="r" default="0">
<value name="In Alarm" value="0x01"></value>
<value name="Fault" value="0x02"></value>
<value name="Overidden" value="0x04"></value>
<value name="Out of Service" value="0x08"></value>
</attribute>
<attribute id="0x0075" name="Engineering Units" type="enum16" required="o" access="rw"></attribute>
<attribute id="0x0100" name="Application Type" type="u32" required="o" access="r"></attribute>
<attribute id="0xff05" name="Unknown" type="u16" required="o" access="r" default="0" showas="hex"></attribute>
</server>
<client>
</client>
</cluster>
<cluster id="0x000d" name="Analog Output (Basic)">
<description>The Analog Output (Basic) cluster provides an interface for setting the value of an analog output (typically to the environment) and accessing various characteristics of that value.</description>
<server>
<attribute id="0x001c" name="Description" type="cstring" required="o" access="rw"></attribute>
<attribute id="0x0041" name="Max Present Value" type="float" required="o" access="rw"></attribute>
<attribute id="0x0045" name="Min Present Value" type="float" required="o" access="rw"></attribute>
<attribute id="0x0051" name="Out of service" type="bool" required="m" access="rw" default="0"></attribute>
<attribute id="0x0055" name="Present value" type="float" required="m" access="rw" default="0"></attribute>
<attribute id="0x0067" name="Reliability" type="enum8" required="o" access="rw" default="0">
<value name="No fault detected" value="0"></value>
<value name="No sensor" value="1"></value>
<value name="Over range" value="2"></value>
<value name="Under range" value="3"></value>
<value name="Open loop" value="4"></value>
<value name="Shorted loop" value="5"></value>
<value name="No output" value="6"></value>
<value name="Unreliable other" value="7"></value>
<value name="Process error" value="8"></value>
<value name="Multi state fault" value="9"></value>
<value name="Configuration error" value="10"></value>
</attribute>
<attribute id="0x0068" name="Relinquish Default" type="float" required="o" access="rw"></attribute>
<attribute id="0x006a" name="Resolution" type="float" required="o" access="rw"></attribute>
<attribute id="0x006f" name="Status flags" type="bmp8" required="m" access="r" default="0">
<value name="In Alarm" value="0x01"></value>
<value name="Fault" value="0x02"></value>
<value name="Overidden" value="0x04"></value>
<value name="Out of Service" value="0x08"></value>
</attribute>
<attribute id="0x0075" name="Engineering Units" type="enum16" required="o" access="rw"></attribute>
<attribute id="0x0100" name="Application Type" type="u32" required="o" access="r"></attribute>
<attribute id="0xf000" name="Xiaomi 0xf000" type="u32" required="o" access="r"></attribute>
</server>
<client>
</client>
</cluster>
<cluster id="0x000e" name="Analog Value (Basic)">
<description>An interface for setting an analog value, typically used as a control system parameter, and accessing various characteristics of that value.</description>
<server>
<attribute id="0x001c" name="Description" type="cstring" required="o" access="rw"></attribute>
<attribute id="0x0051" name="Out of service" type="bool" required="m" access="rw" default="0"></attribute>
<attribute id="0x0055" name="Present value" type="float" required="m" access="rw" default="0"></attribute>
<attribute id="0x0067" name="Reliability" type="enum8" required="o" access="rw" default="0">
<value name="No fault detected" value="0"></value>
<value name="No sensor" value="1"></value>
<value name="Over range" value="2"></value>
<value name="Under range" value="3"></value>
<value name="Open loop" value="4"></value>
<value name="Shorted loop" value="5"></value>
<value name="No output" value="6"></value>
<value name="Unreliable other" value="7"></value>
<value name="Process error" value="8"></value>
<value name="Multi state fault" value="9"></value>
<value name="Configuration error" value="10"></value>
</attribute>
<attribute id="0x0068" name="Relinquish Default" type="float" required="o" access="rw"></attribute>
<attribute id="0x006f" name="Status flags" type="bmp8" required="m" access="r" default="0">
<value name="In Alarm" value="0x01"></value>
<value name="Fault" value="0x02"></value>
<value name="Overidden" value="0x04"></value>
<value name="Out of Service" value="0x08"></value>