auto_api v0.1.0 AutoApi.DoorLocksState View Source

Door position possible values: :closed, :open Door lock possible values: :unlocked, :locked

Link to this section Summary

Functions

Callback implementation for AutoApi.State.base/0

Build state based on binary value

Parse state to bin iex> AutoApi.DoorLocksState.to_bin(%AutoApi.DoorLocksState{door: [%{door_location: :front_left, door_lock: :unlocked, door_position: :open}]}) <<0x01, 3::integer-16, 0x00, 0x01, 0x00>>

Link to this section Types

Link to this type t() View Source
t() :: %AutoApi.DoorLocksState{door: [any()]}

Link to this section Functions

Callback implementation for AutoApi.State.base/0.

Link to this function do_parse_bin_properties(id, data, state) View Source

Build state based on binary value

iex> AutoApi.DoorLocksState.from_bin(<<0x01, 3::integer-16, 0x00, 0x01, 0x00>>) %AutoApi.DoorLocksState{door: [%{door_location: :front_left, door_lock: :unlocked, door_position: :open}]}

Link to this function parse_bin_properties(d, state) View Source
Link to this function parse_bin_property(int, data) View Source
Link to this function parse_state_properties(state) View Source
Link to this function parse_state_property(atom, data) View Source
Link to this function parse_state_property_list(enum_values, atom, data) View Source

Parse state to bin iex> AutoApi.DoorLocksState.to_bin(%AutoApi.DoorLocksState{door: [%{door_location: :front_left, door_lock: :unlocked, door_position: :open}]}) <<0x01, 3::integer-16, 0x00, 0x01, 0x00>>