Skip to content

Commit

Permalink
Add missing clusters and attributes controller (#17065)
Browse files Browse the repository at this point in the history
* Add missing controller cluster commands

* Generated code
  • Loading branch information
krypton36 authored and pull[bot] committed Jan 31, 2024
1 parent 925dded commit b48deb6
Show file tree
Hide file tree
Showing 13 changed files with 641 additions and 3 deletions.
31 changes: 31 additions & 0 deletions src/controller/data_model/controller-clusters.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1513,6 +1513,21 @@ client cluster DoorLock = 257 {
INT16U userIndex = 1;
}

request struct SetHolidayScheduleRequest {
INT8U holidayIndex = 0;
epoch_s localStartTime = 1;
epoch_s localEndTime = 2;
DlOperatingMode operatingMode = 3;
}

request struct GetHolidayScheduleRequest {
INT8U holidayIndex = 0;
}

request struct ClearHolidayScheduleRequest {
INT8U holidayIndex = 0;
}

request struct SetUserRequest {
DlDataOperationType operationType = 0;
INT16U userIndex = 1;
Expand Down Expand Up @@ -1567,6 +1582,19 @@ client cluster DoorLock = 257 {
optional epoch_s localEndTime = 4;
}

response struct GetHolidayScheduleResponse {
INT8U holidayIndex = 0;
DlStatus status = 1;
optional epoch_s localStartTime = 2;
optional epoch_s localEndTime = 3;
optional DlOperatingMode operatingMode = 4;
}

response struct GetUserTypeResponse {
INT16U userId = 0;
DlUserType userType = 1;
}

response struct GetUserResponse {
INT16U userIndex = 0;
nullable CHAR_STRING userName = 1;
Expand Down Expand Up @@ -1601,6 +1629,9 @@ client cluster DoorLock = 257 {
command SetYearDaySchedule(SetYearDayScheduleRequest): DefaultSuccess = 14;
command GetYearDaySchedule(GetYearDayScheduleRequest): GetYearDayScheduleResponse = 15;
command ClearYearDaySchedule(ClearYearDayScheduleRequest): DefaultSuccess = 16;
command SetHolidaySchedule(SetHolidayScheduleRequest): DefaultSuccess = 17;
command GetHolidaySchedule(GetHolidayScheduleRequest): GetHolidayScheduleResponse = 18;
command ClearHolidaySchedule(ClearHolidayScheduleRequest): DefaultSuccess = 19;
timed command SetUser(SetUserRequest): DefaultSuccess = 26;
command GetUser(GetUserRequest): GetUserResponse = 27;
timed command ClearUser(ClearUserRequest): DefaultSuccess = 29;
Expand Down
22 changes: 19 additions & 3 deletions src/controller/data_model/controller-clusters.zap
Original file line number Diff line number Diff line change
Expand Up @@ -8826,7 +8826,23 @@
"mfgCode": null,
"source": "client",
"incoming": 0,
"outgoing": 0
"outgoing": 1
},
{
"name": "GetHolidaySchedule",
"code": 18,
"mfgCode": null,
"source": "client",
"incoming": 0,
"outgoing": 1
},
{
"name": "ClearHolidaySchedule",
"code": 19,
"mfgCode": null,
"source": "client",
"incoming": 0,
"outgoing": 1
},
{
"name": "SetUser",
Expand Down Expand Up @@ -8963,15 +8979,15 @@
"code": 18,
"mfgCode": null,
"source": "server",
"incoming": 0,
"incoming": 1,
"outgoing": 1
},
{
"name": "GetUserTypeResponse",
"code": 21,
"mfgCode": null,
"source": "server",
"incoming": 0,
"incoming": 1,
"outgoing": 1
},
{
Expand Down
2 changes: 2 additions & 0 deletions src/controller/java/zap-generated/CHIPCallbackTypes.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

112 changes: 112 additions & 0 deletions src/controller/java/zap-generated/CHIPInvokeCallbacks.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions src/controller/java/zap-generated/CHIPInvokeCallbacks.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b48deb6

Please sign in to comment.