Grizzly.ZWave.CommandClasses.SensorBinary (grizzly v0.22.2) View Source

Deprecated command class for triggered/not triggered sensors.

Link to this section Summary

Functions

Parse the type value from a byte

Encode the type value for the sensor report

Link to this section Types

Specs

sensor_type() ::
  :general_purpose
  | :smoke
  | :co
  | :co2
  | :heat
  | :water
  | :freeze
  | :tamper
  | :aux
  | :door_window
  | :tilt
  | :motion
  | :glass_break

Link to this section Functions

Specs

decode_type(byte()) ::
  {:ok, sensor_type()} | {:error, Grizzly.ZWave.DecodeError.t()}

Parse the type value from a byte

Specs

encode_type(sensor_type()) :: byte()

Encode the type value for the sensor report