Tuya ZigBee Radiator Actuator set preset

I’m trying to give the presets a fixed value on this actuator cause sometimes the preset will change without doing something and then the radiator is heating while nobody is in that room.
Read several foras and find a working script (they said) but somehow the scrip that I use will not work. I am not a programmer so I hope somebody can help.
I go to the zigbee hoem automation.
The I go to the radiator actuator and there and made a new automation.
I put the script here and when I save the script I recieve the following error:
Message malformed: extra keys not allowed @ data[‘input_select’]

I searched for this problem but can’t find a solution

This is the script that I use:

type or paste code here
```input_select:
  thermostat_preset:
    name: Thermostat Preset
    options:
      - 'none'
      - 'away'
      - 'Schedule'
      - 'comfort'
      - 'eco'
      - 'boost'
      - 'Complex'
    initial: away
    icon: mdi:calendar-clock

automation:
  - alias: Set Thermostat Temperature
    trigger:
      platform: state
      entity_id: input_select.thermostat_preset
    action:
      - service: climate.set_temperature
        data_template:
          entity_id: climate.ddfxxxxxxxxxxxxxxxxxxxxxxxx
          temperature: >
            {% if is_state('input_select.thermostat_preset', 'none') %}
              15
            {% elif is_state('input_select.thermostat_preset', 'away') %}
              15
            {% elif is_state('input_select.thermostat_preset', 'Schedule') %}
              15
            {% elif is_state('input_select.thermostat_preset', 'comfort') %}
              22
            {% elif is_state('input_select.thermostat_preset', 'eco') %}
              15
            {% elif is_state('input_select.thermostat_preset', 'boost') %}
              15
            {% elif is_state('input_select.thermostat_preset', 'Complex') %}
              15
            {% endif %}