Constants
ATTR_ACTUATOR_ENABLED = 2_u32
ATTR_AUTO_RELOCK_TIME = 35_u32
ATTR_CREDENTIAL_RULES_SUPPORT = 27_u32
ATTR_DEFAULT_CONFIGURATION_REGISTER = 39_u32
ATTR_DOOR_CLOSED_EVENTS = 5_u32
ATTR_DOOR_OPEN_EVENTS = 4_u32
ATTR_DOOR_STATE = 3_u32
Door Position Sensor feature attributes
ATTR_ENABLE_INSIDE_STATUS_LED = 42_u32
ATTR_ENABLE_LOCAL_PROGRAMMING = 40_u32
ATTR_ENABLE_ONE_TOUCH_LOCKING = 41_u32
ATTR_ENABLE_PRIVACY_MODE_BUTTON = 43_u32
ATTR_EXPIRING_USER_TIMEOUT = 53_u32
ATTR_LED_SETTINGS = 34_u32
ATTR_LOCAL_PROGRAMMING_FEATURES = 44_u32
ATTR_MAX_PIN_CODE_LENGTH = 23_u32
ATTR_MAX_RFID_CODE_LENGTH = 25_u32
ATTR_MIN_PIN_CODE_LENGTH = 24_u32
ATTR_MIN_RFID_CODE_LENGTH = 26_u32
ATTR_NUMBER_OF_CREDENTIALS_SUPPORTED_PER_USER = 28_u32
ATTR_NUMBER_OF_HOLIDAY_SCHEDULES_SUPPORTED = 22_u32
ATTR_NUMBER_OF_PIN_USERS_SUPPORTED = 18_u32
ATTR_NUMBER_OF_RFID_USERS_SUPPORTED = 19_u32
ATTR_NUMBER_OF_TOTAL_USERS_SUPPORTED = 17_u32
User / credential / schedule capability attributes
ATTR_NUMBER_OF_WEEK_DAY_SCHEDULES_SUPPORTED_PER_USER = 20_u32
ATTR_NUMBER_OF_YEAR_DAY_SCHEDULES_SUPPORTED_PER_USER = 21_u32
ATTR_OPERATING_MODE = 37_u32
ATTR_REQUIRE_PIN_FOR_REMOTE_OPERATION = 51_u32
ATTR_SEND_PIN_OVER_THE_AIR = 50_u32
ATTR_SOUND_VOLUME = 36_u32
ATTR_SUPPORTED_OPERATING_MODES = 38_u32
ATTR_USER_CODE_TEMPORARY_DISABLE_TIME = 49_u32
ATTR_WRONG_CODE_ENTRY_LIMIT = 48_u32
Optional credential policy attributes
CMD_CLEAR_CREDENTIAL = 38_u32
CMD_CLEAR_HOLIDAY_SCHEDULE = 19_u32
CMD_CLEAR_WEEK_DAY_SCHEDULE = 13_u32
CMD_CLEAR_YEAR_DAY_SCHEDULE = 16_u32
CMD_GET_CREDENTIAL_STATUS = 36_u32
CMD_GET_CREDENTIAL_STATUS_RESPONSE = 37_u32
CMD_GET_HOLIDAY_SCHEDULE = 18_u32
CMD_GET_USER_RESPONSE = 28_u32
CMD_GET_WEEK_DAY_SCHEDULE = 12_u32
CMD_GET_YEAR_DAY_SCHEDULE = 15_u32
CMD_SET_CREDENTIAL = 34_u32
CMD_SET_CREDENTIAL_RESPONSE = 35_u32
CMD_SET_HOLIDAY_SCHEDULE = 17_u32
CMD_SET_WEEK_DAY_SCHEDULE = 11_u32
CMD_SET_YEAR_DAY_SCHEDULE = 14_u32
CMD_UNLOCK_WITH_TIMEOUT = 3_u32
EVT_DOOR_LOCK_ALARM = 0_u32
EVT_DOOR_STATE_CHANGE = 1_u32
EVT_LOCK_OPERATION = 2_u32
EVT_LOCK_OPERATION_ERROR = 3_u32
EVT_LOCK_USER_CHANGE = 4_u32
Constructors
new(endpoint_id : DataType::EndpointNumber, feature_map : Feature = (((Feature::DoorPositionSensor | Feature::PinCredential) | Feature::CredentialOverTheAirAccess) | Feature::User) | Feature::Unbolting, lock_state : Def::LockState | Nil = Def::LockState::Locked, lock_type : Def::LockType = Def::LockType::Deadbolt, actuator_enabled : Bool = true, door_state : Def::DoorState | Nil = Def::DoorState::DoorClosed, language : String = "en", led_settings : LedSettings = LedSettings::NoLedSignal, auto_relock_time : UInt32 = 0_u32, sound_volume : SoundVolume = SoundVolume::Medium, operating_mode : Def::OperatingMode = Def::OperatingMode::Normal, supported_operating_modes : UInt16 = 0_u16, default_configuration_register : UInt16 = 0_u16, enable_local_programming : Bool = true, enable_one_touch_locking : Bool = true, enable_inside_status_led : Bool = true, enable_privacy_mode_button : Bool = true, local_programming_features : UInt8 = 255_u8, number_of_total_users_supported : UInt16 = 50_u16, number_of_pin_users_supported : UInt16 = 50_u16, number_of_rfid_users_supported : UInt16 = 50_u16, number_of_week_day_schedules_supported_per_user : UInt8 = 5_u8, number_of_year_day_schedules_supported_per_user : UInt8 = 5_u8, number_of_holiday_schedules_supported : UInt8 = 5_u8, max_pin_code_length : UInt8 = 8_u8, min_pin_code_length : UInt8 = 4_u8, max_rfid_code_length : UInt8 = 20_u8, min_rfid_code_length : UInt8 = 4_u8, credential_rules_support : UInt8 = 1_u8, number_of_credentials_supported_per_user : UInt8 = 5_u8, wrong_code_entry_limit : UInt8 = 3_u8, user_code_temporary_disable_time : UInt8 = 30_u8, send_pin_over_the_air : Bool = true, require_pin_for_remote_operation : Bool = false, expiring_user_timeout : UInt16 = 10_u16, default_pin_code : String = "1234")
SourceInstance methods
actuator_enabled=(actuator_enabled : Bool)
Sourceauto_relock_time=(auto_relock_time : UInt32)
Sourcecredential_rules_support
Sourcecredential_rules_support=(credential_rules_support : UInt8)
Sourcedefault_configuration_register
Sourcedefault_configuration_register=(default_configuration_register : UInt16)
Sourcedoor_closed_events=(door_closed_events : UInt32)
Sourcedoor_open_events=(door_open_events : UInt32)
Sourcedoor_state=(door_state : Def::DoorState | Nil)
Sourceenable_inside_status_led=(enable_inside_status_led : Bool)
Sourceenable_inside_status_led?
Sourceenable_local_programming=(enable_local_programming : Bool)
Sourceenable_local_programming?
Sourceenable_one_touch_locking=(enable_one_touch_locking : Bool)
Sourceenable_one_touch_locking?
Sourceexpiring_user_timeout=(expiring_user_timeout : UInt16)
Sourcefeature_map=(feature_map : Feature)
Sourcelanguage=(language : String)
Sourceled_settings=(led_settings : LedSettings)
Sourcelocal_programming_features
Sourcelocal_programming_features=(local_programming_features : UInt8)
Sourcelock(pin : String | Nil = nil, source : Def::OperationSource = Def::OperationSource::Remote) : InteractionModel::Status
Public API for local application logic
Sourcelock_state=(lock_state : Def::LockState | Nil)
Sourcelock_type=(lock_type : Def::LockType)
Sourcemax_pin_code_length=(max_pin_code_length : UInt8)
Sourcemax_rfid_code_length=(max_rfid_code_length : UInt8)
Sourcemin_pin_code_length=(min_pin_code_length : UInt8)
Sourcemin_rfid_code_length=(min_rfid_code_length : UInt8)
Sourcenumber_of_credentials_supported_per_user
Sourcenumber_of_credentials_supported_per_user=(number_of_credentials_supported_per_user : UInt8)
Sourcenumber_of_holiday_schedules_supported
Sourcenumber_of_holiday_schedules_supported=(number_of_holiday_schedules_supported : UInt8)
Sourcenumber_of_pin_users_supported
Sourcenumber_of_pin_users_supported=(number_of_pin_users_supported : UInt16)
Sourcenumber_of_rfid_users_supported
Sourcenumber_of_rfid_users_supported=(number_of_rfid_users_supported : UInt16)
Sourcenumber_of_total_users_supported
Sourcenumber_of_total_users_supported=(number_of_total_users_supported : UInt16)
Sourcenumber_of_week_day_schedules_supported_per_user
Sourcenumber_of_week_day_schedules_supported_per_user=(number_of_week_day_schedules_supported_per_user : UInt8)
Sourcenumber_of_year_day_schedules_supported_per_user
Sourcenumber_of_year_day_schedules_supported_per_user=(number_of_year_day_schedules_supported_per_user : UInt8)
Sourceopen_period=(open_period : UInt16)
Sourceoperating_mode=(operating_mode : Def::OperatingMode)
Sourceread_attribute(attribute_id : UInt32, fabric_index : UInt8 | Nil = nil) : Bytes | InteractionModel::Status
Read an attribute value
The fabric_index parameter is optional and used for fabric-scoped attributes
like CurrentFabricIndex in OperationalCredentialsCluster
Sourcerequire_pin_for_remote_operation=(require_pin_for_remote_operation : Bool)
Sourcerequire_pin_for_remote_operation?
Sourcesend_pin_over_the_air=(send_pin_over_the_air : Bool)
Sourcesound_volume=(sound_volume : SoundVolume)
Sourcesupported_operating_modes
Sourcesupported_operating_modes=(supported_operating_modes : UInt16)
Sourceunbolt(pin : String | Nil = nil, source : Def::OperationSource = Def::OperationSource::Remote) : InteractionModel::Status
Sourceunlock(pin : String | Nil = nil, source : Def::OperationSource = Def::OperationSource::Remote) : InteractionModel::Status
Sourceunlock_with_timeout(timeout_seconds : UInt16, pin : String | Nil = nil, source : Def::OperationSource = Def::OperationSource::Remote) : InteractionModel::Status
Sourceupdate_door_state(new_state : Def::DoorState | Nil) : Nil
Sourceuser_code_temporary_disable_time
Sourceuser_code_temporary_disable_time=(user_code_temporary_disable_time : UInt8)
Sourcewrite_attribute(attribute_id : UInt32, value : Bytes) : InteractionModel::Status
Sourcewrong_code_entry_limit
Sourcewrong_code_entry_limit=(wrong_code_entry_limit : UInt8)
Source