grizzly v0.4.2 Grizzly.CommandClass.ThermostatMode.Set View Source

Command module for working with ThermostatMode command class SET command

Command Options:

  • :mode - The mode of the thermostat: :off, :heat, :cool, :auto, or byte
  • :seq_number - The sequence number of the Z/IP Packet
  • :retries - The number of times to try to send the command (default 2)

Link to this section Summary

Functions

Callback implementation for Grizzly.Command.encode/1.

Callback implementation for Grizzly.Command.init/1.

Link to this section Types

Link to this type

t() View Source
t() :: %Grizzly.CommandClass.ThermostatMode.Set{
  mode: Grizzly.CommandClass.ThermostatMode.mode(),
  retries: non_neg_integer(),
  seq_number: Grizzly.seq_number()
}

Link to this section Functions

Callback implementation for Grizzly.Command.encode/1.

Link to this function

handle_response(command, arg2) View Source
handle_response(t(), Grizzly.Packet.t()) ::
  {:continue, t()} | {:done, {:error, :nack_response}} | {:done, :ok}

Callback implementation for Grizzly.Command.handle_response/2.

Link to this function

init(opts) View Source
init([opt()]) :: {:ok, t()}

Callback implementation for Grizzly.Command.init/1.