hass-template-climate icon indicating copy to clipboard operation
hass-template-climate copied to clipboard

preset_modes?

Open ptruman opened this issue 9 months ago • 1 comments

The problem

I've defined some but they are not showing?

  - platform: climate_template
    name: Studio Heater
    modes: [ "heat", "off" ]
    preset_modes: [ "activity", "comfort", "eco" ]
    min_temp: 0
    max_temp: 30
    precision: .1
    temp_step: .5
    # get current and target temp.
    current_temperature_template: "{{ state_attr('climate.studio_radiator', 'current_temperature') }}"
    target_temperature_template: "{{ state_attr('climate.studio_radiator', 'temperature') }}"
    # example action
    set_hvac_mode:
      - condition: state
        entity_id: input_boolean.studio_radiator_power
        state: "on"
    set_temperature:
      - service: input_number.set_value
        target:
          entity_id: climate.studio_radiator
        data:
           value: "{{ temperature }}"

What I get is this :

Image

What I'm expecting is something like:

Image

What am I invariably doing wrong?

What version of Template Climate has the issue?

1.0.1

What version of Home Assistant are you running?

2025.1.4

What type of installation are you running?

Home Assistant Core

Example YAML snippet


Anything in the logs that might be useful for us?


Additional information

No response

ptruman avatar Feb 06 '25 13:02 ptruman

You also need to define something for set_preset_mode.

DBestman avatar Feb 13 '25 02:02 DBestman