Skip to content

Commit

Permalink
Update Door Lock Cluster definitions (#12289)
Browse files Browse the repository at this point in the history
* Add new cluster definition for a door lock

* Remove door lock cluster definition from silabs XML
- It was moved into matter data model directory

* Update zap files for all the examples to reflect door lock changes

* Tweak the door lock cluster so it uses new definitions

* Fix java ZAP templates to support nullables and bitmaps

* Fix style issues

* Use proper types in the attribute definitions of the Door Lock Cluster

* Update auto-generated files
  • Loading branch information
Morozov-5F authored and pull[bot] committed Mar 31, 2022
1 parent 4935ad8 commit 8796165
Show file tree
Hide file tree
Showing 59 changed files with 7,339 additions and 11,428 deletions.
391 changes: 179 additions & 212 deletions examples/all-clusters-app/all-clusters-common/all-clusters-app.zap

Large diffs are not rendered by default.

118 changes: 43 additions & 75 deletions examples/ota-provider-app/ota-provider-common/ota-provider-app.zap

Large diffs are not rendered by default.

118 changes: 43 additions & 75 deletions examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.zap

Large diffs are not rendered by default.

234 changes: 85 additions & 149 deletions examples/thermostat/thermostat-common/thermostat.zap

Large diffs are not rendered by default.

118 changes: 43 additions & 75 deletions examples/tv-app/tv-common/tv-app.zap

Large diffs are not rendered by default.

400 changes: 188 additions & 212 deletions examples/tv-casting-app/tv-casting-common/tv-casting-app.zap

Large diffs are not rendered by default.

168 changes: 51 additions & 117 deletions src/app/clusters/door-lock-server/door-lock-server-schedule.cpp

Large diffs are not rendered by default.

233 changes: 75 additions & 158 deletions src/app/clusters/door-lock-server/door-lock-server-user.cpp

Large diffs are not rendered by default.

957 changes: 957 additions & 0 deletions src/app/zap-templates/zcl/data-model/chip/door-lock-cluster.xml

Large diffs are not rendered by default.

30 changes: 18 additions & 12 deletions src/app/zap-templates/zcl/data-model/chip/matter-devices.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2149,28 +2149,34 @@ limitations under the License.
<include cluster="Door Lock" client="true" server="true" clientLocked="true" serverLocked="true">
<requireCommand>LockDoor</requireCommand>
<requireCommand>UnlockDoor</requireCommand>
<requireCommand>Toggle</requireCommand>
<requireCommand>UnlockWithTimeout</requireCommand>
<requireCommand>GetLogRecord</requireCommand>
<requireCommand>SetPin</requireCommand>
<requireCommand>GetPin</requireCommand>
<requireCommand>ClearPin</requireCommand>
<requireCommand>ClearAllPins</requireCommand>
<requireCommand>SetWeekdaySchedule</requireCommand>
<requireCommand>GetWeekdaySchedule</requireCommand>
<requireCommand>ClearWeekdaySchedule</requireCommand>
<requireCommand>GetLogRecordResponse</requireCommand>
<requireCommand>SetPINCode</requireCommand>
<requireCommand>GetPINCode</requireCommand>
<requireCommand>GetPINCodeResponse</requireCommand>
<requireCommand>ClearPINCode</requireCommand>
<requireCommand>ClearAllPINCodes</requireCommand>
<requireCommand>SetWeekDaySchedule</requireCommand>
<requireCommand>GetWeekDaySchedule</requireCommand>
<requireCommand>GetWeekDayScheduleResponse</requireCommand>
<requireCommand>ClearWeekDaySchedule</requireCommand>
<requireCommand>SetYearDaySchedule</requireCommand>
<requireCommand>GetYearDaySchedule</requireCommand>
<requireCommand>GetYearDayScheduleResponse</requireCommand>
<requireCommand>ClearYearDaySchedule</requireCommand>
<requireCommand>SetHolidaySchedule</requireCommand>
<requireCommand>GetHolidaySchedule</requireCommand>
<requireCommand>GetHolidayScheduleResponse</requireCommand>
<requireCommand>ClearHolidaySchedule</requireCommand>
<requireCommand>SetUserType</requireCommand>
<requireCommand>GetUserType</requireCommand>
<requireCommand>SetRfid</requireCommand>
<requireCommand>GetRfid</requireCommand>
<requireCommand>ClearRfid</requireCommand>
<requireCommand>ClearAllRfids</requireCommand>
<requireCommand>GetUserTypeResponse</requireCommand>
<requireCommand>SetRFIDCode</requireCommand>
<requireCommand>GetRFIDCode</requireCommand>
<requireCommand>GetRFIDCodeResponse</requireCommand>
<requireCommand>ClearRFIDCode</requireCommand>
<requireCommand>ClearAllRFIDCodes</requireCommand>
</include>
<include cluster="Groups" client="false" server="true" clientLocked="true" serverLocked="true">
<requireAttribute>GROUP_NAME_SUPPORT</requireAttribute>
Expand Down
441 changes: 0 additions & 441 deletions src/app/zap-templates/zcl/data-model/silabs/ha.xml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/app/zap-templates/zcl/zcl.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"content-launch-cluster.xml",
"descriptor-cluster.xml",
"diagnostic-logs-cluster.xml",
"door-lock-cluster.xml",
"ethernet-network-diagnostics-cluster.xml",
"fixed-label-cluster.xml",
"flow-measurement-cluster.xml",
Expand Down
Loading

0 comments on commit 8796165

Please sign in to comment.