-
Notifications
You must be signed in to change notification settings - Fork 6
/
Level.xml
156 lines (154 loc) · 6.88 KB
/
Level.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
<?xml version="1.0"?>
<!--
Connectivity Standards Alliance owns the copyright to the text and content displayed or
included in this document (including in PDF, XML files and other formats) in
all forms of media, which copyright is protected by the copyright laws of the
United States and by international treaties. Full text of licensing terms
applicable to this document can be found in the LICENSE.md file.
-->
<zcl:cluster
xmlns:zcl="http://zigbee.org/zcl/clusters"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:type="http://zigbee.org/zcl/types"
xmlns:xi="http://www.w3.org/2001/XInclude"
xsi:schemaLocation="http://zigbee.org/zcl/clusters cluster.xsd http://zigbee.org/zcl/types type.xsd"
id="0008" revision="3" name="Level">
<classification role="application" picsCode="LVL" primaryTransaction="1" />
<type:type short="LevelOptions" name="LevelOptions" id="18" inheritsFrom="map8">
<bitmap>
<element name="ExecuteIfOff" type="bool" mask="01" />
<!-- Used in Level Control for Lighting -->
<element name="CoupleColorTempToLevel" type="bool" mask="02" shiftRight="1" />
</bitmap>
</type:type>
<type:type short="MoveStepMode" name="MoveStepMode" id="30" inheritsFrom="enum8">
<restriction>
<type:enumeration value="00" name="Up" />
<type:enumeration value="01" name="Down" />
</restriction>
</type:type>
<server>
<attributes>
<attribute id="0000" name="CurrentLevel" type="uint8" reportRequired="true" sceneRequired="true" default="255" required="true">
<restriction>
<type:minInclusiveRef ref="MinLevel" />
<type:maxInclusiveRef ref="MaxLevel" />
</restriction>
</attribute>
<attribute id="0001" name="RemainingTime" type="uint16" max="65535" default="0" />
<attribute id="0002" name="MinLevel" type="uint8" default="0">
<restriction>
<type:maxInclusiveRef ref="MaxLevel" />
</restriction>
</attribute>
<attribute id="0003" name="MaxLevel" type="uint8" max="255" default="255">
<restriction>
<type:minInclusiveRef ref="MinLevel" />
</restriction>
</attribute>
<attribute id="0004" name="CurrentFrequency" type="uint16" reportRequired="true" sceneRequired="true" default="0">
<restriction>
<type:minInclusiveRef ref="MinFrequency" />
<type:maxInclusiveRef ref="MaxFrequency" />
</restriction>
</attribute>
<attribute id="0005" name="MinFrequency" type="uint16" default="0">
<restriction>
<type:maxInclusiveRef ref="MaxFrequency" />
</restriction>
</attribute>
<attribute id="0006" name="MaxFrequency" type="uint16" max="65535" default="0">
<restriction>
<type:minInclusiveRef ref="MinFrequency" />
</restriction>
</attribute>
<attribute id="0010" name="OnOffTransitionTime" type="uint16" max="65535" writable="true" default="0" />
<attribute id="0011" name="OnLevel" type="uint8" writable="true" default="255">
<restriction>
<type:minInclusiveRef ref="MinLevel" />
<type:maxInclusiveRef ref="MaxLevel" />
</restriction>
</attribute>
<attribute id="0012" name="OnTransitionTime" type="uint16" max="65534" writable="true" default="65535" />
<attribute id="0013" name="OffTransitionTime" type="uint16" max="65534" writable="true" default="65535" />
<attribute id="0014" name="DefaultMoveRate" type="uint8" max="254" writable="true" />
<attribute id="000F" name="Options" type="LevelOptions" writable="true" default="0" />
<attribute id="4000" name="StartUpCurrentLevel" type="uint8" max="255" writable="true">
<restriction>
<type:special value="00" name="MinimumDeviceValuePermitted" />
<type:enumeratedRange min="01" max="fe" />
<type:special value="ff" name="SetToPreviousValue" />
</restriction>
</attribute>
</attributes>
<commands>
<command id="00" name="MoveToLevel" required="true">
<fields>
<field name="Level" type="uint8" />
<field name="TransitionTime" type="uint16" />
<field name="OptionsMask" type="LevelOptions" default="0"/>
<field name="OptionsOverride" type="LevelOptions" default="0"/>
</fields>
</command>
<command id="01" name="Move" required="true">
<fields>
<field name="MoveMode" type="MoveStepMode" />
<field name="Rate" type="uint8" />
<field name="OptionsMask" type="LevelOptions" default="0" />
<field name="OptionsOverride" type="LevelOptions" default="0" />
</fields>
</command>
<command id="02" name="Step" required="true">
<fields>
<field name="StepMode" type="MoveStepMode" />
<field name="StepSize" type="uint8" />
<field name="TransitionTime" type="uint16" />
<field name="OptionsMask" type="LevelOptions" default="0" />
<field name="OptionsOverride" type="LevelOptions" default="0" />
</fields>
</command>
<command id="03" name="Stop" required="true">
<fields>
<field name="OptionsMask" type="LevelOptions" default="0" />
<field name="OptionsOverride" type="LevelOptions" default="0" />
</fields>
</command>
<command id="04" name="MoveToLevelWithOnOff" required="true">
<fields>
<field name="Level" type="uint8" />
<field name="TransitionTime" type="uint16" />
<field name="OptionsMask" type="LevelOptions" default="0" />
<field name="OptionsOverride" type="LevelOptions" default="0" />
</fields>
</command>
<command id="05" name="MoveWithOnOff" required="true">
<fields>
<field name="MoveMode" type="MoveStepMode" />
<field name="Rate" type="uint8" />
<field name="OptionsMask" type="LevelOptions" default="0" />
<field name="OptionsOverride" type="LevelOptions" default="0" />
</fields>
</command>
<command id="06" name="StepWithOnOff" required="true">
<fields>
<field name="StepMode" type="MoveStepMode" />
<field name="StepSize" type="uint8" />
<field name="TransitionTime" type="uint16" />
<field name="OptionsMask" type="LevelOptions" default="0" />
<field name="OptionsOverride" type="LevelOptions" default="0" />
</fields>
</command>
<command id="07" name="StopWithOnOff" required="true">
<fields>
<field name="OptionsMask" type="LevelOptions" default="0" />
<field name="OptionsOverride" type="LevelOptions" default="0" />
</fields>
</command>
<command id="08" name="MoveToClosestFrequency" requiredIf="defined(CurrentFrequency)">
<fields>
<field name="Frequency" type="uint16" />
</fields>
</command>
</commands>
</server>
</zcl:cluster>