Grizzly.Events (grizzly v8.12.0)

View Source

Pubsub registry for Grizzly events other than Z-Wave commands from devices.

Events

Ready

This event is emitted when Z/IP Gateway has started and Grizzly is ready to process commands.

OTW Firmware Update

This event is emitted when updating the firmware on the Z-Wave module. The payload indicates the status. See Grizzly.ZWaveFirmware.update_status/0.

Serial API Status

This event is emitted when the serial API appears to be unresponsive (or recovers from this state) based on Z/IP Gateway's log output.

Summary

Functions

Subscribe to one or more Grizzly events.

Unsubscribe from one or more Grizzly events.

Types

event()

@type event() :: :ready | :otw_firmware_update | :serial_api_status

Functions

child_spec(_)

@spec child_spec(any()) :: Supervisor.child_spec()

subscribe(event_or_events)

@spec subscribe(event() | [event()]) :: :ok

Subscribe to one or more Grizzly events.

unsubscribe(event_or_events)

@spec unsubscribe(event() | [event()]) :: :ok

Unsubscribe from one or more Grizzly events.