Cmd Class Door Lock data structure.#
Inside/outside Door Handles Mode These mode bits indicate if the actual handle can open the door locally.
The mode of the four inside and four outside door handles are encoded in insideDoorHandleMode and outsideDoorHandleMode as:
Bit 0: Handle 1
Bit 1: Handle 2
Bit 2: Handle 3
Bit 3: Handle 4
Values:
0: disabled
1: enabled
Inside/outside Door Handles State These fields indicate if a door handle has been activated. The state of the four inside and four outside door handles are encoded in insideDoorHandleState and outsideDoorHandleState as follows:
Bit 0: Handle 1
Bit 1: Handle 2
Bit 2: Handle 3
Bit 3: Handle 4
Values:
0: inactive
1: activated
Note
Field condition is used only for saving data to NVM. For needs of Operation Report, this bitmask is calculated based on actual latch/bolt/door values. It's recommended to use door_lock_hw_data_t for hardware data.
Door condition. The condition field indicates the status of the door lock components such as bolt and latch states.
Bit 0: Door
0: Open
1: Closed
Bit 1: Bolt
0: Locked
1: Unlocked
Bit 2: Latch
0: Open
1: Closed
Bit 3-7: Reserved
Public Attributes#
Inside Door Handles Mode (4 bits)
Outside Door Handles Mode (4 bits)
Inside Door Handles State (4 bits)
Outside Door Handles State (4 bits)
Door condition (8 bits)
Lock Timeout Minutes, valid values 1-254 decimal.
Lock Timeout Seconds, valid 1-59 decimal.
Public Attribute Documentation#
insideDoorHandleMode#
uint8_t cc_door_lock_data_t::insideDoorHandleMode
Inside Door Handles Mode (4 bits)
outsideDoorHandleMode#
uint8_t cc_door_lock_data_t::outsideDoorHandleMode
Outside Door Handles Mode (4 bits)
insideDoorHandleState#
uint8_t cc_door_lock_data_t::insideDoorHandleState
Inside Door Handles State (4 bits)
outsideDoorHandleState#
uint8_t cc_door_lock_data_t::outsideDoorHandleState
Outside Door Handles State (4 bits)
lockTimeoutMin#
uint8_t cc_door_lock_data_t::lockTimeoutMin
Lock Timeout Minutes, valid values 1-254 decimal.