Lock
- class st.zigbee.defaults.lock
- zigbee_handlers: table
- attribute_configurations: table
- capability_handlers: table
- static lock_operation_event_handler(driver, device, zb_rx)
Default handler for lock OperatingEventNotification cluster command
This will look at the event_source, event_value, and user_id to generate a lock.lock event with the appropriate value and data.
- Parameters
driver (
ZigbeeDriver
) – The current driver running containing necessary context for executiondevice (
st.zigbee.Device
) – The device this message was received from containing identifying informationzb_rx (
st.zigbee.ZigbeeMessageRx
) – the full message this report came in
- static lock_state_handler(driver, device, value, zb_rx)
Default handler for lock state attribute on the door lock cluster
This converts the lock state value to the appropriate value
- Parameters
driver (
Driver
) – The current driver running containing necessary context for executiondevice (
st.zigbee.Device
) – The device this message was received from containing identifying informationvalue (
LockState
) – the value of the door lock cluster lock state attributezb_rx (
st.zigbee.ZigbeeMessageRx
) – the full message this report came in
- static lock(driver, device, command)
Default handler for the Lock.lock command
This will send the lock command to the door lock cluster
- static unlock(driver, device, command)
Default handler for the Lock.unlock command
This will send the unlock command to the door lock cluster