Climate time circuit unreliable

Hi and a happy new year to everybody,

I am very new in Home assistant and really inexperienced.
According to the automation example for climate preset_mode in the documentation…https://www.home-assistant.io/integrations/climate/#automation-example

I am trying to automate my climate devices by time. Also I have bulit an extra binary sensor to turn the heat off at anytime the livingroom windows is open.

For some reason the automation is not reliable.
The ‘comfort’ part works quite well. But the ‘eco’ part doesn’t toggle climate to eco in the morning.
After opening and again clothing the window all devices switch to ‘comfort’.
So the ‘comfort’ mode seems to be some kind of dominant.
Would I have to turn the state of automation to ‘off’ somehow or what is the missing part…?

The gateway is a Fritz!Box and the devices are mixed Fritz!Dect301 and CometDect.
I have made sure to set off the integrated time circuit of the Fritz!Box.
As far as I know this should be enough…

I am thankful for any advice or idea to improve my first steps…

Best regards,
Torsten

# zeitschaltung temperatur wohnzimmer eco
- alias: 'wohnzimmer_eco' 
  trigger:
    platform: time
    at: "07:00:00"
  action:
    service: climate.set_preset_mode
    data:
      entity_id: climate.wohnzimmer, climate.schlafzimmer, climate.spielzimmer, climate.bad, climate.kueche
      preset_mode: 'eco'
# zeitschaltung temperatur wohnzimmer comfort
- alias: 'wohnzimmer_comfort'
  trigger: 
    platform: time
    at: "18:00:00"
  action:
    service: climate.set_preset_mode
    data:
      entity_id: climate.wohnzimmer, climate.schlafzimmer, climate.spielzimmer, climate.bad, climate.kueche
      preset_mode: 'comfort'
# fenster-offen-erkennung 
- alias: 'wohnzimmer switch heat_off'
  trigger:
    platform: state
    entity_id: binary_sensor.wohnzimmer_fenster_contact
  action:
    service: climate.set_hvac_mode
    data_template:
      entity_id: climate.wohnzimmer, climate.schlafzimmer, climate.spielzimmer, climate.bad, climate.kueche
      hvac_mode: >
        {% if trigger.to_state.state == "on" %}
          off
        {% elif trigger.to_state.state == "off" %}
          heat
        {% endif %}

I think, I found the mistake.
I replaced the list of entity_id’s like this:

action:
    service: climate.set_preset_mode
    data:
      entity_id:
        - climate.wohnzimmer
        - climate.schlafzimmer
        - climate.spielzimmer
        - climate.bad
        - climate.kueche
      preset_mode: 'eco' 

works stable now.

…Which I thought.
But the main mistake was my misunderstanding of different hvac_modes.
Setting back to ‘heat’ after clothing the windows again will automatically heat to preset_mode: comfort.
So everything is clear. A proper solution will be quite complicated, but has been solved already in a different topic…
I can’t comprehend the solution yet but can help myself with a work around…