# `Grizzly.ZWave.CommandClasses.ThermostatMode`
[🔗](https://github.com/smartrent/grizzly/blob/v9.1.4/lib/grizzly/zwave/command_classes/thermostat_mode.ex#L1)

"ThermostatMode" Command Class

The Thermostat Mode Command Class is used to control which mode a thermostat operates.

# `mode`

```elixir
@type mode() ::
  :off
  | :heat
  | :cool
  | :auto
  | :auxiliary
  | :resume_on
  | :fan
  | :furnace
  | :dry
  | :moist
  | :auto_changeover
  | :energy_heat
  | :energy_cool
  | :away
  | :full_power
  | :manufacturer_specific
```

# `decode_mode`

```elixir
@spec decode_mode(byte()) :: {:ok, mode()} | {:error, Grizzly.ZWave.DecodeError.t()}
```

# `encode_mode`

```elixir
@spec encode_mode(mode()) :: byte()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
