View Source Grizzly.ZWave.CommandClasses.SensorMultilevel (grizzly v8.6.6)

"SensorMultilevel" Command Class

The Multilevel Sensor Command Class is used to advertise numerical sensor readings.

Summary

Functions

all_sensor_types()

@spec all_sensor_types() :: [atom()]

decode_sensor_scale(sensor_type, index)

@spec decode_sensor_scale(atom(), byte()) :: atom()

decode_sensor_scales(sensor_type, scales)

@spec decode_sensor_scales(atom(), binary()) :: [atom()]

decode_sensor_type(byte)

@spec decode_sensor_type(byte()) :: {:ok, atom()} | :error

decode_sensor_types(binary)

@spec decode_sensor_types(binary()) :: [atom()]

encode_sensor_scale(sensor_type, scale)

@spec encode_sensor_scale(atom(), atom() | byte()) :: byte() | nil

encode_sensor_scales(sensor_type, scales)

@spec encode_sensor_scales(atom(), [atom()]) :: <<_::8>>

encode_sensor_type(sensor_type)

@spec encode_sensor_type(atom() | byte()) :: byte()

encode_sensor_types(sensor_types)

@spec encode_sensor_types([atom()]) :: binary()

sensor_type_scales(sensor_type)

@spec sensor_type_scales(atom()) :: [atom()]