# Describes the format for available climate services

set_aux_heat:
  name: Turn on/off auxiliary heater
  description: Turn auxiliary heater on/off for climate device.
  target:
    entity:
      domain: climate
  fields:
    aux_heat:
      name: Auxiliary heating
      description: New value of auxiliary heater.
      required: true
      selector:
        boolean:

set_preset_mode:
  name: Set preset mode
  description: Set preset mode for climate device.
  target:
    entity:
      domain: climate
  fields:
    preset_mode:
      name: Preset mode
      description: New value of preset mode.
      required: true
      example: "away"
      selector:
        text:

set_temperature:
  name: Set temperature
  description: Set target temperature of climate device.
  target:
    entity:
      domain: climate
  fields:
    temperature:
      name: Temperature
      description: New target temperature for HVAC.
      selector:
        number:
          min: 0
          max: 250
          step: 0.1
          mode: box
    target_temp_high:
      name: Target temperature high
      description: New target high temperature for HVAC.
      advanced: true
      selector:
        number:
          min: 0
          max: 250
          step: 0.1
          mode: box
    target_temp_low:
      name: Target temperature low
      description: New target low temperature for HVAC.
      advanced: true
      selector:
        number:
          min: 0
          max: 250
          step: 0.1
          mode: box
    hvac_mode:
      name: HVAC mode
      description: HVAC operation mode to set temperature to.
      selector:
        select:
          options:
            - label: "Off"
              value: "off"
            - label: "Auto"
              value: "auto"
            - label: "Cool"
              value: "cool"
            - label: "Dry"
              value: "dry"
            - label: "Fan Only"
              value: "fan_only"
            - label: "Heat/Cool"
              value: "heat_cool"
            - label: "Heat"
              value: "heat"

set_humidity:
  name: Set target humidity
  description: Set target humidity of climate device.
  target:
    entity:
      domain: climate
  fields:
    humidity:
      name: Humidity
      description: New target humidity for climate device.
      required: true
      selector:
        number:
          min: 30
          max: 99
          unit_of_measurement: "%"

set_fan_mode:
  name: Set fan mode
  description: Set fan operation for climate device.
  target:
    entity:
      domain: climate
  fields:
    fan_mode:
      name: Fan mode
      description: New value of fan mode.
      required: true
      example: "low"
      selector:
        text:

set_hvac_mode:
  name: Set HVAC mode
  description: Set HVAC operation mode for climate device.
  target:
    entity:
      domain: climate
  fields:
    hvac_mode:
      name: HVAC mode
      description: New value of operation mode.
      selector:
        select:
          options:
            - label: "Off"
              value: "off"
            - label: "Auto"
              value: "auto"
            - label: "Cool"
              value: "cool"
            - label: "Dry"
              value: "dry"
            - label: "Fan Only"
              value: "fan_only"
            - label: "Heat/Cool"
              value: "heat_cool"
            - label: "Heat"
              value: "heat"

set_swing_mode:
  name: Set swing mode
  description: Set swing operation for climate device.
  target:
    entity:
      domain: climate
  fields:
    swing_mode:
      name: Swing mode
      description: New value of swing mode.
      required: true
      example: "horizontal"
      selector:
        text:

turn_on:
  name: Turn on
  description: Turn climate device on.
  target:
    entity:
      domain: climate

turn_off:
  name: Turn off
  description: Turn climate device off.
  target:
    entity:
      domain: climate
