Venting automation based on temperature and possbile rain with velux and ecowitt sensor

Hello community,

I am stuck with my automation to open the window automatically when the temperature is greater outside than inside and it is not raining right know or with a high propability later. It worked fine for a while with the predictions but when I implemented the ecowitt sensor it stopped in the choose section. Can somebody give me a hint how to solve this issue.
(code is a bit messy because of some different approaches i tried but it worked before the sensor change)

alias: Lüften Speicher auf
description: ""
trigger:
  - platform: time_pattern
    seconds: /30
    enabled: false
  - platform: template
    value_template: >-
      {{ states('sensor.velux_sensor_temperature_sensor')|float >
      states('sensor.gw1100a_v2_2_3_outdoor_temperature')|float + 1 }}
condition:
  - "{{ now().month in [5, 6, 7, 8, 9] }}"
action:
  - choose:
      - conditions:
          - condition: numeric_state
            entity_id: sensor.velux_sensor_temperature_sensor
            below: sensor.gw1100a_v2_2_3_outdoor_temperature
        sequence:
          - delay: "00:15:00"
          - stop: ""
      - conditions:
          - condition: or
            conditions:
              - type: is_precipitation_intensity
                condition: device
                device_id: a7d77cbd8ded9c7728498fce45f2c346
                entity_id: sensor.gw1100a_v2_2_3_rain_rate
                domain: sensor
                above: 0
              - condition: state
                entity_id: sensor.openweathermap_forecast_precipitation_probability
                state: ">70"
              - condition: state
                entity_id: sensor.gw1100a_v2_2_3_rain_rate
                state: ">0"
        sequence:
          - service: notify.mobile_app_manu_handy
            data:
              message: >-
                Velux Fenster bleibt wegen Regen weiter geschlossen - {{ 
                now().strftime("%H:%M")}}- Temp Speicher {{
                states('sensor.velux_sensor_temperature_sensor', with_unit=True,
                rounded=True) }} > Draußen {{
                states('sensor.gw1100a_v2_2_3_outdoor_temperature',
                with_unit=True, rounded=True) }}
              title: Lüften - Speicher
          - service: notify.mobile_app_sarina_s21
            data:
              message: >-
                Velux Fenster bleibt wegen Regen weiter geschlossen -- {{ 
                now().strftime("%H:%M")}}- Temp Speicher {{
                states('sensor.velux_sensor_temperature_sensor', with_unit=True,
                rounded=True) }} > Draußen {{
                states('sensor.gw1100a_v2_2_3_outdoor_temperature',
                with_unit=True, rounded=True) }}
              title: Lüften - Speicher
          - delay: "00:15:00"
          - stop: ""
      - conditions:
          - condition: state
            entity_id: sensor.openweathermap_forecast_precipitation_probability
            attribute: attribution
            state: ">50"
          - condition: state
            entity_id: sensor.openweathermap_forecast_precipitation
            state: <1
          - type: is_precipitation_intensity
            condition: device
            device_id: a7d77cbd8ded9c7728498fce45f2c346
            entity_id: sensor.gw1100a_v2_2_3_rain_rate
            domain: sensor
            below: 0.1
            enabled: true
          - condition: state
            entity_id: sensor.gw1100a_v2_2_3_rain_rate
            state: "0"
        sequence:
          - device_id: f337c73c96feaac319fd4f52a3c88716
            domain: cover
            entity_id: cover.velux_window_roof_window
            type: set_position
            position: 20
          - service: notify.mobile_app_manu_handy
            data:
              message: >-
                Velux Fenster wurde wegen Regen nur teilweise geöffnet - {{ 
                now().strftime("%H:%M")}}- Temp Speicher {{
                states('sensor.velux_sensor_temperature_sensor', with_unit=True,
                rounded=True) }} > Draußen {{
                states('sensor.gw1100a_v2_2_3_outdoor_temperature',
                with_unit=True, rounded=True) }}
              title: Lüften - Speicher
          - service: notify.mobile_app_sarina_s21
            data:
              message: >-
                Velux Fenster wurde wegen Regen nur teilweise geöffnet - {{ 
                now().strftime("%H:%M")}}- Temp Speicher {{
                states('sensor.velux_sensor_temperature_sensor', with_unit=True,
                rounded=True) }} > Draußen {{
                states('sensor.gw1100a_v2_2_3_outdoor_temperature',
                with_unit=True, rounded=True) }}
              title: Lüften - Speicher
          - service: media_player.play_media
            target:
              entity_id: media_player.buro
            data:
              media_content_id: >-
                media-source://tts/google_translate?message=Temperature+info%3A+Window+in+the+attic+was+partially+opened
              media_content_type: provider
            metadata:
              title: "Temperature info: Window in the attic was partially opened"
              thumbnail: https://brands.home-assistant.io/_/google_translate/logo.png
              media_class: app
              children_media_class: null
              navigateIds:
                - {}
                - media_content_type: app
                  media_content_id: media-source://tts
                - media_content_type: provider
                  media_content_id: >-
                    media-source://tts/google_translate?message=Temperature+info%3A+Window+in+the+attic+was+partially+opened
      - conditions:
          - type: is_value
            condition: device
            device_id: 066738ba1727c7478061c7c95afadc50
            entity_id: sensor.openweathermap_forecast_precipitation_probability
            domain: sensor
            below: 50
          - type: is_precipitation_intensity
            condition: device
            device_id: a7d77cbd8ded9c7728498fce45f2c346
            entity_id: sensor.gw1100a_v2_2_3_rain_rate
            domain: sensor
            below: 0.1
            enabled: false
          - condition: state
            entity_id: sensor.gw1100a_v2_2_3_rain_rate
            state: <0
        sequence:
          - device_id: f337c73c96feaac319fd4f52a3c88716
            domain: cover
            entity_id: cover.velux_window_roof_window
            type: set_position
            position: 50
          - service: notify.mobile_app_manu_handy
            data:
              message: >-
                Velux Fenster wurde geöffnet - {{  now().strftime("%H:%M")}}-
                Temp Speicher {{
                states('sensor.velux_sensor_temperature_sensor', with_unit=True,
                rounded=True) }} > Draußen {{
                states('sensor.gw1100a_v2_2_3_outdoor_temperature',
                with_unit=True, rounded=True) }}
              title: Lüften - Speicher
          - service: notify.mobile_app_sarina_s21
            data:
              message: >-
                Velux Fenster wurde geöffnet - {{  now().strftime("%H:%M")}}-
                Temp Speicher {{
                states('sensor.velux_sensor_temperature_sensor', with_unit=True,
                rounded=True) }} > Draußen {{
                states('sensor.gw1100a_v2_2_3_outdoor_temperature',
                with_unit=True, rounded=True) }}
              title: Lüften - Speicher
          - service: media_player.play_media
            target:
              entity_id: media_player.buro
            data:
              media_content_id: >-
                media-source://tts/google_translate?message=Temperature+info%3A+Window+in+the+attic+was+opened
              media_content_type: provider
            metadata:
              title: "Temperature info: Window in the attic was opened"
              thumbnail: https://brands.home-assistant.io/_/google_translate/logo.png
              media_class: app
              children_media_class: null
              navigateIds:
                - {}
                - media_content_type: app
                  media_content_id: media-source://tts
                - media_content_type: provider
                  media_content_id: >-
                    media-source://tts/google_translate?message=Temperature+info%3A+Window+in+the+attic+was+opened
    enabled: true
  - repeat:
      until:
        - condition: numeric_state
          entity_id: sensor.velux_sensor_temperature_sensor
          below: sensor.gw1100a_v2_2_3_outdoor_temperature
      sequence:
        - delay:
            hours: 0
            minutes: 15
            seconds: 0
            milliseconds: 0

Thanks for your help and insight how to do it the right way

Did you find a solution? Looking for a solution only to open windows for 15 mins and then close them depending on westher parameters.