View Source Grizzly.ZWave.CommandClasses.SensorBinary (grizzly v6.1.0)

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

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

Link to this section Functions

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

Parse the type value from a byte

@spec encode_type(sensor_type()) :: byte()

Encode the type value for the sensor report