grizzly v0.8.6 Grizzly.CommandClass.ThermostatSetback.Set View Source
Command module to work with the ThermostatSetback command class SET command
Command Options:
:value
- What the value of the set-point should be:type
- The setback type being targeted::no_override
,:temporary_override
or:permanent_override
:state
-:frost_protection
,:energy_saving_mode
or an integer between -128 and 120 (tenth of degrees):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.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() ::
{:type, Grizzly.CommandClass.ThermostatSetback.setback_type()}
| {:state, Grizzly.CommandClass.ThermostatSetback.setback_state()}
| {:seq_number, Grizzly.seq_number()}
| {:retries, non_neg_integer()}
opt() :: {:type, Grizzly.CommandClass.ThermostatSetback.setback_type()} | {:state, Grizzly.CommandClass.ThermostatSetback.setback_state()} | {:seq_number, Grizzly.seq_number()} | {:retries, non_neg_integer()}
Link to this type
t()
View Source
t()
View Source
t() :: %Grizzly.CommandClass.ThermostatSetback.Set{
retries: non_neg_integer(),
seq_number: Grizzly.seq_number(),
state: Grizzly.CommandClass.ThermostatSetback.setback_state(),
type: Grizzly.CommandClass.ThermostatSetback.setback_type()
}
t() :: %Grizzly.CommandClass.ThermostatSetback.Set{ retries: non_neg_integer(), seq_number: Grizzly.seq_number(), state: Grizzly.CommandClass.ThermostatSetback.setback_state(), type: Grizzly.CommandClass.ThermostatSetback.setback_type() }
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(opts) View Source
Callback implementation for Grizzly.Command.init/1
.