Apply Upstream code (2021-03-15)
[platform/upstream/connectedhomeip.git] / src / controller / python / chip / ChipCluster.py
1 '''
2 /*
3  *
4  *    Copyright (c) 2021 Project CHIP Authors
5  *
6  *    Licensed under the Apache License, Version 2.0 (the "License");
7  *    you may not use this file except in compliance with the License.
8  *    You may obtain a copy of the License at
9  *
10  *        http://www.apache.org/licenses/LICENSE-2.0
11  *
12  *    Unless required by applicable law or agreed to in writing, software
13  *    distributed under the License is distributed on an "AS IS" BASIS,
14  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  *    See the License for the specific language governing permissions and
16  *    limitations under the License.
17  */
18
19 // THIS FILE IS GENERATED BY ZAP
20 '''
21
22 import ctypes
23 from .ChipStack import *
24 from .exceptions import *
25
26 '''
27 TODO(#4511): This file only sends cluster commands, should add more functions.
28 '''
29
30 __all__ = ["ChipCluster"]
31
32 class ChipCluster:
33     def __init__(self, chipstack):
34         self._ChipStack = chipstack
35
36     def ListClusters(self):
37         return {
38             "ApplicationBasic": {
39             },
40             "BarrierControl": {
41                 "BarrierControlGoToPercent": {
42                     "percentOpen": "int",
43                 },
44                 "BarrierControlStop": {
45                 },
46             },
47             "Basic": {
48                 "MfgSpecificPing": {
49                 },
50             },
51             "Binding": {
52                 "Bind": {
53                     "nodeId": "int",
54                     "groupId": "int",
55                     "endpointId": "int",
56                     "clusterId": "int",
57                 },
58                 "Unbind": {
59                     "nodeId": "int",
60                     "groupId": "int",
61                     "endpointId": "int",
62                     "clusterId": "int",
63                 },
64             },
65             "ColorControl": {
66                 "MoveColor": {
67                     "rateX": "int",
68                     "rateY": "int",
69                     "optionsMask": "int",
70                     "optionsOverride": "int",
71                 },
72                 "MoveColorTemperature": {
73                     "moveMode": "int",
74                     "rate": "int",
75                     "colorTemperatureMinimum": "int",
76                     "colorTemperatureMaximum": "int",
77                     "optionsMask": "int",
78                     "optionsOverride": "int",
79                 },
80                 "MoveHue": {
81                     "moveMode": "int",
82                     "rate": "int",
83                     "optionsMask": "int",
84                     "optionsOverride": "int",
85                 },
86                 "MoveSaturation": {
87                     "moveMode": "int",
88                     "rate": "int",
89                     "optionsMask": "int",
90                     "optionsOverride": "int",
91                 },
92                 "MoveToColor": {
93                     "colorX": "int",
94                     "colorY": "int",
95                     "transitionTime": "int",
96                     "optionsMask": "int",
97                     "optionsOverride": "int",
98                 },
99                 "MoveToColorTemperature": {
100                     "colorTemperature": "int",
101                     "transitionTime": "int",
102                     "optionsMask": "int",
103                     "optionsOverride": "int",
104                 },
105                 "MoveToHue": {
106                     "hue": "int",
107                     "direction": "int",
108                     "transitionTime": "int",
109                     "optionsMask": "int",
110                     "optionsOverride": "int",
111                 },
112                 "MoveToHueAndSaturation": {
113                     "hue": "int",
114                     "saturation": "int",
115                     "transitionTime": "int",
116                     "optionsMask": "int",
117                     "optionsOverride": "int",
118                 },
119                 "MoveToSaturation": {
120                     "saturation": "int",
121                     "transitionTime": "int",
122                     "optionsMask": "int",
123                     "optionsOverride": "int",
124                 },
125                 "StepColor": {
126                     "stepX": "int",
127                     "stepY": "int",
128                     "transitionTime": "int",
129                     "optionsMask": "int",
130                     "optionsOverride": "int",
131                 },
132                 "StepColorTemperature": {
133                     "stepMode": "int",
134                     "stepSize": "int",
135                     "transitionTime": "int",
136                     "colorTemperatureMinimum": "int",
137                     "colorTemperatureMaximum": "int",
138                     "optionsMask": "int",
139                     "optionsOverride": "int",
140                 },
141                 "StepHue": {
142                     "stepMode": "int",
143                     "stepSize": "int",
144                     "transitionTime": "int",
145                     "optionsMask": "int",
146                     "optionsOverride": "int",
147                 },
148                 "StepSaturation": {
149                     "stepMode": "int",
150                     "stepSize": "int",
151                     "transitionTime": "int",
152                     "optionsMask": "int",
153                     "optionsOverride": "int",
154                 },
155                 "StopMoveStep": {
156                     "optionsMask": "int",
157                     "optionsOverride": "int",
158                 },
159             },
160             "ContentLaunch": {
161                 "LaunchContent": {
162                 },
163                 "LaunchURL": {
164                 },
165             },
166             "DoorLock": {
167                 "ClearAllPins": {
168                 },
169                 "ClearAllRfids": {
170                 },
171                 "ClearHolidaySchedule": {
172                     "scheduleId": "int",
173                 },
174                 "ClearPin": {
175                     "userId": "int",
176                 },
177                 "ClearRfid": {
178                     "userId": "int",
179                 },
180                 "ClearWeekdaySchedule": {
181                     "scheduleId": "int",
182                     "userId": "int",
183                 },
184                 "ClearYeardaySchedule": {
185                     "scheduleId": "int",
186                     "userId": "int",
187                 },
188                 "GetHolidaySchedule": {
189                     "scheduleId": "int",
190                 },
191                 "GetLogRecord": {
192                     "logIndex": "int",
193                 },
194                 "GetPin": {
195                     "userId": "int",
196                 },
197                 "GetRfid": {
198                     "userId": "int",
199                 },
200                 "GetUserType": {
201                     "userId": "int",
202                 },
203                 "GetWeekdaySchedule": {
204                     "scheduleId": "int",
205                     "userId": "int",
206                 },
207                 "GetYeardaySchedule": {
208                     "scheduleId": "int",
209                     "userId": "int",
210                 },
211                 "LockDoor": {
212                     "pin": "bytes",
213                 },
214                 "SetHolidaySchedule": {
215                     "scheduleId": "int",
216                     "localStartTime": "int",
217                     "localEndTime": "int",
218                     "operatingModeDuringHoliday": "int",
219                 },
220                 "SetPin": {
221                     "userId": "int",
222                     "userStatus": "int",
223                     "userType": "int",
224                     "pin": "bytes",
225                 },
226                 "SetRfid": {
227                     "userId": "int",
228                     "userStatus": "int",
229                     "userType": "int",
230                     "id": "bytes",
231                 },
232                 "SetUserType": {
233                     "userId": "int",
234                     "userType": "int",
235                 },
236                 "SetWeekdaySchedule": {
237                     "scheduleId": "int",
238                     "userId": "int",
239                     "daysMask": "int",
240                     "startHour": "int",
241                     "startMinute": "int",
242                     "endHour": "int",
243                     "endMinute": "int",
244                 },
245                 "SetYeardaySchedule": {
246                     "scheduleId": "int",
247                     "userId": "int",
248                     "localStartTime": "int",
249                     "localEndTime": "int",
250                 },
251                 "UnlockDoor": {
252                     "pin": "bytes",
253                 },
254                 "UnlockWithTimeout": {
255                     "timeoutInSeconds": "int",
256                     "pin": "bytes",
257                 },
258             },
259             "GeneralCommissioning": {
260                 "ArmFailSafe": {
261                     "expiryLengthSeconds": "int",
262                     "breadcrumb": "int",
263                     "timeoutMs": "int",
264                 },
265                 "CommissioningComplete": {
266                 },
267                 "SetFabric": {
268                     "fabricId": "bytes",
269                     "fabricSecret": "bytes",
270                     "breadcrumb": "int",
271                     "timeoutMs": "int",
272                 },
273             },
274             "Groups": {
275                 "AddGroup": {
276                     "groupId": "int",
277                     "groupName": "bytes",
278                 },
279                 "AddGroupIfIdentifying": {
280                     "groupId": "int",
281                     "groupName": "bytes",
282                 },
283                 "GetGroupMembership": {
284                     "groupCount": "int",
285                     "groupList": "int",
286                 },
287                 "RemoveAllGroups": {
288                 },
289                 "RemoveGroup": {
290                     "groupId": "int",
291                 },
292                 "ViewGroup": {
293                     "groupId": "int",
294                 },
295             },
296             "IasZone": {
297             },
298             "Identify": {
299                 "Identify": {
300                     "identifyTime": "int",
301                 },
302                 "IdentifyQuery": {
303                 },
304             },
305             "LevelControl": {
306                 "Move": {
307                     "moveMode": "int",
308                     "rate": "int",
309                     "optionMask": "int",
310                     "optionOverride": "int",
311                 },
312                 "MoveToLevel": {
313                     "level": "int",
314                     "transitionTime": "int",
315                     "optionMask": "int",
316                     "optionOverride": "int",
317                 },
318                 "MoveToLevelWithOnOff": {
319                     "level": "int",
320                     "transitionTime": "int",
321                 },
322                 "MoveWithOnOff": {
323                     "moveMode": "int",
324                     "rate": "int",
325                 },
326                 "Step": {
327                     "stepMode": "int",
328                     "stepSize": "int",
329                     "transitionTime": "int",
330                     "optionMask": "int",
331                     "optionOverride": "int",
332                 },
333                 "StepWithOnOff": {
334                     "stepMode": "int",
335                     "stepSize": "int",
336                     "transitionTime": "int",
337                 },
338                 "Stop": {
339                     "optionMask": "int",
340                     "optionOverride": "int",
341                 },
342                 "StopWithOnOff": {
343                 },
344             },
345             "LowPower": {
346                 "Sleep": {
347                 },
348             },
349             "MediaPlayback": {
350                 "FastForwardRequest": {
351                 },
352                 "NextRequest": {
353                 },
354                 "PauseRequest": {
355                 },
356                 "PlayRequest": {
357                 },
358                 "PreviousRequest": {
359                 },
360                 "RewindRequest": {
361                 },
362                 "SkipBackwardRequest": {
363                 },
364                 "SkipForwardRequest": {
365                 },
366                 "StartOverRequest": {
367                 },
368                 "StopRequest": {
369                 },
370             },
371             "NetworkCommissioning": {
372                 "AddThreadNetwork": {
373                     "operationalDataset": "bytes",
374                     "breadcrumb": "int",
375                     "timeoutMs": "int",
376                 },
377                 "AddWiFiNetwork": {
378                     "ssid": "bytes",
379                     "credentials": "bytes",
380                     "breadcrumb": "int",
381                     "timeoutMs": "int",
382                 },
383                 "DisableNetwork": {
384                     "networkID": "bytes",
385                     "breadcrumb": "int",
386                     "timeoutMs": "int",
387                 },
388                 "EnableNetwork": {
389                     "networkID": "bytes",
390                     "breadcrumb": "int",
391                     "timeoutMs": "int",
392                 },
393                 "GetLastNetworkCommissioningResult": {
394                     "timeoutMs": "int",
395                 },
396                 "RemoveNetwork": {
397                     "networkID": "bytes",
398                     "breadcrumb": "int",
399                     "timeoutMs": "int",
400                 },
401                 "ScanNetworks": {
402                     "ssid": "bytes",
403                     "breadcrumb": "int",
404                     "timeoutMs": "int",
405                 },
406                 "UpdateThreadNetwork": {
407                     "operationalDataset": "bytes",
408                     "breadcrumb": "int",
409                     "timeoutMs": "int",
410                 },
411                 "UpdateWiFiNetwork": {
412                     "ssid": "bytes",
413                     "credentials": "bytes",
414                     "breadcrumb": "int",
415                     "timeoutMs": "int",
416                 },
417             },
418             "OnOff": {
419                 "Off": {
420                 },
421                 "On": {
422                 },
423                 "Toggle": {
424                 },
425             },
426             "Scenes": {
427                 "AddScene": {
428                     "groupId": "int",
429                     "sceneId": "int",
430                     "transitionTime": "int",
431                     "sceneName": "bytes",
432                     "clusterId": "int",
433                     "length": "int",
434                     "value": "int",
435                 },
436                 "GetSceneMembership": {
437                     "groupId": "int",
438                 },
439                 "RecallScene": {
440                     "groupId": "int",
441                     "sceneId": "int",
442                     "transitionTime": "int",
443                 },
444                 "RemoveAllScenes": {
445                     "groupId": "int",
446                 },
447                 "RemoveScene": {
448                     "groupId": "int",
449                     "sceneId": "int",
450                 },
451                 "StoreScene": {
452                     "groupId": "int",
453                     "sceneId": "int",
454                 },
455                 "ViewScene": {
456                     "groupId": "int",
457                     "sceneId": "int",
458                 },
459             },
460             "TemperatureMeasurement": {
461             },
462         }
463
464     def SendCommand(self, device: ctypes.c_void_p, cluster: str, command: str, endpoint: int, groupid: int, args):
465         func = getattr(self, "Cluster{}_Command{}".format(cluster, command), None)
466         if not func:
467             raise UnknownCommand(cluster, command)
468         func(device, endpoint, groupid, **args)
469
470     def ClusterBarrierControl_CommandBarrierControlGoToPercent(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, percentOpen: int):
471         self._ChipStack.Call(
472             lambda: self._chipLib.chip_ime_AppendCommand_BarrierControl_BarrierControlGoToPercent(
473                 device, ZCLendpoint, ZCLgroupid, percentOpen
474             )
475         )
476
477     def ClusterBarrierControl_CommandBarrierControlStop(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int):
478         self._ChipStack.Call(
479             lambda: self._chipLib.chip_ime_AppendCommand_BarrierControl_BarrierControlStop(
480                 device, ZCLendpoint, ZCLgroupid
481             )
482         )
483
484     def ClusterBasic_CommandMfgSpecificPing(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int):
485         self._ChipStack.Call(
486             lambda: self._chipLib.chip_ime_AppendCommand_Basic_MfgSpecificPing(
487                 device, ZCLendpoint, ZCLgroupid
488             )
489         )
490
491     def ClusterBinding_CommandBind(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, nodeId: int, groupId: int, endpointId: int, clusterId: int):
492         self._ChipStack.Call(
493             lambda: self._chipLib.chip_ime_AppendCommand_Binding_Bind(
494                 device, ZCLendpoint, ZCLgroupid, nodeId, groupId, endpointId, clusterId
495             )
496         )
497
498     def ClusterBinding_CommandUnbind(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, nodeId: int, groupId: int, endpointId: int, clusterId: int):
499         self._ChipStack.Call(
500             lambda: self._chipLib.chip_ime_AppendCommand_Binding_Unbind(
501                 device, ZCLendpoint, ZCLgroupid, nodeId, groupId, endpointId, clusterId
502             )
503         )
504
505     def ClusterColorControl_CommandMoveColor(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, rateX: int, rateY: int, optionsMask: int, optionsOverride: int):
506         self._ChipStack.Call(
507             lambda: self._chipLib.chip_ime_AppendCommand_ColorControl_MoveColor(
508                 device, ZCLendpoint, ZCLgroupid, rateX, rateY, optionsMask, optionsOverride
509             )
510         )
511
512     def ClusterColorControl_CommandMoveColorTemperature(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, moveMode: int, rate: int, colorTemperatureMinimum: int, colorTemperatureMaximum: int, optionsMask: int, optionsOverride: int):
513         self._ChipStack.Call(
514             lambda: self._chipLib.chip_ime_AppendCommand_ColorControl_MoveColorTemperature(
515                 device, ZCLendpoint, ZCLgroupid, moveMode, rate, colorTemperatureMinimum, colorTemperatureMaximum, optionsMask, optionsOverride
516             )
517         )
518
519     def ClusterColorControl_CommandMoveHue(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, moveMode: int, rate: int, optionsMask: int, optionsOverride: int):
520         self._ChipStack.Call(
521             lambda: self._chipLib.chip_ime_AppendCommand_ColorControl_MoveHue(
522                 device, ZCLendpoint, ZCLgroupid, moveMode, rate, optionsMask, optionsOverride
523             )
524         )
525
526     def ClusterColorControl_CommandMoveSaturation(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, moveMode: int, rate: int, optionsMask: int, optionsOverride: int):
527         self._ChipStack.Call(
528             lambda: self._chipLib.chip_ime_AppendCommand_ColorControl_MoveSaturation(
529                 device, ZCLendpoint, ZCLgroupid, moveMode, rate, optionsMask, optionsOverride
530             )
531         )
532
533     def ClusterColorControl_CommandMoveToColor(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, colorX: int, colorY: int, transitionTime: int, optionsMask: int, optionsOverride: int):
534         self._ChipStack.Call(
535             lambda: self._chipLib.chip_ime_AppendCommand_ColorControl_MoveToColor(
536                 device, ZCLendpoint, ZCLgroupid, colorX, colorY, transitionTime, optionsMask, optionsOverride
537             )
538         )
539
540     def ClusterColorControl_CommandMoveToColorTemperature(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, colorTemperature: int, transitionTime: int, optionsMask: int, optionsOverride: int):
541         self._ChipStack.Call(
542             lambda: self._chipLib.chip_ime_AppendCommand_ColorControl_MoveToColorTemperature(
543                 device, ZCLendpoint, ZCLgroupid, colorTemperature, transitionTime, optionsMask, optionsOverride
544             )
545         )
546
547     def ClusterColorControl_CommandMoveToHue(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, hue: int, direction: int, transitionTime: int, optionsMask: int, optionsOverride: int):
548         self._ChipStack.Call(
549             lambda: self._chipLib.chip_ime_AppendCommand_ColorControl_MoveToHue(
550                 device, ZCLendpoint, ZCLgroupid, hue, direction, transitionTime, optionsMask, optionsOverride
551             )
552         )
553
554     def ClusterColorControl_CommandMoveToHueAndSaturation(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, hue: int, saturation: int, transitionTime: int, optionsMask: int, optionsOverride: int):
555         self._ChipStack.Call(
556             lambda: self._chipLib.chip_ime_AppendCommand_ColorControl_MoveToHueAndSaturation(
557                 device, ZCLendpoint, ZCLgroupid, hue, saturation, transitionTime, optionsMask, optionsOverride
558             )
559         )
560
561     def ClusterColorControl_CommandMoveToSaturation(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, saturation: int, transitionTime: int, optionsMask: int, optionsOverride: int):
562         self._ChipStack.Call(
563             lambda: self._chipLib.chip_ime_AppendCommand_ColorControl_MoveToSaturation(
564                 device, ZCLendpoint, ZCLgroupid, saturation, transitionTime, optionsMask, optionsOverride
565             )
566         )
567
568     def ClusterColorControl_CommandStepColor(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, stepX: int, stepY: int, transitionTime: int, optionsMask: int, optionsOverride: int):
569         self._ChipStack.Call(
570             lambda: self._chipLib.chip_ime_AppendCommand_ColorControl_StepColor(
571                 device, ZCLendpoint, ZCLgroupid, stepX, stepY, transitionTime, optionsMask, optionsOverride
572             )
573         )
574
575     def ClusterColorControl_CommandStepColorTemperature(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, stepMode: int, stepSize: int, transitionTime: int, colorTemperatureMinimum: int, colorTemperatureMaximum: int, optionsMask: int, optionsOverride: int):
576         self._ChipStack.Call(
577             lambda: self._chipLib.chip_ime_AppendCommand_ColorControl_StepColorTemperature(
578                 device, ZCLendpoint, ZCLgroupid, stepMode, stepSize, transitionTime, colorTemperatureMinimum, colorTemperatureMaximum, optionsMask, optionsOverride
579             )
580         )
581
582     def ClusterColorControl_CommandStepHue(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, stepMode: int, stepSize: int, transitionTime: int, optionsMask: int, optionsOverride: int):
583         self._ChipStack.Call(
584             lambda: self._chipLib.chip_ime_AppendCommand_ColorControl_StepHue(
585                 device, ZCLendpoint, ZCLgroupid, stepMode, stepSize, transitionTime, optionsMask, optionsOverride
586             )
587         )
588
589     def ClusterColorControl_CommandStepSaturation(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, stepMode: int, stepSize: int, transitionTime: int, optionsMask: int, optionsOverride: int):
590         self._ChipStack.Call(
591             lambda: self._chipLib.chip_ime_AppendCommand_ColorControl_StepSaturation(
592                 device, ZCLendpoint, ZCLgroupid, stepMode, stepSize, transitionTime, optionsMask, optionsOverride
593             )
594         )
595
596     def ClusterColorControl_CommandStopMoveStep(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, optionsMask: int, optionsOverride: int):
597         self._ChipStack.Call(
598             lambda: self._chipLib.chip_ime_AppendCommand_ColorControl_StopMoveStep(
599                 device, ZCLendpoint, ZCLgroupid, optionsMask, optionsOverride
600             )
601         )
602
603     def ClusterContentLaunch_CommandLaunchContent(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int):
604         self._ChipStack.Call(
605             lambda: self._chipLib.chip_ime_AppendCommand_ContentLaunch_LaunchContent(
606                 device, ZCLendpoint, ZCLgroupid
607             )
608         )
609
610     def ClusterContentLaunch_CommandLaunchURL(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int):
611         self._ChipStack.Call(
612             lambda: self._chipLib.chip_ime_AppendCommand_ContentLaunch_LaunchURL(
613                 device, ZCLendpoint, ZCLgroupid
614             )
615         )
616
617     def ClusterDoorLock_CommandClearAllPins(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int):
618         self._ChipStack.Call(
619             lambda: self._chipLib.chip_ime_AppendCommand_DoorLock_ClearAllPins(
620                 device, ZCLendpoint, ZCLgroupid
621             )
622         )
623
624     def ClusterDoorLock_CommandClearAllRfids(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int):
625         self._ChipStack.Call(
626             lambda: self._chipLib.chip_ime_AppendCommand_DoorLock_ClearAllRfids(
627                 device, ZCLendpoint, ZCLgroupid
628             )
629         )
630
631     def ClusterDoorLock_CommandClearHolidaySchedule(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, scheduleId: int):
632         self._ChipStack.Call(
633             lambda: self._chipLib.chip_ime_AppendCommand_DoorLock_ClearHolidaySchedule(
634                 device, ZCLendpoint, ZCLgroupid, scheduleId
635             )
636         )
637
638     def ClusterDoorLock_CommandClearPin(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, userId: int):
639         self._ChipStack.Call(
640             lambda: self._chipLib.chip_ime_AppendCommand_DoorLock_ClearPin(
641                 device, ZCLendpoint, ZCLgroupid, userId
642             )
643         )
644
645     def ClusterDoorLock_CommandClearRfid(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, userId: int):
646         self._ChipStack.Call(
647             lambda: self._chipLib.chip_ime_AppendCommand_DoorLock_ClearRfid(
648                 device, ZCLendpoint, ZCLgroupid, userId
649             )
650         )
651
652     def ClusterDoorLock_CommandClearWeekdaySchedule(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, scheduleId: int, userId: int):
653         self._ChipStack.Call(
654             lambda: self._chipLib.chip_ime_AppendCommand_DoorLock_ClearWeekdaySchedule(
655                 device, ZCLendpoint, ZCLgroupid, scheduleId, userId
656             )
657         )
658
659     def ClusterDoorLock_CommandClearYeardaySchedule(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, scheduleId: int, userId: int):
660         self._ChipStack.Call(
661             lambda: self._chipLib.chip_ime_AppendCommand_DoorLock_ClearYeardaySchedule(
662                 device, ZCLendpoint, ZCLgroupid, scheduleId, userId
663             )
664         )
665
666     def ClusterDoorLock_CommandGetHolidaySchedule(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, scheduleId: int):
667         self._ChipStack.Call(
668             lambda: self._chipLib.chip_ime_AppendCommand_DoorLock_GetHolidaySchedule(
669                 device, ZCLendpoint, ZCLgroupid, scheduleId
670             )
671         )
672
673     def ClusterDoorLock_CommandGetLogRecord(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, logIndex: int):
674         self._ChipStack.Call(
675             lambda: self._chipLib.chip_ime_AppendCommand_DoorLock_GetLogRecord(
676                 device, ZCLendpoint, ZCLgroupid, logIndex
677             )
678         )
679
680     def ClusterDoorLock_CommandGetPin(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, userId: int):
681         self._ChipStack.Call(
682             lambda: self._chipLib.chip_ime_AppendCommand_DoorLock_GetPin(
683                 device, ZCLendpoint, ZCLgroupid, userId
684             )
685         )
686
687     def ClusterDoorLock_CommandGetRfid(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, userId: int):
688         self._ChipStack.Call(
689             lambda: self._chipLib.chip_ime_AppendCommand_DoorLock_GetRfid(
690                 device, ZCLendpoint, ZCLgroupid, userId
691             )
692         )
693
694     def ClusterDoorLock_CommandGetUserType(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, userId: int):
695         self._ChipStack.Call(
696             lambda: self._chipLib.chip_ime_AppendCommand_DoorLock_GetUserType(
697                 device, ZCLendpoint, ZCLgroupid, userId
698             )
699         )
700
701     def ClusterDoorLock_CommandGetWeekdaySchedule(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, scheduleId: int, userId: int):
702         self._ChipStack.Call(
703             lambda: self._chipLib.chip_ime_AppendCommand_DoorLock_GetWeekdaySchedule(
704                 device, ZCLendpoint, ZCLgroupid, scheduleId, userId
705             )
706         )
707
708     def ClusterDoorLock_CommandGetYeardaySchedule(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, scheduleId: int, userId: int):
709         self._ChipStack.Call(
710             lambda: self._chipLib.chip_ime_AppendCommand_DoorLock_GetYeardaySchedule(
711                 device, ZCLendpoint, ZCLgroupid, scheduleId, userId
712             )
713         )
714
715     def ClusterDoorLock_CommandLockDoor(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, pin: bytes):
716         pin = pin.encode("utf-8") + b'\x00'
717         self._ChipStack.Call(
718             lambda: self._chipLib.chip_ime_AppendCommand_DoorLock_LockDoor(
719                 device, ZCLendpoint, ZCLgroupid, pin, len(pin)
720             )
721         )
722
723     def ClusterDoorLock_CommandSetHolidaySchedule(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, scheduleId: int, localStartTime: int, localEndTime: int, operatingModeDuringHoliday: int):
724         self._ChipStack.Call(
725             lambda: self._chipLib.chip_ime_AppendCommand_DoorLock_SetHolidaySchedule(
726                 device, ZCLendpoint, ZCLgroupid, scheduleId, localStartTime, localEndTime, operatingModeDuringHoliday
727             )
728         )
729
730     def ClusterDoorLock_CommandSetPin(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, userId: int, userStatus: int, userType: int, pin: bytes):
731         pin = pin.encode("utf-8") + b'\x00'
732         self._ChipStack.Call(
733             lambda: self._chipLib.chip_ime_AppendCommand_DoorLock_SetPin(
734                 device, ZCLendpoint, ZCLgroupid, userId, userStatus, userType, pin, len(pin)
735             )
736         )
737
738     def ClusterDoorLock_CommandSetRfid(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, userId: int, userStatus: int, userType: int, id: bytes):
739         id = id.encode("utf-8") + b'\x00'
740         self._ChipStack.Call(
741             lambda: self._chipLib.chip_ime_AppendCommand_DoorLock_SetRfid(
742                 device, ZCLendpoint, ZCLgroupid, userId, userStatus, userType, id, len(id)
743             )
744         )
745
746     def ClusterDoorLock_CommandSetUserType(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, userId: int, userType: int):
747         self._ChipStack.Call(
748             lambda: self._chipLib.chip_ime_AppendCommand_DoorLock_SetUserType(
749                 device, ZCLendpoint, ZCLgroupid, userId, userType
750             )
751         )
752
753     def ClusterDoorLock_CommandSetWeekdaySchedule(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, scheduleId: int, userId: int, daysMask: int, startHour: int, startMinute: int, endHour: int, endMinute: int):
754         self._ChipStack.Call(
755             lambda: self._chipLib.chip_ime_AppendCommand_DoorLock_SetWeekdaySchedule(
756                 device, ZCLendpoint, ZCLgroupid, scheduleId, userId, daysMask, startHour, startMinute, endHour, endMinute
757             )
758         )
759
760     def ClusterDoorLock_CommandSetYeardaySchedule(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, scheduleId: int, userId: int, localStartTime: int, localEndTime: int):
761         self._ChipStack.Call(
762             lambda: self._chipLib.chip_ime_AppendCommand_DoorLock_SetYeardaySchedule(
763                 device, ZCLendpoint, ZCLgroupid, scheduleId, userId, localStartTime, localEndTime
764             )
765         )
766
767     def ClusterDoorLock_CommandUnlockDoor(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, pin: bytes):
768         pin = pin.encode("utf-8") + b'\x00'
769         self._ChipStack.Call(
770             lambda: self._chipLib.chip_ime_AppendCommand_DoorLock_UnlockDoor(
771                 device, ZCLendpoint, ZCLgroupid, pin, len(pin)
772             )
773         )
774
775     def ClusterDoorLock_CommandUnlockWithTimeout(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, timeoutInSeconds: int, pin: bytes):
776         pin = pin.encode("utf-8") + b'\x00'
777         self._ChipStack.Call(
778             lambda: self._chipLib.chip_ime_AppendCommand_DoorLock_UnlockWithTimeout(
779                 device, ZCLendpoint, ZCLgroupid, timeoutInSeconds, pin, len(pin)
780             )
781         )
782
783     def ClusterGeneralCommissioning_CommandArmFailSafe(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, expiryLengthSeconds: int, breadcrumb: int, timeoutMs: int):
784         self._ChipStack.Call(
785             lambda: self._chipLib.chip_ime_AppendCommand_GeneralCommissioning_ArmFailSafe(
786                 device, ZCLendpoint, ZCLgroupid, expiryLengthSeconds, breadcrumb, timeoutMs
787             )
788         )
789
790     def ClusterGeneralCommissioning_CommandCommissioningComplete(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int):
791         self._ChipStack.Call(
792             lambda: self._chipLib.chip_ime_AppendCommand_GeneralCommissioning_CommissioningComplete(
793                 device, ZCLendpoint, ZCLgroupid
794             )
795         )
796
797     def ClusterGeneralCommissioning_CommandSetFabric(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, fabricId: bytes, fabricSecret: bytes, breadcrumb: int, timeoutMs: int):
798         self._ChipStack.Call(
799             lambda: self._chipLib.chip_ime_AppendCommand_GeneralCommissioning_SetFabric(
800                 device, ZCLendpoint, ZCLgroupid, fabricId, len(fabricId), fabricSecret, len(fabricSecret), breadcrumb, timeoutMs
801             )
802         )
803
804     def ClusterGroups_CommandAddGroup(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, groupId: int, groupName: bytes):
805         groupName = groupName.encode("utf-8") + b'\x00'
806         self._ChipStack.Call(
807             lambda: self._chipLib.chip_ime_AppendCommand_Groups_AddGroup(
808                 device, ZCLendpoint, ZCLgroupid, groupId, groupName, len(groupName)
809             )
810         )
811
812     def ClusterGroups_CommandAddGroupIfIdentifying(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, groupId: int, groupName: bytes):
813         groupName = groupName.encode("utf-8") + b'\x00'
814         self._ChipStack.Call(
815             lambda: self._chipLib.chip_ime_AppendCommand_Groups_AddGroupIfIdentifying(
816                 device, ZCLendpoint, ZCLgroupid, groupId, groupName, len(groupName)
817             )
818         )
819
820     def ClusterGroups_CommandGetGroupMembership(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, groupCount: int, groupList: int):
821         self._ChipStack.Call(
822             lambda: self._chipLib.chip_ime_AppendCommand_Groups_GetGroupMembership(
823                 device, ZCLendpoint, ZCLgroupid, groupCount, groupList
824             )
825         )
826
827     def ClusterGroups_CommandRemoveAllGroups(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int):
828         self._ChipStack.Call(
829             lambda: self._chipLib.chip_ime_AppendCommand_Groups_RemoveAllGroups(
830                 device, ZCLendpoint, ZCLgroupid
831             )
832         )
833
834     def ClusterGroups_CommandRemoveGroup(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, groupId: int):
835         self._ChipStack.Call(
836             lambda: self._chipLib.chip_ime_AppendCommand_Groups_RemoveGroup(
837                 device, ZCLendpoint, ZCLgroupid, groupId
838             )
839         )
840
841     def ClusterGroups_CommandViewGroup(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, groupId: int):
842         self._ChipStack.Call(
843             lambda: self._chipLib.chip_ime_AppendCommand_Groups_ViewGroup(
844                 device, ZCLendpoint, ZCLgroupid, groupId
845             )
846         )
847
848     def ClusterIdentify_CommandIdentify(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, identifyTime: int):
849         self._ChipStack.Call(
850             lambda: self._chipLib.chip_ime_AppendCommand_Identify_Identify(
851                 device, ZCLendpoint, ZCLgroupid, identifyTime
852             )
853         )
854
855     def ClusterIdentify_CommandIdentifyQuery(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int):
856         self._ChipStack.Call(
857             lambda: self._chipLib.chip_ime_AppendCommand_Identify_IdentifyQuery(
858                 device, ZCLendpoint, ZCLgroupid
859             )
860         )
861
862     def ClusterLevelControl_CommandMove(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, moveMode: int, rate: int, optionMask: int, optionOverride: int):
863         self._ChipStack.Call(
864             lambda: self._chipLib.chip_ime_AppendCommand_LevelControl_Move(
865                 device, ZCLendpoint, ZCLgroupid, moveMode, rate, optionMask, optionOverride
866             )
867         )
868
869     def ClusterLevelControl_CommandMoveToLevel(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, level: int, transitionTime: int, optionMask: int, optionOverride: int):
870         self._ChipStack.Call(
871             lambda: self._chipLib.chip_ime_AppendCommand_LevelControl_MoveToLevel(
872                 device, ZCLendpoint, ZCLgroupid, level, transitionTime, optionMask, optionOverride
873             )
874         )
875
876     def ClusterLevelControl_CommandMoveToLevelWithOnOff(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, level: int, transitionTime: int):
877         self._ChipStack.Call(
878             lambda: self._chipLib.chip_ime_AppendCommand_LevelControl_MoveToLevelWithOnOff(
879                 device, ZCLendpoint, ZCLgroupid, level, transitionTime
880             )
881         )
882
883     def ClusterLevelControl_CommandMoveWithOnOff(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, moveMode: int, rate: int):
884         self._ChipStack.Call(
885             lambda: self._chipLib.chip_ime_AppendCommand_LevelControl_MoveWithOnOff(
886                 device, ZCLendpoint, ZCLgroupid, moveMode, rate
887             )
888         )
889
890     def ClusterLevelControl_CommandStep(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, stepMode: int, stepSize: int, transitionTime: int, optionMask: int, optionOverride: int):
891         self._ChipStack.Call(
892             lambda: self._chipLib.chip_ime_AppendCommand_LevelControl_Step(
893                 device, ZCLendpoint, ZCLgroupid, stepMode, stepSize, transitionTime, optionMask, optionOverride
894             )
895         )
896
897     def ClusterLevelControl_CommandStepWithOnOff(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, stepMode: int, stepSize: int, transitionTime: int):
898         self._ChipStack.Call(
899             lambda: self._chipLib.chip_ime_AppendCommand_LevelControl_StepWithOnOff(
900                 device, ZCLendpoint, ZCLgroupid, stepMode, stepSize, transitionTime
901             )
902         )
903
904     def ClusterLevelControl_CommandStop(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, optionMask: int, optionOverride: int):
905         self._ChipStack.Call(
906             lambda: self._chipLib.chip_ime_AppendCommand_LevelControl_Stop(
907                 device, ZCLendpoint, ZCLgroupid, optionMask, optionOverride
908             )
909         )
910
911     def ClusterLevelControl_CommandStopWithOnOff(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int):
912         self._ChipStack.Call(
913             lambda: self._chipLib.chip_ime_AppendCommand_LevelControl_StopWithOnOff(
914                 device, ZCLendpoint, ZCLgroupid
915             )
916         )
917
918     def ClusterLowPower_CommandSleep(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int):
919         self._ChipStack.Call(
920             lambda: self._chipLib.chip_ime_AppendCommand_LowPower_Sleep(
921                 device, ZCLendpoint, ZCLgroupid
922             )
923         )
924
925     def ClusterMediaPlayback_CommandFastForwardRequest(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int):
926         self._ChipStack.Call(
927             lambda: self._chipLib.chip_ime_AppendCommand_MediaPlayback_FastForwardRequest(
928                 device, ZCLendpoint, ZCLgroupid
929             )
930         )
931
932     def ClusterMediaPlayback_CommandNextRequest(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int):
933         self._ChipStack.Call(
934             lambda: self._chipLib.chip_ime_AppendCommand_MediaPlayback_NextRequest(
935                 device, ZCLendpoint, ZCLgroupid
936             )
937         )
938
939     def ClusterMediaPlayback_CommandPauseRequest(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int):
940         self._ChipStack.Call(
941             lambda: self._chipLib.chip_ime_AppendCommand_MediaPlayback_PauseRequest(
942                 device, ZCLendpoint, ZCLgroupid
943             )
944         )
945
946     def ClusterMediaPlayback_CommandPlayRequest(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int):
947         self._ChipStack.Call(
948             lambda: self._chipLib.chip_ime_AppendCommand_MediaPlayback_PlayRequest(
949                 device, ZCLendpoint, ZCLgroupid
950             )
951         )
952
953     def ClusterMediaPlayback_CommandPreviousRequest(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int):
954         self._ChipStack.Call(
955             lambda: self._chipLib.chip_ime_AppendCommand_MediaPlayback_PreviousRequest(
956                 device, ZCLendpoint, ZCLgroupid
957             )
958         )
959
960     def ClusterMediaPlayback_CommandRewindRequest(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int):
961         self._ChipStack.Call(
962             lambda: self._chipLib.chip_ime_AppendCommand_MediaPlayback_RewindRequest(
963                 device, ZCLendpoint, ZCLgroupid
964             )
965         )
966
967     def ClusterMediaPlayback_CommandSkipBackwardRequest(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int):
968         self._ChipStack.Call(
969             lambda: self._chipLib.chip_ime_AppendCommand_MediaPlayback_SkipBackwardRequest(
970                 device, ZCLendpoint, ZCLgroupid
971             )
972         )
973
974     def ClusterMediaPlayback_CommandSkipForwardRequest(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int):
975         self._ChipStack.Call(
976             lambda: self._chipLib.chip_ime_AppendCommand_MediaPlayback_SkipForwardRequest(
977                 device, ZCLendpoint, ZCLgroupid
978             )
979         )
980
981     def ClusterMediaPlayback_CommandStartOverRequest(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int):
982         self._ChipStack.Call(
983             lambda: self._chipLib.chip_ime_AppendCommand_MediaPlayback_StartOverRequest(
984                 device, ZCLendpoint, ZCLgroupid
985             )
986         )
987
988     def ClusterMediaPlayback_CommandStopRequest(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int):
989         self._ChipStack.Call(
990             lambda: self._chipLib.chip_ime_AppendCommand_MediaPlayback_StopRequest(
991                 device, ZCLendpoint, ZCLgroupid
992             )
993         )
994
995     def ClusterNetworkCommissioning_CommandAddThreadNetwork(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, operationalDataset: bytes, breadcrumb: int, timeoutMs: int):
996         self._ChipStack.Call(
997             lambda: self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_AddThreadNetwork(
998                 device, ZCLendpoint, ZCLgroupid, operationalDataset, len(operationalDataset), breadcrumb, timeoutMs
999             )
1000         )
1001
1002     def ClusterNetworkCommissioning_CommandAddWiFiNetwork(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, ssid: bytes, credentials: bytes, breadcrumb: int, timeoutMs: int):
1003         self._ChipStack.Call(
1004             lambda: self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_AddWiFiNetwork(
1005                 device, ZCLendpoint, ZCLgroupid, ssid, len(ssid), credentials, len(credentials), breadcrumb, timeoutMs
1006             )
1007         )
1008
1009     def ClusterNetworkCommissioning_CommandDisableNetwork(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, networkID: bytes, breadcrumb: int, timeoutMs: int):
1010         self._ChipStack.Call(
1011             lambda: self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_DisableNetwork(
1012                 device, ZCLendpoint, ZCLgroupid, networkID, len(networkID), breadcrumb, timeoutMs
1013             )
1014         )
1015
1016     def ClusterNetworkCommissioning_CommandEnableNetwork(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, networkID: bytes, breadcrumb: int, timeoutMs: int):
1017         self._ChipStack.Call(
1018             lambda: self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_EnableNetwork(
1019                 device, ZCLendpoint, ZCLgroupid, networkID, len(networkID), breadcrumb, timeoutMs
1020             )
1021         )
1022
1023     def ClusterNetworkCommissioning_CommandGetLastNetworkCommissioningResult(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, timeoutMs: int):
1024         self._ChipStack.Call(
1025             lambda: self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_GetLastNetworkCommissioningResult(
1026                 device, ZCLendpoint, ZCLgroupid, timeoutMs
1027             )
1028         )
1029
1030     def ClusterNetworkCommissioning_CommandRemoveNetwork(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, networkID: bytes, breadcrumb: int, timeoutMs: int):
1031         self._ChipStack.Call(
1032             lambda: self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_RemoveNetwork(
1033                 device, ZCLendpoint, ZCLgroupid, networkID, len(networkID), breadcrumb, timeoutMs
1034             )
1035         )
1036
1037     def ClusterNetworkCommissioning_CommandScanNetworks(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, ssid: bytes, breadcrumb: int, timeoutMs: int):
1038         self._ChipStack.Call(
1039             lambda: self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_ScanNetworks(
1040                 device, ZCLendpoint, ZCLgroupid, ssid, len(ssid), breadcrumb, timeoutMs
1041             )
1042         )
1043
1044     def ClusterNetworkCommissioning_CommandUpdateThreadNetwork(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, operationalDataset: bytes, breadcrumb: int, timeoutMs: int):
1045         self._ChipStack.Call(
1046             lambda: self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_UpdateThreadNetwork(
1047                 device, ZCLendpoint, ZCLgroupid, operationalDataset, len(operationalDataset), breadcrumb, timeoutMs
1048             )
1049         )
1050
1051     def ClusterNetworkCommissioning_CommandUpdateWiFiNetwork(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, ssid: bytes, credentials: bytes, breadcrumb: int, timeoutMs: int):
1052         self._ChipStack.Call(
1053             lambda: self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_UpdateWiFiNetwork(
1054                 device, ZCLendpoint, ZCLgroupid, ssid, len(ssid), credentials, len(credentials), breadcrumb, timeoutMs
1055             )
1056         )
1057
1058     def ClusterOnOff_CommandOff(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int):
1059         self._ChipStack.Call(
1060             lambda: self._chipLib.chip_ime_AppendCommand_OnOff_Off(
1061                 device, ZCLendpoint, ZCLgroupid
1062             )
1063         )
1064
1065     def ClusterOnOff_CommandOn(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int):
1066         self._ChipStack.Call(
1067             lambda: self._chipLib.chip_ime_AppendCommand_OnOff_On(
1068                 device, ZCLendpoint, ZCLgroupid
1069             )
1070         )
1071
1072     def ClusterOnOff_CommandToggle(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int):
1073         self._ChipStack.Call(
1074             lambda: self._chipLib.chip_ime_AppendCommand_OnOff_Toggle(
1075                 device, ZCLendpoint, ZCLgroupid
1076             )
1077         )
1078
1079     def ClusterScenes_CommandAddScene(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, groupId: int, sceneId: int, transitionTime: int, sceneName: bytes, clusterId: int, length: int, value: int):
1080         sceneName = sceneName.encode("utf-8") + b'\x00'
1081         self._ChipStack.Call(
1082             lambda: self._chipLib.chip_ime_AppendCommand_Scenes_AddScene(
1083                 device, ZCLendpoint, ZCLgroupid, groupId, sceneId, transitionTime, sceneName, len(sceneName), clusterId, length, value
1084             )
1085         )
1086
1087     def ClusterScenes_CommandGetSceneMembership(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, groupId: int):
1088         self._ChipStack.Call(
1089             lambda: self._chipLib.chip_ime_AppendCommand_Scenes_GetSceneMembership(
1090                 device, ZCLendpoint, ZCLgroupid, groupId
1091             )
1092         )
1093
1094     def ClusterScenes_CommandRecallScene(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, groupId: int, sceneId: int, transitionTime: int):
1095         self._ChipStack.Call(
1096             lambda: self._chipLib.chip_ime_AppendCommand_Scenes_RecallScene(
1097                 device, ZCLendpoint, ZCLgroupid, groupId, sceneId, transitionTime
1098             )
1099         )
1100
1101     def ClusterScenes_CommandRemoveAllScenes(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, groupId: int):
1102         self._ChipStack.Call(
1103             lambda: self._chipLib.chip_ime_AppendCommand_Scenes_RemoveAllScenes(
1104                 device, ZCLendpoint, ZCLgroupid, groupId
1105             )
1106         )
1107
1108     def ClusterScenes_CommandRemoveScene(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, groupId: int, sceneId: int):
1109         self._ChipStack.Call(
1110             lambda: self._chipLib.chip_ime_AppendCommand_Scenes_RemoveScene(
1111                 device, ZCLendpoint, ZCLgroupid, groupId, sceneId
1112             )
1113         )
1114
1115     def ClusterScenes_CommandStoreScene(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, groupId: int, sceneId: int):
1116         self._ChipStack.Call(
1117             lambda: self._chipLib.chip_ime_AppendCommand_Scenes_StoreScene(
1118                 device, ZCLendpoint, ZCLgroupid, groupId, sceneId
1119             )
1120         )
1121
1122     def ClusterScenes_CommandViewScene(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, groupId: int, sceneId: int):
1123         self._ChipStack.Call(
1124             lambda: self._chipLib.chip_ime_AppendCommand_Scenes_ViewScene(
1125                 device, ZCLendpoint, ZCLgroupid, groupId, sceneId
1126             )
1127         )
1128
1129     def InitLib(self, chipLib):
1130         self._chipLib = chipLib
1131         # Cluster ApplicationBasic
1132         # Cluster BarrierControl
1133         # Cluster BarrierControl Command BarrierControlGoToPercent
1134         self._chipLib.chip_ime_AppendCommand_BarrierControl_BarrierControlGoToPercent.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8]
1135         self._chipLib.chip_ime_AppendCommand_BarrierControl_BarrierControlGoToPercent.restype = ctypes.c_uint32
1136         # Cluster BarrierControl Command BarrierControlStop
1137         self._chipLib.chip_ime_AppendCommand_BarrierControl_BarrierControlStop.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16]
1138         self._chipLib.chip_ime_AppendCommand_BarrierControl_BarrierControlStop.restype = ctypes.c_uint32
1139         # Cluster Basic
1140         # Cluster Basic Command MfgSpecificPing
1141         self._chipLib.chip_ime_AppendCommand_Basic_MfgSpecificPing.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16]
1142         self._chipLib.chip_ime_AppendCommand_Basic_MfgSpecificPing.restype = ctypes.c_uint32
1143         # Cluster Binding
1144         # Cluster Binding Command Bind
1145         self._chipLib.chip_ime_AppendCommand_Binding_Bind.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint64, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint16]
1146         self._chipLib.chip_ime_AppendCommand_Binding_Bind.restype = ctypes.c_uint32
1147         # Cluster Binding Command Unbind
1148         self._chipLib.chip_ime_AppendCommand_Binding_Unbind.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint64, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint16]
1149         self._chipLib.chip_ime_AppendCommand_Binding_Unbind.restype = ctypes.c_uint32
1150         # Cluster ColorControl
1151         # Cluster ColorControl Command MoveColor
1152         self._chipLib.chip_ime_AppendCommand_ColorControl_MoveColor.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_int16, ctypes.c_int16, ctypes.c_uint8, ctypes.c_uint8]
1153         self._chipLib.chip_ime_AppendCommand_ColorControl_MoveColor.restype = ctypes.c_uint32
1154         # Cluster ColorControl Command MoveColorTemperature
1155         self._chipLib.chip_ime_AppendCommand_ColorControl_MoveColorTemperature.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint8]
1156         self._chipLib.chip_ime_AppendCommand_ColorControl_MoveColorTemperature.restype = ctypes.c_uint32
1157         # Cluster ColorControl Command MoveHue
1158         self._chipLib.chip_ime_AppendCommand_ColorControl_MoveHue.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint8, ctypes.c_uint8, ctypes.c_uint8]
1159         self._chipLib.chip_ime_AppendCommand_ColorControl_MoveHue.restype = ctypes.c_uint32
1160         # Cluster ColorControl Command MoveSaturation
1161         self._chipLib.chip_ime_AppendCommand_ColorControl_MoveSaturation.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint8, ctypes.c_uint8, ctypes.c_uint8]
1162         self._chipLib.chip_ime_AppendCommand_ColorControl_MoveSaturation.restype = ctypes.c_uint32
1163         # Cluster ColorControl Command MoveToColor
1164         self._chipLib.chip_ime_AppendCommand_ColorControl_MoveToColor.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint8]
1165         self._chipLib.chip_ime_AppendCommand_ColorControl_MoveToColor.restype = ctypes.c_uint32
1166         # Cluster ColorControl Command MoveToColorTemperature
1167         self._chipLib.chip_ime_AppendCommand_ColorControl_MoveToColorTemperature.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint8]
1168         self._chipLib.chip_ime_AppendCommand_ColorControl_MoveToColorTemperature.restype = ctypes.c_uint32
1169         # Cluster ColorControl Command MoveToHue
1170         self._chipLib.chip_ime_AppendCommand_ColorControl_MoveToHue.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint8]
1171         self._chipLib.chip_ime_AppendCommand_ColorControl_MoveToHue.restype = ctypes.c_uint32
1172         # Cluster ColorControl Command MoveToHueAndSaturation
1173         self._chipLib.chip_ime_AppendCommand_ColorControl_MoveToHueAndSaturation.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint8]
1174         self._chipLib.chip_ime_AppendCommand_ColorControl_MoveToHueAndSaturation.restype = ctypes.c_uint32
1175         # Cluster ColorControl Command MoveToSaturation
1176         self._chipLib.chip_ime_AppendCommand_ColorControl_MoveToSaturation.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint8]
1177         self._chipLib.chip_ime_AppendCommand_ColorControl_MoveToSaturation.restype = ctypes.c_uint32
1178         # Cluster ColorControl Command StepColor
1179         self._chipLib.chip_ime_AppendCommand_ColorControl_StepColor.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_int16, ctypes.c_int16, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint8]
1180         self._chipLib.chip_ime_AppendCommand_ColorControl_StepColor.restype = ctypes.c_uint32
1181         # Cluster ColorControl Command StepColorTemperature
1182         self._chipLib.chip_ime_AppendCommand_ColorControl_StepColorTemperature.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint8]
1183         self._chipLib.chip_ime_AppendCommand_ColorControl_StepColorTemperature.restype = ctypes.c_uint32
1184         # Cluster ColorControl Command StepHue
1185         self._chipLib.chip_ime_AppendCommand_ColorControl_StepHue.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint8, ctypes.c_uint8, ctypes.c_uint8, ctypes.c_uint8]
1186         self._chipLib.chip_ime_AppendCommand_ColorControl_StepHue.restype = ctypes.c_uint32
1187         # Cluster ColorControl Command StepSaturation
1188         self._chipLib.chip_ime_AppendCommand_ColorControl_StepSaturation.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint8, ctypes.c_uint8, ctypes.c_uint8, ctypes.c_uint8]
1189         self._chipLib.chip_ime_AppendCommand_ColorControl_StepSaturation.restype = ctypes.c_uint32
1190         # Cluster ColorControl Command StopMoveStep
1191         self._chipLib.chip_ime_AppendCommand_ColorControl_StopMoveStep.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint8]
1192         self._chipLib.chip_ime_AppendCommand_ColorControl_StopMoveStep.restype = ctypes.c_uint32
1193         # Cluster ContentLaunch
1194         # Cluster ContentLaunch Command LaunchContent
1195         self._chipLib.chip_ime_AppendCommand_ContentLaunch_LaunchContent.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16]
1196         self._chipLib.chip_ime_AppendCommand_ContentLaunch_LaunchContent.restype = ctypes.c_uint32
1197         # Cluster ContentLaunch Command LaunchURL
1198         self._chipLib.chip_ime_AppendCommand_ContentLaunch_LaunchURL.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16]
1199         self._chipLib.chip_ime_AppendCommand_ContentLaunch_LaunchURL.restype = ctypes.c_uint32
1200         # Cluster DoorLock
1201         # Cluster DoorLock Command ClearAllPins
1202         self._chipLib.chip_ime_AppendCommand_DoorLock_ClearAllPins.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16]
1203         self._chipLib.chip_ime_AppendCommand_DoorLock_ClearAllPins.restype = ctypes.c_uint32
1204         # Cluster DoorLock Command ClearAllRfids
1205         self._chipLib.chip_ime_AppendCommand_DoorLock_ClearAllRfids.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16]
1206         self._chipLib.chip_ime_AppendCommand_DoorLock_ClearAllRfids.restype = ctypes.c_uint32
1207         # Cluster DoorLock Command ClearHolidaySchedule
1208         self._chipLib.chip_ime_AppendCommand_DoorLock_ClearHolidaySchedule.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8]
1209         self._chipLib.chip_ime_AppendCommand_DoorLock_ClearHolidaySchedule.restype = ctypes.c_uint32
1210         # Cluster DoorLock Command ClearPin
1211         self._chipLib.chip_ime_AppendCommand_DoorLock_ClearPin.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16]
1212         self._chipLib.chip_ime_AppendCommand_DoorLock_ClearPin.restype = ctypes.c_uint32
1213         # Cluster DoorLock Command ClearRfid
1214         self._chipLib.chip_ime_AppendCommand_DoorLock_ClearRfid.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16]
1215         self._chipLib.chip_ime_AppendCommand_DoorLock_ClearRfid.restype = ctypes.c_uint32
1216         # Cluster DoorLock Command ClearWeekdaySchedule
1217         self._chipLib.chip_ime_AppendCommand_DoorLock_ClearWeekdaySchedule.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint16]
1218         self._chipLib.chip_ime_AppendCommand_DoorLock_ClearWeekdaySchedule.restype = ctypes.c_uint32
1219         # Cluster DoorLock Command ClearYeardaySchedule
1220         self._chipLib.chip_ime_AppendCommand_DoorLock_ClearYeardaySchedule.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint16]
1221         self._chipLib.chip_ime_AppendCommand_DoorLock_ClearYeardaySchedule.restype = ctypes.c_uint32
1222         # Cluster DoorLock Command GetHolidaySchedule
1223         self._chipLib.chip_ime_AppendCommand_DoorLock_GetHolidaySchedule.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8]
1224         self._chipLib.chip_ime_AppendCommand_DoorLock_GetHolidaySchedule.restype = ctypes.c_uint32
1225         # Cluster DoorLock Command GetLogRecord
1226         self._chipLib.chip_ime_AppendCommand_DoorLock_GetLogRecord.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16]
1227         self._chipLib.chip_ime_AppendCommand_DoorLock_GetLogRecord.restype = ctypes.c_uint32
1228         # Cluster DoorLock Command GetPin
1229         self._chipLib.chip_ime_AppendCommand_DoorLock_GetPin.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16]
1230         self._chipLib.chip_ime_AppendCommand_DoorLock_GetPin.restype = ctypes.c_uint32
1231         # Cluster DoorLock Command GetRfid
1232         self._chipLib.chip_ime_AppendCommand_DoorLock_GetRfid.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16]
1233         self._chipLib.chip_ime_AppendCommand_DoorLock_GetRfid.restype = ctypes.c_uint32
1234         # Cluster DoorLock Command GetUserType
1235         self._chipLib.chip_ime_AppendCommand_DoorLock_GetUserType.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16]
1236         self._chipLib.chip_ime_AppendCommand_DoorLock_GetUserType.restype = ctypes.c_uint32
1237         # Cluster DoorLock Command GetWeekdaySchedule
1238         self._chipLib.chip_ime_AppendCommand_DoorLock_GetWeekdaySchedule.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint16]
1239         self._chipLib.chip_ime_AppendCommand_DoorLock_GetWeekdaySchedule.restype = ctypes.c_uint32
1240         # Cluster DoorLock Command GetYeardaySchedule
1241         self._chipLib.chip_ime_AppendCommand_DoorLock_GetYeardaySchedule.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint16]
1242         self._chipLib.chip_ime_AppendCommand_DoorLock_GetYeardaySchedule.restype = ctypes.c_uint32
1243         # Cluster DoorLock Command LockDoor
1244         self._chipLib.chip_ime_AppendCommand_DoorLock_LockDoor.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_char_p, ctypes.c_uint32]
1245         self._chipLib.chip_ime_AppendCommand_DoorLock_LockDoor.restype = ctypes.c_uint32
1246         # Cluster DoorLock Command SetHolidaySchedule
1247         self._chipLib.chip_ime_AppendCommand_DoorLock_SetHolidaySchedule.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint32, ctypes.c_uint32, ctypes.c_uint8]
1248         self._chipLib.chip_ime_AppendCommand_DoorLock_SetHolidaySchedule.restype = ctypes.c_uint32
1249         # Cluster DoorLock Command SetPin
1250         self._chipLib.chip_ime_AppendCommand_DoorLock_SetPin.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint8, ctypes.c_char_p, ctypes.c_uint32]
1251         self._chipLib.chip_ime_AppendCommand_DoorLock_SetPin.restype = ctypes.c_uint32
1252         # Cluster DoorLock Command SetRfid
1253         self._chipLib.chip_ime_AppendCommand_DoorLock_SetRfid.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint8, ctypes.c_char_p, ctypes.c_uint32]
1254         self._chipLib.chip_ime_AppendCommand_DoorLock_SetRfid.restype = ctypes.c_uint32
1255         # Cluster DoorLock Command SetUserType
1256         self._chipLib.chip_ime_AppendCommand_DoorLock_SetUserType.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint8]
1257         self._chipLib.chip_ime_AppendCommand_DoorLock_SetUserType.restype = ctypes.c_uint32
1258         # Cluster DoorLock Command SetWeekdaySchedule
1259         self._chipLib.chip_ime_AppendCommand_DoorLock_SetWeekdaySchedule.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint8, ctypes.c_uint8, ctypes.c_uint8, ctypes.c_uint8]
1260         self._chipLib.chip_ime_AppendCommand_DoorLock_SetWeekdaySchedule.restype = ctypes.c_uint32
1261         # Cluster DoorLock Command SetYeardaySchedule
1262         self._chipLib.chip_ime_AppendCommand_DoorLock_SetYeardaySchedule.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint32, ctypes.c_uint32]
1263         self._chipLib.chip_ime_AppendCommand_DoorLock_SetYeardaySchedule.restype = ctypes.c_uint32
1264         # Cluster DoorLock Command UnlockDoor
1265         self._chipLib.chip_ime_AppendCommand_DoorLock_UnlockDoor.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_char_p, ctypes.c_uint32]
1266         self._chipLib.chip_ime_AppendCommand_DoorLock_UnlockDoor.restype = ctypes.c_uint32
1267         # Cluster DoorLock Command UnlockWithTimeout
1268         self._chipLib.chip_ime_AppendCommand_DoorLock_UnlockWithTimeout.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_char_p, ctypes.c_uint32]
1269         self._chipLib.chip_ime_AppendCommand_DoorLock_UnlockWithTimeout.restype = ctypes.c_uint32
1270         # Cluster GeneralCommissioning
1271         # Cluster GeneralCommissioning Command ArmFailSafe
1272         self._chipLib.chip_ime_AppendCommand_GeneralCommissioning_ArmFailSafe.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint64, ctypes.c_uint32]
1273         self._chipLib.chip_ime_AppendCommand_GeneralCommissioning_ArmFailSafe.restype = ctypes.c_uint32
1274         # Cluster GeneralCommissioning Command CommissioningComplete
1275         self._chipLib.chip_ime_AppendCommand_GeneralCommissioning_CommissioningComplete.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16]
1276         self._chipLib.chip_ime_AppendCommand_GeneralCommissioning_CommissioningComplete.restype = ctypes.c_uint32
1277         # Cluster GeneralCommissioning Command SetFabric
1278         self._chipLib.chip_ime_AppendCommand_GeneralCommissioning_SetFabric.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_char_p, ctypes.c_uint32, ctypes.c_char_p, ctypes.c_uint32, ctypes.c_uint64, ctypes.c_uint32]
1279         self._chipLib.chip_ime_AppendCommand_GeneralCommissioning_SetFabric.restype = ctypes.c_uint32
1280         # Cluster Groups
1281         # Cluster Groups Command AddGroup
1282         self._chipLib.chip_ime_AppendCommand_Groups_AddGroup.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_char_p, ctypes.c_uint32]
1283         self._chipLib.chip_ime_AppendCommand_Groups_AddGroup.restype = ctypes.c_uint32
1284         # Cluster Groups Command AddGroupIfIdentifying
1285         self._chipLib.chip_ime_AppendCommand_Groups_AddGroupIfIdentifying.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_char_p, ctypes.c_uint32]
1286         self._chipLib.chip_ime_AppendCommand_Groups_AddGroupIfIdentifying.restype = ctypes.c_uint32
1287         # Cluster Groups Command GetGroupMembership
1288         self._chipLib.chip_ime_AppendCommand_Groups_GetGroupMembership.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint16]
1289         self._chipLib.chip_ime_AppendCommand_Groups_GetGroupMembership.restype = ctypes.c_uint32
1290         # Cluster Groups Command RemoveAllGroups
1291         self._chipLib.chip_ime_AppendCommand_Groups_RemoveAllGroups.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16]
1292         self._chipLib.chip_ime_AppendCommand_Groups_RemoveAllGroups.restype = ctypes.c_uint32
1293         # Cluster Groups Command RemoveGroup
1294         self._chipLib.chip_ime_AppendCommand_Groups_RemoveGroup.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16]
1295         self._chipLib.chip_ime_AppendCommand_Groups_RemoveGroup.restype = ctypes.c_uint32
1296         # Cluster Groups Command ViewGroup
1297         self._chipLib.chip_ime_AppendCommand_Groups_ViewGroup.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16]
1298         self._chipLib.chip_ime_AppendCommand_Groups_ViewGroup.restype = ctypes.c_uint32
1299         # Cluster IasZone
1300         # Cluster Identify
1301         # Cluster Identify Command Identify
1302         self._chipLib.chip_ime_AppendCommand_Identify_Identify.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16]
1303         self._chipLib.chip_ime_AppendCommand_Identify_Identify.restype = ctypes.c_uint32
1304         # Cluster Identify Command IdentifyQuery
1305         self._chipLib.chip_ime_AppendCommand_Identify_IdentifyQuery.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16]
1306         self._chipLib.chip_ime_AppendCommand_Identify_IdentifyQuery.restype = ctypes.c_uint32
1307         # Cluster LevelControl
1308         # Cluster LevelControl Command Move
1309         self._chipLib.chip_ime_AppendCommand_LevelControl_Move.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint8, ctypes.c_uint8, ctypes.c_uint8]
1310         self._chipLib.chip_ime_AppendCommand_LevelControl_Move.restype = ctypes.c_uint32
1311         # Cluster LevelControl Command MoveToLevel
1312         self._chipLib.chip_ime_AppendCommand_LevelControl_MoveToLevel.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint8]
1313         self._chipLib.chip_ime_AppendCommand_LevelControl_MoveToLevel.restype = ctypes.c_uint32
1314         # Cluster LevelControl Command MoveToLevelWithOnOff
1315         self._chipLib.chip_ime_AppendCommand_LevelControl_MoveToLevelWithOnOff.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint16]
1316         self._chipLib.chip_ime_AppendCommand_LevelControl_MoveToLevelWithOnOff.restype = ctypes.c_uint32
1317         # Cluster LevelControl Command MoveWithOnOff
1318         self._chipLib.chip_ime_AppendCommand_LevelControl_MoveWithOnOff.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint8]
1319         self._chipLib.chip_ime_AppendCommand_LevelControl_MoveWithOnOff.restype = ctypes.c_uint32
1320         # Cluster LevelControl Command Step
1321         self._chipLib.chip_ime_AppendCommand_LevelControl_Step.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint8]
1322         self._chipLib.chip_ime_AppendCommand_LevelControl_Step.restype = ctypes.c_uint32
1323         # Cluster LevelControl Command StepWithOnOff
1324         self._chipLib.chip_ime_AppendCommand_LevelControl_StepWithOnOff.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint8, ctypes.c_uint16]
1325         self._chipLib.chip_ime_AppendCommand_LevelControl_StepWithOnOff.restype = ctypes.c_uint32
1326         # Cluster LevelControl Command Stop
1327         self._chipLib.chip_ime_AppendCommand_LevelControl_Stop.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint8]
1328         self._chipLib.chip_ime_AppendCommand_LevelControl_Stop.restype = ctypes.c_uint32
1329         # Cluster LevelControl Command StopWithOnOff
1330         self._chipLib.chip_ime_AppendCommand_LevelControl_StopWithOnOff.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16]
1331         self._chipLib.chip_ime_AppendCommand_LevelControl_StopWithOnOff.restype = ctypes.c_uint32
1332         # Cluster LowPower
1333         # Cluster LowPower Command Sleep
1334         self._chipLib.chip_ime_AppendCommand_LowPower_Sleep.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16]
1335         self._chipLib.chip_ime_AppendCommand_LowPower_Sleep.restype = ctypes.c_uint32
1336         # Cluster MediaPlayback
1337         # Cluster MediaPlayback Command FastForwardRequest
1338         self._chipLib.chip_ime_AppendCommand_MediaPlayback_FastForwardRequest.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16]
1339         self._chipLib.chip_ime_AppendCommand_MediaPlayback_FastForwardRequest.restype = ctypes.c_uint32
1340         # Cluster MediaPlayback Command NextRequest
1341         self._chipLib.chip_ime_AppendCommand_MediaPlayback_NextRequest.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16]
1342         self._chipLib.chip_ime_AppendCommand_MediaPlayback_NextRequest.restype = ctypes.c_uint32
1343         # Cluster MediaPlayback Command PauseRequest
1344         self._chipLib.chip_ime_AppendCommand_MediaPlayback_PauseRequest.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16]
1345         self._chipLib.chip_ime_AppendCommand_MediaPlayback_PauseRequest.restype = ctypes.c_uint32
1346         # Cluster MediaPlayback Command PlayRequest
1347         self._chipLib.chip_ime_AppendCommand_MediaPlayback_PlayRequest.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16]
1348         self._chipLib.chip_ime_AppendCommand_MediaPlayback_PlayRequest.restype = ctypes.c_uint32
1349         # Cluster MediaPlayback Command PreviousRequest
1350         self._chipLib.chip_ime_AppendCommand_MediaPlayback_PreviousRequest.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16]
1351         self._chipLib.chip_ime_AppendCommand_MediaPlayback_PreviousRequest.restype = ctypes.c_uint32
1352         # Cluster MediaPlayback Command RewindRequest
1353         self._chipLib.chip_ime_AppendCommand_MediaPlayback_RewindRequest.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16]
1354         self._chipLib.chip_ime_AppendCommand_MediaPlayback_RewindRequest.restype = ctypes.c_uint32
1355         # Cluster MediaPlayback Command SkipBackwardRequest
1356         self._chipLib.chip_ime_AppendCommand_MediaPlayback_SkipBackwardRequest.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16]
1357         self._chipLib.chip_ime_AppendCommand_MediaPlayback_SkipBackwardRequest.restype = ctypes.c_uint32
1358         # Cluster MediaPlayback Command SkipForwardRequest
1359         self._chipLib.chip_ime_AppendCommand_MediaPlayback_SkipForwardRequest.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16]
1360         self._chipLib.chip_ime_AppendCommand_MediaPlayback_SkipForwardRequest.restype = ctypes.c_uint32
1361         # Cluster MediaPlayback Command StartOverRequest
1362         self._chipLib.chip_ime_AppendCommand_MediaPlayback_StartOverRequest.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16]
1363         self._chipLib.chip_ime_AppendCommand_MediaPlayback_StartOverRequest.restype = ctypes.c_uint32
1364         # Cluster MediaPlayback Command StopRequest
1365         self._chipLib.chip_ime_AppendCommand_MediaPlayback_StopRequest.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16]
1366         self._chipLib.chip_ime_AppendCommand_MediaPlayback_StopRequest.restype = ctypes.c_uint32
1367         # Cluster NetworkCommissioning
1368         # Cluster NetworkCommissioning Command AddThreadNetwork
1369         self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_AddThreadNetwork.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_char_p, ctypes.c_uint32, ctypes.c_uint64, ctypes.c_uint32]
1370         self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_AddThreadNetwork.restype = ctypes.c_uint32
1371         # Cluster NetworkCommissioning Command AddWiFiNetwork
1372         self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_AddWiFiNetwork.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_char_p, ctypes.c_uint32, ctypes.c_char_p, ctypes.c_uint32, ctypes.c_uint64, ctypes.c_uint32]
1373         self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_AddWiFiNetwork.restype = ctypes.c_uint32
1374         # Cluster NetworkCommissioning Command DisableNetwork
1375         self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_DisableNetwork.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_char_p, ctypes.c_uint32, ctypes.c_uint64, ctypes.c_uint32]
1376         self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_DisableNetwork.restype = ctypes.c_uint32
1377         # Cluster NetworkCommissioning Command EnableNetwork
1378         self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_EnableNetwork.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_char_p, ctypes.c_uint32, ctypes.c_uint64, ctypes.c_uint32]
1379         self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_EnableNetwork.restype = ctypes.c_uint32
1380         # Cluster NetworkCommissioning Command GetLastNetworkCommissioningResult
1381         self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_GetLastNetworkCommissioningResult.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint32]
1382         self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_GetLastNetworkCommissioningResult.restype = ctypes.c_uint32
1383         # Cluster NetworkCommissioning Command RemoveNetwork
1384         self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_RemoveNetwork.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_char_p, ctypes.c_uint32, ctypes.c_uint64, ctypes.c_uint32]
1385         self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_RemoveNetwork.restype = ctypes.c_uint32
1386         # Cluster NetworkCommissioning Command ScanNetworks
1387         self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_ScanNetworks.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_char_p, ctypes.c_uint32, ctypes.c_uint64, ctypes.c_uint32]
1388         self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_ScanNetworks.restype = ctypes.c_uint32
1389         # Cluster NetworkCommissioning Command UpdateThreadNetwork
1390         self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_UpdateThreadNetwork.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_char_p, ctypes.c_uint32, ctypes.c_uint64, ctypes.c_uint32]
1391         self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_UpdateThreadNetwork.restype = ctypes.c_uint32
1392         # Cluster NetworkCommissioning Command UpdateWiFiNetwork
1393         self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_UpdateWiFiNetwork.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_char_p, ctypes.c_uint32, ctypes.c_char_p, ctypes.c_uint32, ctypes.c_uint64, ctypes.c_uint32]
1394         self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_UpdateWiFiNetwork.restype = ctypes.c_uint32
1395         # Cluster OnOff
1396         # Cluster OnOff Command Off
1397         self._chipLib.chip_ime_AppendCommand_OnOff_Off.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16]
1398         self._chipLib.chip_ime_AppendCommand_OnOff_Off.restype = ctypes.c_uint32
1399         # Cluster OnOff Command On
1400         self._chipLib.chip_ime_AppendCommand_OnOff_On.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16]
1401         self._chipLib.chip_ime_AppendCommand_OnOff_On.restype = ctypes.c_uint32
1402         # Cluster OnOff Command Toggle
1403         self._chipLib.chip_ime_AppendCommand_OnOff_Toggle.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16]
1404         self._chipLib.chip_ime_AppendCommand_OnOff_Toggle.restype = ctypes.c_uint32
1405         # Cluster Scenes
1406         # Cluster Scenes Command AddScene
1407         self._chipLib.chip_ime_AppendCommand_Scenes_AddScene.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_char_p, ctypes.c_uint32, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint8]
1408         self._chipLib.chip_ime_AppendCommand_Scenes_AddScene.restype = ctypes.c_uint32
1409         # Cluster Scenes Command GetSceneMembership
1410         self._chipLib.chip_ime_AppendCommand_Scenes_GetSceneMembership.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16]
1411         self._chipLib.chip_ime_AppendCommand_Scenes_GetSceneMembership.restype = ctypes.c_uint32
1412         # Cluster Scenes Command RecallScene
1413         self._chipLib.chip_ime_AppendCommand_Scenes_RecallScene.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint8, ctypes.c_uint16]
1414         self._chipLib.chip_ime_AppendCommand_Scenes_RecallScene.restype = ctypes.c_uint32
1415         # Cluster Scenes Command RemoveAllScenes
1416         self._chipLib.chip_ime_AppendCommand_Scenes_RemoveAllScenes.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16]
1417         self._chipLib.chip_ime_AppendCommand_Scenes_RemoveAllScenes.restype = ctypes.c_uint32
1418         # Cluster Scenes Command RemoveScene
1419         self._chipLib.chip_ime_AppendCommand_Scenes_RemoveScene.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint8]
1420         self._chipLib.chip_ime_AppendCommand_Scenes_RemoveScene.restype = ctypes.c_uint32
1421         # Cluster Scenes Command StoreScene
1422         self._chipLib.chip_ime_AppendCommand_Scenes_StoreScene.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint8]
1423         self._chipLib.chip_ime_AppendCommand_Scenes_StoreScene.restype = ctypes.c_uint32
1424         # Cluster Scenes Command ViewScene
1425         self._chipLib.chip_ime_AppendCommand_Scenes_ViewScene.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint8]
1426         self._chipLib.chip_ime_AppendCommand_Scenes_ViewScene.restype = ctypes.c_uint32
1427         # Cluster TemperatureMeasurement