Use of data_template in the Hyundai/Kia integration

Hello Community,

I am using an integration to climate my Hyundai and I would like to set the temperature and other options like seat heating via my dashboard. Unfortunately I can’t find a way to set the values depending on the state of my helpers.

I would be happy, if someone could help me.

This is how the code works with fixed values:

- action: kia_uvo.start_climate
    data:
      duration: 5
      climate: true
      temperature: 21
      defrost: false
      heating: "3"
      device_id: 76acdc75f35333
      flseat: "6"

This for example is one of the versions I tried:

- action: kia_uvo.start_climate
    data_template:
      duration: 5
      climate: true
      temperature: {{ states('input_number.temperatur_sofort') | int}}
      defrost: false
      heating: "3"
      device_id: 76acdc75f35333
      flseat: "6"

Bus as soon as I save the file it changes to this:

- action: kia_uvo.start_climate
    data_template:
      duration: 5
      climate: true
      temperature:
        "[object Object]": null
      defrost: false
      heating: "3"
      device_id: 76acdc75f35333
      flseat: "6"

assuming that field will accept a template (not all do) then you need to wrap the brackets in quotes different than the inner ones:

temperature: "{{ states('input_number.temperatur_sofrt') | int}}"