Clima automation

Hi can anyone help me understand why automation doesn’t work …

this is my automations script:

alias: CLIMA IN USCITA
  description: ''
  trigger:
  - entity_id: alarm_control_panel.allarme_casa
    from: disarmed
    platform: state
    to: armed_home
  condition: []
  action:
  - data:
      entity_id: climate.soggiorno
      hvac_mode: Heat
    service: climate.set_aux_heat

in the register see below:

Error while executing automation automation.clima_in_out. Invalid data for call_service at pos 1: extra keys not allowed @ data [‘hvac_mode’]

Please see the stick post that - amongst other things - explains how to correctly format your post. If you don’t do that then it is much harder to help you.

:thinking:

Did you try checking the documentation? There is no such option for that service call, as the error tells you.

I try this but not work:

  alias: CLIMA IN USCITA
  description: ''
  trigger:
  - entity_id: alarm_control_panel.allarme_casa
    from: disarmed
    platform: state
    to: armed_home
  condition: []
  action:
    - service: climate.set_aux_heat
      data:
        entity_id: climate.soggiorno
        aux_heat: true

What does not work mean?

Not start The ac

Does your AC system support aux_heat?

For example, the source of heat in my home is a gas furnace. There is no auxiliary (secondary) source of heat. The furnace is controlled by an entity called climate.thermostat. If I use the Services page to call the climate.set_aux_heat service, nothing happens (i.e. the furnace does not start). This is to be expected because my furnace doesn’t support the concept of a secondary (auxiliary) source of heat.

Where is this service menu?

Developer Tools > Services

@123 yes found, but I try but the heat funcion not work…

Then it probably means you can’t use aux_heat to activate your AC system’s heat.

Which platform is your climate integration using? The documentation for this platform may explain how to control it.

For my AC I have indtalled this script

If you check the Default Functionality section you’ll see it does not mention aux_heat. It says it can set four things:

  1. turn device on/off
  2. select fan mode
  3. select swing mode
  4. select target temperatures (min, max and target)

Ok, this is the problem.