View Source Grizzly.ZWave.CommandClasses.SensorBinary (grizzly v8.6.6)
Deprecated command class for triggered/not triggered sensors.
Summary
Functions
Decode a list of sensor types from a bitmap.
Parse the type value from a byte
Encode a list of sensor types as a bitmap.
Encode the type value for the sensor report
Types
Functions
@spec decode_sensor_types(binary()) :: {:ok, [{:sensor_types, [atom()]}]} | {:error, Grizzly.ZWave.DecodeError.t()}
Decode a list of sensor types from a bitmap.
Examples
iex> decode_sensor_types(<<0x40, 0x00>>)
{:ok, sensor_types: [:water]}
@spec decode_type(byte()) :: {:ok, sensor_type()} | {:error, Grizzly.ZWave.DecodeError.t()}
Parse the type value from a byte
Encode a list of sensor types as a bitmap.
Examples
iex> encode_sensor_types([:water])
<<0x40, 0x00>>
@spec encode_type(sensor_type()) :: byte()
Encode the type value for the sensor report