Climate + motor valve

I’m trying to make Climate controller control a “stupid” motor valve.
My plan was for the controller to check the temperature, if temp was low run valve motor for 500ms wait 30s and check again.
My problem is that it only does it once when I activate it. Apparently it believes it is still heating at the next check. How can I tell it that it is actually idle?
I expect that I should call the idle_action. But I cant figure out what the syntax is.
Thanks in advance

Please post you yaml :slight_smile:

climate:
  - platform: thermostat
    visual:
      min_temperature: 1
      max_temperature: 40
      temperature_step: 0.1
    name: "FJV Controller"
    sensor: fjv_retur
    min_cooling_off_time: 30s
    min_cooling_run_time: 30s
    min_heating_off_time: 30s
    min_heating_run_time: 30s
    min_idle_time: 10s
    cool_action:
    - switch.turn_on: heat_valve_dec
    heat_action:
    - switch.turn_on: heat_valve_inc
    idle_action:
    - switch.turn_off: heat_valve_dec
    - switch.turn_off: heat_valve_inc
    default_preset: Home
    preset:
    - name: Home
      default_target_temperature_low: 30 °C
      default_target_temperature_high: 32 °C