Current section

Files

Jump to
hap lib hap characteristics target_heater_cooler_state.ex
Raw

lib/hap/characteristics/target_heater_cooler_state.ex

defmodule HAP.Characteristics.TargetHeaterCoolerState do
@moduledoc """
Definition of the `public.hap.characteristic.heater-cooler.target` characteristic
Valid values:
0 Off
1 Heat (if current temperature is below the target temperature then turn on heating)
2 Cooling (if current temperature is above the target temperature then turn on cooling)
3 Auto (turn on heating or cooling to maintain temperature within the target temperatures)
"""
@behaviour HAP.CharacteristicDefinition
def type, do: "33"
def perms, do: ["pr", "pw", "ev"]
def format, do: "uint8"
def min_value, do: 0
def max_value, do: 3
def step_value, do: 1
end