Grizzly.ZWave.CommandClasses.SwitchSupport (grizzly v8.8.0)

View Source

Support for Switch Binary and Switch Multilevel Command Classes

Summary

Functions

Decode a duration from a byte according to the Z-Wave specs

Encode a duration into a byte according to the Z-Wave specs

Types

duration()

@type duration() :: :default | 0..7620

Functions

duration_from_byte(byte)

@spec duration_from_byte(byte()) ::
  {:error, Grizzly.ZWave.DecodeError.t()} | {:ok, duration()}

Decode a duration from a byte according to the Z-Wave specs

duration_to_byte(seconds)

@spec duration_to_byte(duration()) :: byte()

Encode a duration into a byte according to the Z-Wave specs