grizzly v0.6.3 Grizzly.CommandClass.ThermostatFanMode.Set View Source
Command module for the ThermostatFanMode command class SET command
Command Options:
:mode- The mode of the fan::auto_low,:low,:auto_high,:high,:auto_medium,:medium,:circulation,:humidity_circulation,:left_right,:up_down,:quiet:seq_number- The sequence number for the packet:retries- The number of times the command should be retried (default 2)
Link to this section Summary
Functions
Callback implementation for Grizzly.Command.encode/1.
Callback implementation for Grizzly.Command.handle_response/2.
Callback implementation for Grizzly.Command.init/1.
Link to this section Types
Link to this type
opt()
View Source
opt()
View Source
opt() ::
{:mode, Grizzly.CommandClass.ThermostatFanMode.thermostat_fan_mode()}
| {:seq_number, Grizzly.seq_number(), [{:retries, non_neg_integer()}]}
opt() ::
{:mode, Grizzly.CommandClass.ThermostatFanMode.thermostat_fan_mode()}
| {:seq_number, Grizzly.seq_number(), [{:retries, non_neg_integer()}]}
Link to this type
t()
View Source
t()
View Source
t() :: %Grizzly.CommandClass.ThermostatFanMode.Set{
mode: Grizzly.CommandClass.ThermostatFanMode.thermostat_fan_mode(),
retries: non_neg_integer(),
seq_number: Grizzly.seq_number()
}
t() :: %Grizzly.CommandClass.ThermostatFanMode.Set{
mode: Grizzly.CommandClass.ThermostatFanMode.thermostat_fan_mode(),
retries: non_neg_integer(),
seq_number: Grizzly.seq_number()
}
Link to this section Functions
Link to this function
encode(command)
View Source
encode(command)
View Source
encode(t()) :: {:ok, binary()} | {:error, Grizzly.Command.EncodeError.t()}
encode(t()) :: {:ok, binary()} | {:error, Grizzly.Command.EncodeError.t()}
Callback implementation for Grizzly.Command.encode/1.
Link to this function
handle_response(command, arg2)
View Source
handle_response(command, arg2)
View Source
handle_response(t(), Grizzly.Packet.t()) ::
{:continue, t()}
| {:done, {:error, :nack_response}}
| {:done, :ok}
| {:retry, t()}
handle_response(t(), Grizzly.Packet.t()) :: {:continue, t()} | {:done, {:error, :nack_response}} | {:done, :ok} | {:retry, t()}
Callback implementation for Grizzly.Command.handle_response/2.
Link to this function
init(args) View Source
Callback implementation for Grizzly.Command.init/1.