Climate Automation with knx thermostat: unable to set temperature (Solved)

Hi, I am quite new with Home automation.
I managed to configure the knx integration.
Here is an example of a device configuration in my knx_climates.yaml:

  - name: salle.de.bain.parents.clim
    temperature_address: "6/1/1"
    setpoint_shift_address: "5/4/1"
    setpoint_shift_state_address: "5/5/1"
    target_temperature_address: "5/2/1"
    target_temperature_state_address: "5/3/1"
    min_temp: 8.0
    max_temp: 25.0
    #on_off_state_address: "5/1/1"
    operation_mode_address: "5/6/1"
    operation_mode_state_address: "5/7/1"

The thermostat does displays correctly on the dashboard.

I also managed to set temperature through the Developer Tools:

When I try to execute a simple automation like this one:

- id: '1613375103669'
  alias: Test Chauffage
  description: ''
  trigger:
  - platform: time
    at: '10:30'
  condition: []
  action:
    service: climate.set_temperature
    entity_id: climate.salle_de_bain_parents_clim
    data: 
      temperature: 25
  mode: single

I am getting the following error:>

Test Chauffage: Error executing script. Invalid data for call_service at pos 1: must contain at least one of temperature, target_temp_high, target_temp_low.

I also tried different configurations:

- id: '1613375103669'
  alias: Test Chauffage
  description: ''
  trigger:
  - platform: time
    at: '10:30'
  condition: []
  action:
    service: climate.set_temperature
    entity_id: climate.salle_de_bain_parents_clim
    data_template: 
      temperature: 25
  mode: single
- id: '1613375103669'
  alias: Test Chauffage
  description: ''
  trigger:
  - platform: time
    at: '10:30'
  condition: []
  action:
    service: climate.set_temperature
    entity_id: climate.salle_de_bain_parents_clim
    data: 
      temperature: 25
      target_temp_high: 26
      target_temp_low: 20
      hvac_mode: heat
  mode: single
- id: '1613375103669'
  alias: Test Chauffage
  description: ''
  trigger:
  - platform: time
    at: '10:30'
  condition: []
  action:
    service: climate.set_temperature
    entity_id: climate.salle_de_bain_parents_clim
    data: {" temperature": "25", "target_temp_high": "26", "target_temp_low": "20", "hvac_mode": "heat"}
  mode: single

All these tests were unsuccessful and generated always the same error message.

A little bit help would be appreciated !

Denis

The image of the developer console shows a different entity than the one in automations. Did you check the entity from the automations in the developer console?

Hi,

Thank you for your comment but this is not the issue. You are right about the different identity but the problem is the same for both identities.

Regards

I found the solution.

Here is what I used:

      - service: climate.set_preset_mode
        data:
          preset_mode: sleep
          entity_id:
            - climate.salle_de_bain_parents_clim
      - service: climate.set_temperature
        data:
          temperature: 16
          entity_id:
            - climate.salle_de_bain_parents_clim
1 Like

Hi Cartache,
Can you share a screenshot and code?