1
1
// This IDL was generated automatically by ZAP.
2
2
// It is for view/code review purposes only.
3
3
4
+ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
5
+ cluster Identify = 3 {
6
+ revision 4;
7
+
8
+ enum EffectIdentifierEnum : enum8 {
9
+ kBlink = 0;
10
+ kBreathe = 1;
11
+ kOkay = 2;
12
+ kChannelChange = 11;
13
+ kFinishEffect = 254;
14
+ kStopEffect = 255;
15
+ }
16
+
17
+ enum EffectVariantEnum : enum8 {
18
+ kDefault = 0;
19
+ }
20
+
21
+ enum IdentifyTypeEnum : enum8 {
22
+ kNone = 0;
23
+ kLightOutput = 1;
24
+ kVisibleIndicator = 2;
25
+ kAudibleBeep = 3;
26
+ kDisplay = 4;
27
+ kActuator = 5;
28
+ }
29
+
30
+ attribute int16u identifyTime = 0;
31
+ readonly attribute IdentifyTypeEnum identifyType = 1;
32
+ readonly attribute command_id generatedCommandList[] = 65528;
33
+ readonly attribute command_id acceptedCommandList[] = 65529;
34
+ readonly attribute event_id eventList[] = 65530;
35
+ readonly attribute attrib_id attributeList[] = 65531;
36
+ readonly attribute bitmap32 featureMap = 65532;
37
+ readonly attribute int16u clusterRevision = 65533;
38
+
39
+ request struct IdentifyRequest {
40
+ int16u identifyTime = 0;
41
+ }
42
+
43
+ request struct TriggerEffectRequest {
44
+ EffectIdentifierEnum effectIdentifier = 0;
45
+ EffectVariantEnum effectVariant = 1;
46
+ }
47
+
48
+ /** Command description for Identify */
49
+ command access(invoke: manage) Identify(IdentifyRequest): DefaultSuccess = 0;
50
+ /** Command description for TriggerEffect */
51
+ command access(invoke: manage) TriggerEffect(TriggerEffectRequest): DefaultSuccess = 64;
52
+ }
53
+
4
54
/** Attributes and commands for switching devices between 'On' and 'Off' states. */
5
55
cluster OnOff = 6 {
6
56
revision 6;
@@ -73,6 +123,131 @@ cluster OnOff = 6 {
73
123
command OnWithTimedOff(OnWithTimedOffRequest): DefaultSuccess = 66;
74
124
}
75
125
126
+ /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */
127
+ cluster LevelControl = 8 {
128
+ revision 5;
129
+
130
+ enum MoveModeEnum : enum8 {
131
+ kUp = 0;
132
+ kDown = 1;
133
+ }
134
+
135
+ enum StepModeEnum : enum8 {
136
+ kUp = 0;
137
+ kDown = 1;
138
+ }
139
+
140
+ bitmap Feature : bitmap32 {
141
+ kOnOff = 0x1;
142
+ kLighting = 0x2;
143
+ kFrequency = 0x4;
144
+ }
145
+
146
+ bitmap OptionsBitmap : bitmap8 {
147
+ kExecuteIfOff = 0x1;
148
+ kCoupleColorTempToLevel = 0x2;
149
+ }
150
+
151
+ readonly attribute nullable int8u currentLevel = 0;
152
+ readonly attribute optional int16u remainingTime = 1;
153
+ readonly attribute optional int8u minLevel = 2;
154
+ readonly attribute optional int8u maxLevel = 3;
155
+ readonly attribute optional int16u currentFrequency = 4;
156
+ readonly attribute optional int16u minFrequency = 5;
157
+ readonly attribute optional int16u maxFrequency = 6;
158
+ attribute OptionsBitmap options = 15;
159
+ attribute optional int16u onOffTransitionTime = 16;
160
+ attribute nullable int8u onLevel = 17;
161
+ attribute optional nullable int16u onTransitionTime = 18;
162
+ attribute optional nullable int16u offTransitionTime = 19;
163
+ attribute optional nullable int8u defaultMoveRate = 20;
164
+ attribute access(write: manage) optional nullable int8u startUpCurrentLevel = 16384;
165
+ readonly attribute command_id generatedCommandList[] = 65528;
166
+ readonly attribute command_id acceptedCommandList[] = 65529;
167
+ readonly attribute event_id eventList[] = 65530;
168
+ readonly attribute attrib_id attributeList[] = 65531;
169
+ readonly attribute bitmap32 featureMap = 65532;
170
+ readonly attribute int16u clusterRevision = 65533;
171
+
172
+ request struct MoveToLevelRequest {
173
+ int8u level = 0;
174
+ nullable int16u transitionTime = 1;
175
+ OptionsBitmap optionsMask = 2;
176
+ OptionsBitmap optionsOverride = 3;
177
+ }
178
+
179
+ request struct MoveRequest {
180
+ MoveModeEnum moveMode = 0;
181
+ nullable int8u rate = 1;
182
+ OptionsBitmap optionsMask = 2;
183
+ OptionsBitmap optionsOverride = 3;
184
+ }
185
+
186
+ request struct StepRequest {
187
+ StepModeEnum stepMode = 0;
188
+ int8u stepSize = 1;
189
+ nullable int16u transitionTime = 2;
190
+ OptionsBitmap optionsMask = 3;
191
+ OptionsBitmap optionsOverride = 4;
192
+ }
193
+
194
+ request struct StopRequest {
195
+ OptionsBitmap optionsMask = 0;
196
+ OptionsBitmap optionsOverride = 1;
197
+ }
198
+
199
+ request struct MoveToLevelWithOnOffRequest {
200
+ int8u level = 0;
201
+ nullable int16u transitionTime = 1;
202
+ OptionsBitmap optionsMask = 2;
203
+ OptionsBitmap optionsOverride = 3;
204
+ }
205
+
206
+ request struct MoveWithOnOffRequest {
207
+ MoveModeEnum moveMode = 0;
208
+ nullable int8u rate = 1;
209
+ OptionsBitmap optionsMask = 2;
210
+ OptionsBitmap optionsOverride = 3;
211
+ }
212
+
213
+ request struct StepWithOnOffRequest {
214
+ StepModeEnum stepMode = 0;
215
+ int8u stepSize = 1;
216
+ nullable int16u transitionTime = 2;
217
+ OptionsBitmap optionsMask = 3;
218
+ OptionsBitmap optionsOverride = 4;
219
+ }
220
+
221
+ request struct StopWithOnOffRequest {
222
+ OptionsBitmap optionsMask = 0;
223
+ OptionsBitmap optionsOverride = 1;
224
+ }
225
+
226
+ request struct MoveToClosestFrequencyRequest {
227
+ int16u frequency = 0;
228
+ }
229
+
230
+ /** Command description for MoveToLevel */
231
+ command MoveToLevel(MoveToLevelRequest): DefaultSuccess = 0;
232
+ /** Command description for Move */
233
+ command Move(MoveRequest): DefaultSuccess = 1;
234
+ /** Command description for Step */
235
+ command Step(StepRequest): DefaultSuccess = 2;
236
+ /** Command description for Stop */
237
+ command Stop(StopRequest): DefaultSuccess = 3;
238
+ /** Command description for MoveToLevelWithOnOff */
239
+ command MoveToLevelWithOnOff(MoveToLevelWithOnOffRequest): DefaultSuccess = 4;
240
+ /** Command description for MoveWithOnOff */
241
+ command MoveWithOnOff(MoveWithOnOffRequest): DefaultSuccess = 5;
242
+ /** Command description for StepWithOnOff */
243
+ command StepWithOnOff(StepWithOnOffRequest): DefaultSuccess = 6;
244
+ /** Command description for StopWithOnOff */
245
+ command StopWithOnOff(StopWithOnOffRequest): DefaultSuccess = 7;
246
+ /** Change the currrent frequency to the provided one, or a close
247
+ approximation if the exact provided one is not possible. */
248
+ command MoveToClosestFrequency(MoveToClosestFrequencyRequest): DefaultSuccess = 8;
249
+ }
250
+
76
251
/** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */
77
252
cluster Descriptor = 29 {
78
253
revision 2;
@@ -2073,14 +2248,27 @@ endpoint 1 {
2073
2248
device type ma_basic_videoplayer = 40, version 1;
2074
2249
2075
2250
2251
+ server cluster Identify {
2252
+ ram attribute identifyTime default = 0x0;
2253
+ ram attribute identifyType default = 0x00;
2254
+ callback attribute generatedCommandList;
2255
+ callback attribute acceptedCommandList;
2256
+ callback attribute eventList;
2257
+ callback attribute attributeList;
2258
+ ram attribute featureMap default = 0;
2259
+ ram attribute clusterRevision default = 4;
2260
+
2261
+ handle command Identify;
2262
+ }
2263
+
2076
2264
server cluster OnOff {
2077
2265
ram attribute onOff default = 0;
2078
2266
callback attribute generatedCommandList;
2079
2267
callback attribute acceptedCommandList;
2080
2268
callback attribute eventList;
2081
2269
callback attribute attributeList;
2082
2270
ram attribute featureMap default = 0;
2083
- ram attribute clusterRevision default = 4 ;
2271
+ ram attribute clusterRevision default = 5 ;
2084
2272
2085
2273
handle command Off;
2086
2274
handle command On;
@@ -2101,6 +2289,7 @@ endpoint 1 {
2101
2289
}
2102
2290
2103
2291
server cluster WakeOnLan {
2292
+ ram attribute MACAddress;
2104
2293
callback attribute generatedCommandList;
2105
2294
callback attribute acceptedCommandList;
2106
2295
callback attribute eventList;
@@ -2127,7 +2316,9 @@ endpoint 1 {
2127
2316
}
2128
2317
2129
2318
server cluster TargetNavigator {
2319
+ emits event TargetUpdated;
2130
2320
callback attribute targetList;
2321
+ ram attribute currentTarget default = 0;
2131
2322
callback attribute generatedCommandList;
2132
2323
callback attribute acceptedCommandList;
2133
2324
callback attribute eventList;
@@ -2140,18 +2331,33 @@ endpoint 1 {
2140
2331
}
2141
2332
2142
2333
server cluster MediaPlayback {
2334
+ emits event StateChanged;
2143
2335
ram attribute currentState default = 0x00;
2336
+ ram attribute startTime default = 0x00;
2337
+ ram attribute duration default = 0;
2338
+ callback attribute sampledPosition;
2339
+ ram attribute playbackSpeed default = 0;
2340
+ ram attribute seekRangeEnd;
2341
+ ram attribute seekRangeStart;
2144
2342
callback attribute generatedCommandList;
2145
2343
callback attribute acceptedCommandList;
2146
2344
callback attribute eventList;
2147
2345
callback attribute attributeList;
2148
- ram attribute featureMap default = 0 ;
2346
+ ram attribute featureMap default = 3 ;
2149
2347
ram attribute clusterRevision default = 1;
2150
2348
2151
2349
handle command Play;
2152
2350
handle command Pause;
2153
2351
handle command Stop;
2352
+ handle command StartOver;
2353
+ handle command Previous;
2354
+ handle command Next;
2355
+ handle command Rewind;
2356
+ handle command FastForward;
2357
+ handle command SkipForward;
2358
+ handle command SkipBackward;
2154
2359
handle command PlaybackResponse;
2360
+ handle command Seek;
2155
2361
}
2156
2362
2157
2363
server cluster MediaInput {
@@ -2161,12 +2367,13 @@ endpoint 1 {
2161
2367
callback attribute acceptedCommandList;
2162
2368
callback attribute eventList;
2163
2369
callback attribute attributeList;
2164
- ram attribute featureMap default = 0 ;
2370
+ ram attribute featureMap default = 1 ;
2165
2371
ram attribute clusterRevision default = 1;
2166
2372
2167
2373
handle command SelectInput;
2168
2374
handle command ShowInputStatus;
2169
2375
handle command HideInputStatus;
2376
+ handle command RenameInput;
2170
2377
}
2171
2378
2172
2379
server cluster LowPower {
@@ -2185,7 +2392,7 @@ endpoint 1 {
2185
2392
callback attribute acceptedCommandList;
2186
2393
callback attribute eventList;
2187
2394
callback attribute attributeList;
2188
- ram attribute featureMap default = 0 ;
2395
+ ram attribute featureMap default = 7 ;
2189
2396
ram attribute clusterRevision default = 1;
2190
2397
2191
2398
handle command SendKey;
@@ -2199,10 +2406,79 @@ endpoint 1 {
2199
2406
callback attribute acceptedCommandList;
2200
2407
callback attribute eventList;
2201
2408
callback attribute attributeList;
2202
- ram attribute featureMap default = 0 ;
2409
+ ram attribute featureMap default = 1 ;
2203
2410
ram attribute clusterRevision default = 1;
2204
2411
2205
2412
handle command SelectOutput;
2413
+ handle command RenameOutput;
2414
+ }
2415
+ }
2416
+ endpoint 2 {
2417
+ device type ma_speaker = 34, version 1;
2418
+
2419
+
2420
+ server cluster Identify {
2421
+ ram attribute identifyTime default = 0x0;
2422
+ ram attribute identifyType default = 0x00;
2423
+ callback attribute generatedCommandList;
2424
+ callback attribute acceptedCommandList;
2425
+ callback attribute eventList;
2426
+ callback attribute attributeList;
2427
+ ram attribute featureMap default = 0;
2428
+ ram attribute clusterRevision default = 4;
2429
+
2430
+ handle command Identify;
2431
+ handle command TriggerEffect;
2432
+ }
2433
+
2434
+ server cluster OnOff {
2435
+ ram attribute onOff default = 0;
2436
+ callback attribute generatedCommandList;
2437
+ callback attribute acceptedCommandList;
2438
+ callback attribute eventList;
2439
+ callback attribute attributeList;
2440
+ ram attribute featureMap default = 0;
2441
+ ram attribute clusterRevision default = 6;
2442
+
2443
+ handle command Off;
2444
+ handle command On;
2445
+ handle command Toggle;
2446
+ }
2447
+
2448
+ server cluster LevelControl {
2449
+ ram attribute currentLevel default = 0x00;
2450
+ ram attribute minLevel default = 0x00;
2451
+ ram attribute maxLevel default = 0xFE;
2452
+ ram attribute options default = 0x00;
2453
+ ram attribute onLevel default = 0xFE;
2454
+ callback attribute generatedCommandList;
2455
+ callback attribute acceptedCommandList;
2456
+ callback attribute eventList;
2457
+ callback attribute attributeList;
2458
+ ram attribute featureMap default = 0;
2459
+ ram attribute clusterRevision default = 5;
2460
+
2461
+ handle command MoveToLevel;
2462
+ handle command Move;
2463
+ handle command Step;
2464
+ handle command Stop;
2465
+ handle command MoveToLevelWithOnOff;
2466
+ handle command MoveWithOnOff;
2467
+ handle command StepWithOnOff;
2468
+ handle command StopWithOnOff;
2469
+ }
2470
+
2471
+ server cluster Descriptor {
2472
+ callback attribute deviceTypeList;
2473
+ callback attribute serverList;
2474
+ callback attribute clientList;
2475
+ callback attribute partsList;
2476
+ callback attribute generatedCommandList;
2477
+ callback attribute acceptedCommandList;
2478
+ callback attribute eventList;
2479
+ callback attribute attributeList;
2480
+ callback attribute featureMap;
2481
+ callback attribute clusterRevision;
2206
2482
}
2207
2483
}
2208
2484
0 commit comments