-
Notifications
You must be signed in to change notification settings - Fork 6
/
global.xml
310 lines (293 loc) · 13.2 KB
/
global.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
<?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:global xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:type="http://zigbee.org/zcl/types" xmlns:zcl="http://zigbee.org/zcl/clusters"
xsi:schemaLocation="http://zigbee.org/zcl/clusters cluster.xsd http://zigbee.org/zcl/types type.xsd">
<type:type short="anyType" name="Any Type" id="ff" inheritsFrom="unk">
<restriction>
<type:sequence>
<field name="Type" type="zclType" />
<field name="Value" type="unk" />
</type:sequence>
</restriction>
</type:type>
<type:type id="ff" short="readAttributeResponseRecord" name="Read Attributes Status Record">
<restriction>
<type:sequence>
<field name="AttributeIdentifier" type="attribId" />
<field name="Status" type="zclStatus" />
<field name="Attribute" type="anyType" presentIf="Status=0" />
</type:sequence>
</restriction>
</type:type>
<type:type id="ff" short="writeAttributeRecord" name="Write Attribute Record">
<restriction>
<type:sequence>
<field name="AttributeIdentifier" type="attribId" />
<field name="Attribute" type="anyType" />
</type:sequence>
</restriction>
</type:type>
<type:type id="ff" short="writeAttributeResponseRecord" name="Write Attribute Status Record">
<restriction>
<type:sequence>
<field name="Status" type="zclStatus" />
<field name="AttributeIdentifier" type="attribId" presentIf="Status != 0" />
</type:sequence>
</restriction>
</type:type>
<type:type id="30" short="reportingRole" name="Reporting Destination" inheritsFrom="enum8">
<restriction>
<type:enumeration name="Generator" value="00" />
<type:enumeration name="Recipient" value="01" />
</restriction>
</type:type>
<type:type id="ff" short="configureReportingRecord" name="Attribute Reporting Configuration Record">
<restriction>
<type:sequence>
<field name="Direction" type="reportingRole" />
<field name="AttributeIdentifier" type="attribId" />
<field name="AttributeType" type="zclType" presentIf="Direction = 0" />
<field name="MinimumReportingInterval" type="uint16" presentIf="Direction = 0" />
<field name="MaximumReportingInterval" type="uint16" presentIf="Direction = 0" />
<field name="ReportableChange" type="unk" presentIf="Direction = 0 and ((AttributeType >= 0x20 and AttributeType <= 0x2f) or (AttributeType >= 0x38 and AttributeType <= 0x3a) or (AttributeType >= 0xe0 and AttributeType <= 0xe2))" />
<field name="Timeout" type="uint16" presentIf="Direction = 1" />
</type:sequence>
</restriction>
</type:type>
<type:type id="ff" short="configureReportingResponseRecord"
name="Attribute Reporting Configuration Status Record">
<restriction>
<type:sequence>
<field name="Status" type="zclStatus" />
<field name="Direction" type="reportingRole" presentIf="Status != 0" />
<field name="AttributeIdentifier" type="attribId" presentIf="Status != 0" />
</type:sequence>
</restriction>
</type:type>
<type:type id="ff" short="readReportingConfigurationRecord" name="Read Reporting Configuration Record">
<restriction>
<type:sequence>
<field name="Direction" type="reportingRole" />
<field name="AttributeIdentifier" type="attribId" />
</type:sequence>
</restriction>
</type:type>
<type:type id="ff" short="readReportingConfigurationResponseRecord"
name="Read Reporting Configuration Response Record">
<restriction>
<type:sequence>
<field name="Status" type="zclStatus" />
<field name="Direction" type="reportingRole" />
<field name="AttributeIdentifier" type="attribId" />
<field name="AttributeType" type="zclType" presentIf="Status=0 and Direction = 0" />
<field name="MinimumReportingInterval" type="uint16" presentIf="Status=0 and Direction = 0" />
<field name="MaximumReportingInterval" type="uint16" presentIf="Status=0 and Direction = 0" />
<field name="ReportableChange" type="unk" presentIf="Status=0 and Direction = 0 and ((AttributeType >= 0x20 and AttributeType <= 0x2f) or (AttributeType >= 0x38 and AttributeType <= 0x3a) or (AttributeType >= 0xe0 and AttributeType <= 0xe2))" />
<field name="Timeout" type="uint16" presentIf="Status=0 and Direction = 1" />
</type:sequence>
</restriction>
</type:type>
<type:type id="ff" short="attributeReportRecord" name="Attribute Report Record">
<restriction>
<type:sequence>
<field name="AttributeIdentifier" type="attribId" />
<field name="Attribute" type="anyType" />
</type:sequence>
</restriction>
</type:type>
<type:type id="ff" short="discoverAttributesResponseRecord" name="Discover Attributes Response Record">
<restriction>
<type:sequence>
<field name="AttributeIdentifier" type="attribId" />
<field name="AttributeType" type="zclType" />
</type:sequence>
</restriction>
</type:type>
<type:type id="ff" short="readStructuredRecord" name="Read Attributes Structured Record">
<restriction>
<type:sequence>
<field name="AttributeIdentifier" type="attribId" />
<field name="Index" type="uint16" array="true" arrayLengthSize="1" /><!-- The Array Length Is Specified Here -->
</type:sequence>
</restriction>
</type:type>
<type:type id="ff" short="writeStructuredRecord" name="Write Structured Attribute Record">
<restriction>
<type:sequence>
<field name="AttributeIdentifier" type="attribId" />
<field name="Selector" type="uint16" array="true" arrayLengthSize="1" /><!-- The Array Length Is Specified
Here -->
<field name="Attribute" type="anyType" />
</type:sequence>
</restriction>
</type:type>
<type:type id="ff" short="writeStructuredResponseRecord" name="Write Structured Attribute Status Record">
<restriction>
<type:sequence>
<field name="Status" type="zclStatus" />
<field name="AttributeIdentifier" type="attribId" presentIf="Status != 0" />
<field name="Selector" type="uint16" array="true" arrayLengthSize="1" presentIf="Status != 0" /><!-- The Array
Length Is Specified Here -->
</type:sequence>
</restriction>
</type:type>
<type:type id="ff" short="discoverAttributesExtendedResponseRecord"
name="Discover Attributes Extended Response Record">
<restriction>
<type:sequence>
<field name="AttributeIdentifier" type="attribId" />
<field name="AttributeType" type="zclType" />
<field name="AccessControl" type="map8">
<bitmap>
<element name="Readable" type="bool" mask="01" />
<element name="Writeable" type="bool" mask="02" shiftRight="1" />
<element name="Reportable" type="bool" mask="04" shiftRight="2" />
</bitmap>
</field>
</type:sequence>
</restriction>
</type:type>
<attributes>
<attribute id="fffd" name="ClusterRevision" type="uint16" min="1" max="65534" required="true"
default="revision()" />
<attribute id="fffe" name="AttributeReportingStatus" type="enum8">
<restriction>
<type:enumeration value="00" name="Pending" />
<type:enumeration value="01" name="Attribute Reporting Complete" />
</restriction>
</attribute>
</attributes>
<commands>
<command id="00" name="ReadAttributes" required="true">
<fields>
<field name="AttributeIdentifier" type="attribId" array="true" arrayLengthSize="0" />
</fields>
</command>
<command id="01" name="ReadAttributesResponse" required="true">
<fields>
<field name="ReadAttributeRecord" type="readAttributeResponseRecord" array="true" arrayLengthSize="0" />
</fields>
</command>
<command id="02" name="WriteAttributes" required="true">
<fields>
<field name="WriteAttributeRecord" type="writeAttributeRecord" array="true" arrayLengthSize="0" />
</fields>
</command>
<command id="03" name="WriteAttributesUndivided" required="true">
<fields>
<field name="WriteAttributeRecord" type="writeAttributeRecord" array="true" arrayLengthSize="0" />
</fields>
</command>
<command id="04" name="WriteAttributesResponse" required="true">
<fields>
<field name="WriteAttributeRecord" type="writeAttributeResponseRecord" array="true" arrayLengthSize="0" />
</fields>
</command>
<command id="05" name="WriteAttributesNoResponse" required="true">
<fields>
<field name="WriteAttributeRecord" type="writeAttributeRecord" array="true" arrayLengthSize="0" />
</fields>
</command>
<command id="06" name="ConfigureReporting" required="false">
<fields>
<field name="ConfigureReportingRecord" type="configureReportingRecord" array="true" arrayLengthSize="0" />
</fields>
</command>
<command id="07" name="ConfigureReportingResponse" required="false">
<fields>
<field name="ConfigureReportingResponseRecord" type="configureReportingResponseRecord" array="true"
arrayLengthSize="0" />
</fields>
</command>
<command id="08" name="ReadReportingConfiguration" required="false">
<fields>
<field name="ReadReportingConfigurationRecord" type="readReportingConfigurationRecord" array="true"
arrayLengthSize="0"></field>
</fields>
</command>
<command id="09" name="ReadReportingConfigurationResponse" required="false">
<fields>
<field name="ReadReportingConfigurationResponseRecord" type="readReportingConfigurationResponseRecord"
array="true" arrayLengthSize="0" />
</fields>
</command>
<command id="0a" name="ReportAttributes" required="false">
<fields>
<field name="AttributeReportRecord" type="attributeReportRecord" array="true" arrayLengthSize="0" />
</fields>
</command>
<command id="0b" name="DefaultResponse" required="true">
<fields>
<field name="CommandIdentifier" type="uint8" />
<field name="StatusCode" type="zclStatus" />
</fields>
</command>
<command id="0c" name="DiscoverAttributes" required="true">
<fields>
<field name="StartAttributeIdentifier" type="attribId" />
<field name="MaximumAttributeIdentifiers" type="uint8" />
</fields>
</command>
<command id="0d" name="DiscoverAttributesResponse" required="true">
<fields>
<field name="DiscoveryComplete" type="bool" />
<field name="AttributeRecord" type="discoverAttributesResponseRecord" array="true" arrayLengthSize="0" />
</fields>
</command>
<command id="0e" name="ReadAttributesStructured" required="false">
<fields>
<field name="AttributeRecord" type="readStructuredRecord" array="true" arrayLengthSize="0" />
</fields>
</command>
<command id="0f" name="WriteAttributesStructured" required="false">
<fields>
<field name="AttributeRecord" type="writeStructuredRecord" array="true" arrayLengthSize="0" />
</fields>
</command>
<command id="10" name="WriteAttributesStructuredResponse" required="false">
<fields>
<field name="AttributeRecord" type="writeStructuredResponseRecord" array="true" arrayLengthSize="0" />
</fields>
</command>
<command id="11" name="DiscoverCommandsReceived" required="false">
<fields>
<field name="StartCommandIdentifier" type="uint8" />
<field name="MaximumCommandIdentifiers" type="uint8" />
</fields>
</command>
<command id="12" name="DiscoverCommandsReceivedResponse" required="false">
<fields>
<field name="DiscoveryComplete" type="bool" />
<field name="CommandIdentifier" type="uint8" array="true" arrayLengthSize="0" />
</fields>
</command>
<command id="13" name="DiscoverCommandsGenerated" required="false">
<fields>
<field name="StartCommandIdentifier" type="uint8" />
<field name="MaximumCommandIdentifiers" type="uint8" />
</fields>
</command>
<command id="14" name="DiscoverCommandsGeneratedResponse" required="false">
<fields>
<field name="DiscoveryComplete" type="bool" />
<field name="CommandIdentifier" type="uint8" array="true" arrayLengthSize="0" />
</fields>
</command>
<command id="15" name="DiscoveAttributesExtended" required="false">
<fields>
<field name="StartAttributeIdentifier" type="attribId" />
<field name="MaximumAttributeIdentifiers" type="uint8" />
</fields>
</command>
<command id="16" name="DiscoverAttributesExtendedResponse" required="false">
<fields>
<field name="DiscoveryComplete" type="bool" />
<field name="AttributeRecord" type="discoverAttributesExtendedResponseRecord" array="true"
arrayLengthSize="0" />
</fields>
</command>
</commands>
</zcl:global>