Skip to content

Commit

Permalink
Improve doorlock to support PIN CODE
Browse files Browse the repository at this point in the history
  • Loading branch information
erwinpan1 committed Jan 5, 2024
1 parent d38a649 commit 1d325dd
Show file tree
Hide file tree
Showing 2 changed files with 362 additions and 25 deletions.
43 changes: 35 additions & 8 deletions examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter
Original file line number Diff line number Diff line change
Expand Up @@ -2183,32 +2183,58 @@ endpoint 1 {

server cluster DoorLock {
emits event DoorLockAlarm;
emits event DoorStateChange;
emits event LockOperation;
emits event LockOperationError;
emits event LockUserChange;
ram attribute lockState default = 1;
ram attribute lockType default = 0;
ram attribute actuatorEnabled default = 0;
ram attribute numberOfTotalUsersSupported default = 2;
ram attribute numberOfPINUsersSupported default = 2;
ram attribute maxPINCodeLength default = 10;
ram attribute minPINCodeLength default = 5;
ram attribute doorState;
ram attribute numberOfTotalUsersSupported default = 10;
ram attribute numberOfPINUsersSupported default = 10;
ram attribute numberOfRFIDUsersSupported default = 10;
ram attribute numberOfWeekDaySchedulesSupportedPerUser default = 10;
ram attribute numberOfYearDaySchedulesSupportedPerUser default = 10;
ram attribute numberOfHolidaySchedulesSupported default = 10;
ram attribute maxPINCodeLength default = 8;
ram attribute minPINCodeLength default = 6;
ram attribute maxRFIDCodeLength default = 20;
ram attribute minRFIDCodeLength default = 10;
ram attribute credentialRulesSupport default = 1;
ram attribute numberOfCredentialsSupportedPerUser default = 5;
ram attribute autoRelockTime default = 0;
ram attribute language default = "en";
ram attribute autoRelockTime default = 60;
ram attribute soundVolume default = 0;
ram attribute operatingMode default = 0;
ram attribute supportedOperatingModes default = 0xFFF6;
ram attribute enableOneTouchLocking default = 0;
ram attribute enablePrivacyModeButton default = 0;
ram attribute wrongCodeEntryLimit default = 3;
ram attribute userCodeTemporaryDisableTime default = 10;
ram attribute sendPINOverTheAir default = 0;
ram attribute requirePINforRemoteOperation default = 1;
ram attribute requirePINforRemoteOperation default = 0;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
callback attribute attributeList;
ram attribute featureMap default = 0x0181;
ram attribute featureMap default = 0x1DB3;
ram attribute clusterRevision default = 6;

handle command LockDoor;
handle command UnlockDoor;
handle command UnlockWithTimeout;
handle command SetWeekDaySchedule;
handle command GetWeekDaySchedule;
handle command GetWeekDayScheduleResponse;
handle command ClearWeekDaySchedule;
handle command SetYearDaySchedule;
handle command GetYearDaySchedule;
handle command GetYearDayScheduleResponse;
handle command ClearYearDaySchedule;
handle command SetHolidaySchedule;
handle command GetHolidaySchedule;
handle command GetHolidayScheduleResponse;
handle command ClearHolidaySchedule;
handle command SetUser;
handle command GetUser;
handle command GetUserResponse;
Expand All @@ -2218,6 +2244,7 @@ endpoint 1 {
handle command GetCredentialStatus;
handle command GetCredentialStatusResponse;
handle command ClearCredential;
handle command UnboltDoor;
}
}

Expand Down
Loading

0 comments on commit 1d325dd

Please sign in to comment.