Lock state notification ======================= LOCK_STATUS_CHANGE code is 0xBA. Lock sends its state change. Parameters ---------- Param[0] - Actual state +--------------------+-----------+-------------------------------------------------------------------------------+ | **State name** | **Value** | **Description** | +--------------------+-----------+-------------------------------------------------------------------------------+ | UNCALIBRATED | 0x00 | Lock does not have any calibration. | +--------------------+-----------+-------------------------------------------------------------------------------+ | CALIBRATION | 0x01 | Lock is in calibration mode. | +--------------------+-----------+-------------------------------------------------------------------------------+ | UNLOCKED | 0x02 | Lock is in calibrated unlocked position. | +--------------------+-----------+-------------------------------------------------------------------------------+ | PARTIALLY_UNLOCKED | 0x03 | Lock is in the middle of calibrated locked/unlocked positions. | +--------------------+-----------+-------------------------------------------------------------------------------+ | UNLOCKING | 0x04 | Lock is rotating to an unlocked position. | +--------------------+-----------+-------------------------------------------------------------------------------+ | LOCKING | 0x05 | Lock is rotating to a locked position. | +--------------------+-----------+-------------------------------------------------------------------------------+ | LOCKED | 0x06 | Lock is in the calibrated locked position. | +--------------------+-----------+-------------------------------------------------------------------------------+ | PULL_SPRING | 0x07 | Lock is in calibrated pull spring position. | +--------------------+-----------+-------------------------------------------------------------------------------+ | PULLING | 0x08 | Lock is rotating to pull spring position. | +--------------------+-----------+-------------------------------------------------------------------------------+ | UNKNOWN | 0x09 | Lock lost angular position but knows directions of unlocked/locked positions. | +--------------------+-----------+-------------------------------------------------------------------------------+ Param [1] - Last lock state change status +----------------------+-----------+-------------------------------------------+ | **Status name** | **Value** | **Description** | +----------------------+-----------+-------------------------------------------+ | STATUS_OK | 0x00 | Last lock state change without issues. | +----------------------+-----------+-------------------------------------------+ | STATUS_ERROR_JAMMED | 0x01 | Lock jammed during last state change. | +----------------------+-----------+-------------------------------------------+