grizzly v0.8.4 Grizzly.CommandClass.SwitchBinary View Source

Link to this section Summary

Link to this section Types

Link to this type

switch_state() View Source
switch_state() :: :on | :off | :unknown

Link to this type

switch_state_byte() View Source
switch_state_byte() :: 0 | 255 | 254 | 1..99

Link to this section Functions

Link to this function

decode_switch_state(value) View Source
decode_switch_state(switch_state_byte()) :: switch_state() | 1..99

Link to this function

encode_switch_state(arg) View Source
encode_switch_state(switch_state()) ::
  {:ok, switch_state_byte()} | {:error, :invalid_arg, any()}