Input slider temperature sync with thermostat comes in a loop when change more steps at once

Hi,

I created a input slider and I have an thermotat.

When changing one step, it works. Only doing a couple steps at once, it continues in a loop, both automation triggers each other. Any idea how I can solve this

these are my automations/scripts.

automations

alias: zoldersetpoint
description: ""
trigger:
  - platform: state
    entity_id:
      - input_number.house_temperature_setpoint
condition: []
action:
  - action: script.zoldersetpoint_climate
    metadata: {}
    data: {}
mode: single
alias: Zoldersetpoint2
description: ""
trigger:
  - platform: state
    entity_id:
      - climate.radiator_zolder
    attribute: temperature
condition: []
action:
  - action: script.zoldersetpoint
    metadata: {}
    data: {}
mode: single

and the 2 scripts


alias: zoldersetpoint
sequence:
  - data:
      value: "{{ state_attr('climate.radiator_zolder', 'temperature') }}"
    target:
      entity_id: input_number.house_temperature_setpoint
    action: input_number.set_value
mode: single
description: ""
alias: zoldersetpoint_climate
sequence:
  - data:
      temperature: "{{ states('input_number.house_temperature_setpoint') }}"
    target:
      entity_id: climate.radiator_zolder
    action: climate.set_temperature
mode: single
description: ""