Skip to content

Commit 60ad071

Browse files
committed
Align Chef BasicVideoPlayer with TV-App and Spec
1 parent 83f8665 commit 60ad071

File tree

2 files changed

+1448
-36
lines changed

2 files changed

+1448
-36
lines changed

examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter

+281-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,56 @@
11
// This IDL was generated automatically by ZAP.
22
// It is for view/code review purposes only.
33

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+
454
/** Attributes and commands for switching devices between 'On' and 'Off' states. */
555
cluster OnOff = 6 {
656
revision 6;
@@ -73,6 +123,131 @@ cluster OnOff = 6 {
73123
command OnWithTimedOff(OnWithTimedOffRequest): DefaultSuccess = 66;
74124
}
75125

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+
76251
/** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */
77252
cluster Descriptor = 29 {
78253
revision 2;
@@ -2073,14 +2248,27 @@ endpoint 1 {
20732248
device type ma_basic_videoplayer = 40, version 1;
20742249

20752250

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+
20762264
server cluster OnOff {
20772265
ram attribute onOff default = 0;
20782266
callback attribute generatedCommandList;
20792267
callback attribute acceptedCommandList;
20802268
callback attribute eventList;
20812269
callback attribute attributeList;
20822270
ram attribute featureMap default = 0;
2083-
ram attribute clusterRevision default = 4;
2271+
ram attribute clusterRevision default = 5;
20842272

20852273
handle command Off;
20862274
handle command On;
@@ -2101,6 +2289,7 @@ endpoint 1 {
21012289
}
21022290

21032291
server cluster WakeOnLan {
2292+
ram attribute MACAddress;
21042293
callback attribute generatedCommandList;
21052294
callback attribute acceptedCommandList;
21062295
callback attribute eventList;
@@ -2127,7 +2316,9 @@ endpoint 1 {
21272316
}
21282317

21292318
server cluster TargetNavigator {
2319+
emits event TargetUpdated;
21302320
callback attribute targetList;
2321+
ram attribute currentTarget default = 0;
21312322
callback attribute generatedCommandList;
21322323
callback attribute acceptedCommandList;
21332324
callback attribute eventList;
@@ -2140,18 +2331,33 @@ endpoint 1 {
21402331
}
21412332

21422333
server cluster MediaPlayback {
2334+
emits event StateChanged;
21432335
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;
21442342
callback attribute generatedCommandList;
21452343
callback attribute acceptedCommandList;
21462344
callback attribute eventList;
21472345
callback attribute attributeList;
2148-
ram attribute featureMap default = 0;
2346+
ram attribute featureMap default = 3;
21492347
ram attribute clusterRevision default = 1;
21502348

21512349
handle command Play;
21522350
handle command Pause;
21532351
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;
21542359
handle command PlaybackResponse;
2360+
handle command Seek;
21552361
}
21562362

21572363
server cluster MediaInput {
@@ -2161,12 +2367,13 @@ endpoint 1 {
21612367
callback attribute acceptedCommandList;
21622368
callback attribute eventList;
21632369
callback attribute attributeList;
2164-
ram attribute featureMap default = 0;
2370+
ram attribute featureMap default = 1;
21652371
ram attribute clusterRevision default = 1;
21662372

21672373
handle command SelectInput;
21682374
handle command ShowInputStatus;
21692375
handle command HideInputStatus;
2376+
handle command RenameInput;
21702377
}
21712378

21722379
server cluster LowPower {
@@ -2185,7 +2392,7 @@ endpoint 1 {
21852392
callback attribute acceptedCommandList;
21862393
callback attribute eventList;
21872394
callback attribute attributeList;
2188-
ram attribute featureMap default = 0;
2395+
ram attribute featureMap default = 7;
21892396
ram attribute clusterRevision default = 1;
21902397

21912398
handle command SendKey;
@@ -2199,10 +2406,79 @@ endpoint 1 {
21992406
callback attribute acceptedCommandList;
22002407
callback attribute eventList;
22012408
callback attribute attributeList;
2202-
ram attribute featureMap default = 0;
2409+
ram attribute featureMap default = 1;
22032410
ram attribute clusterRevision default = 1;
22042411

22052412
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;
22062482
}
22072483
}
22082484

0 commit comments

Comments
 (0)