Search documentation of grizzly

# View Source Grizzly.ZWave.Notifications (grizzly v7.4.2)

# Summary

## Types

event()
status()
type()
zwave_alarm_status()

## Functions

decode_alarm_types(binary)
decode_event_params(zwave_type, zwave_event, params_binary)
decode_type_events(type, binary)
encode_alarm_types(alarm_types)
encode_event_params(zwave_type, zwave_event, event_params_list)
encode_type_events(type, events)
event_from_byte(arg1, arg2)

Get the event from the byte given the notification type

event_to_byte(atom1, atom2)

Get the event byte given the event type

status_from_byte(arg1)
status_to_byte(atom)
type_from_byte(arg1)

Get the type from the byte

type_to_byte(atom)

Get the byte for the event name

# Types

Link to this type

# event()

View Source

    @type event() :: atom()

Link to this type

# status()

View Source

    @type status() :: :enabled | :disabled

Link to this type

# type()

View Source

    @type type() :: atom()

Link to this type

# zwave_alarm_status()

View Source

    @type zwave_alarm_status() :: :deactivate | :activate

# Functions

Link to this function

# decode_alarm_types(binary)

View Source

    @spec decode_alarm_types(binary()) :: {:ok, [atom()]} | {:error, :invalid_type}

Link to this function

# decode_event_params(zwave_type, zwave_event, params_binary)

View Source
Link to this function

# decode_type_events(type, binary)

View Source

    @spec decode_type_events(atom(), binary()) ::
      {:error, :invalid_type} | {:error, :invalid_type_event} | {:ok, [atom()]}

Link to this function

# encode_alarm_types(alarm_types)

View Source

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

Link to this function

# encode_event_params(zwave_type, zwave_event, event_params_list)

View Source
Link to this function

# encode_type_events(type, events)

View Source

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

Link to this function

# event_from_byte(arg1, arg2)

View Source

    @spec event_from_byte(type(), byte()) ::
      {:ok, event()} | {:error, :invalid_event_byte}

Get the event from the byte given the notification type

Link to this function

# event_to_byte(atom1, atom2)

View Source

    @spec event_to_byte(type(), event()) :: byte()

Get the event byte given the event type

Link to this function

# status_from_byte(arg1)

View Source
Link to this function

# status_to_byte(atom)

View Source
Link to this function

# type_from_byte(arg1)

View Source

    @spec type_from_byte(byte()) :: {:ok, type()} | {:error, :invalid_type_byte}

Get the type from the byte

Link to this function

# type_to_byte(atom)

View Source

    @spec type_to_byte(type()) :: byte()

Get the byte for the event name