Strange error in the script

I’m trying to set my thermostat in automatic mode, but HA gives me an error that I can’t understand:

Stopped because an error was encountered, must contain at least one of temperature, target_temp_high, target_temp_low

This is my script:

caldaia_auto:
  sequence:
  - service: climate.set_temperature
    data:
      hvac_mode: 'auto'
      entity_id: 
        - climate.termostato

and this is my thermostat:

hvac_modes:
  - auto
  - heat
  - 'off'
min_temp: 7
max_temp: 30
target_temp_step: 0.5
preset_modes:
  - away
  - boost
  - Frost Guard
  - Schedule
current_temperature: 19.4
temperature: 18
hvac_action: idle
preset_mode: Schedule
attribution: Data provided by Netatmo
selected_schedule: Base
friendly_name: Termostato
supported_features: 17

I also tried to change the structure by “mixing” the lines

caldaia_auto:
  sequence:
  - service: climate.set_temperature
    entity_id: climate.termostato
    data:
      hvac_mode: 'auto'

but without success: the error is always the same.
Can you help me? Thank you

1 Like
caldaia_auto:
  sequence:
  - service: climate.set_temperature
    target: 
      entity_id: climate.termostato
    data:
      hvac_mode: 'auto'

Nothing to do, HA report the same error .

Solved. This is enough:

service: climate.set_hvac_mode

instead of

service: climate.set_temperature.

@tom_l , thanks anyway .

1 Like