grizzly v0.6.4 Grizzly.CommandClass.DoorLock View Source

Functions and types for working with data found found in the door lock command class.

Link to this section Summary

Types

A type to represent the different door lock modes

Link to this section Types

Link to this type

decoded_mode() View Source
decoded_mode() :: :secured | :unsecured | 1 | 16 | 17 | 32 | 33

Link to this type

door_lock_mode() View Source
door_lock_mode() :: :secured | :unsecured | door_lock_mode_byte()

A type to represent the different door lock modes

  • :secured - an alias to 0xFF
  • :unsecured - an alias to 0x00
  • 0x00 - unsecured
  • 0x01 - unsecured with timeout
  • 0x10 - unsecured inside door handles
  • 0x11 - unsecured inside door handles with timeout
  • 0x20 - unsecured for outside door handles
  • 0x21 - unsecured for outside door handles with timeout
  • 0xFF - secured
Link to this type

door_lock_mode_byte() View Source
door_lock_mode_byte() :: 0 | 1 | 16 | 17 | 32 | 33 | 255

Link to this section Functions

Link to this function

encode_mode(door_lock_mode) View Source
encode_mode(door_lock_mode()) ::
  door_lock_mode_byte() | {:error, :invalid_arg, any()}