hass-template-climate
hass-template-climate copied to clipboard
preset_modes?
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 :
What I'm expecting is something like:
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
You also need to define something for set_preset_mode.