Automation not retriggered when condition changed

I have automated my greenhouse(windows, watering, rain sensor, … ) but I’m having troubles with my automation. Below I have ‘Open_Window_Serre_2’ to execute a script when the temperature reaches above a specified level. I have a second automation ‘Close_Window_Serre_2’ when the temperature is below a value execute script or when it’s raining (binary_sensor) execute script. But know when the binary_sensor causes the ‘Close_Window_Serre_2’ to trigger, the ‘Open_Window_Serre_2’ isn’t retriggerd when the binary sensor is set to false. How could it fix this?

- id: Open_Window_Serre_2
   alias: "Open Window Serre 2"
   trigger:
     - platform: numeric_state
       entity_id: sensor.serre_temperature
       above: 20
     - platform: numeric_state
       entity_id: sensor.serre_humidity
       above: 65
   condition:
     condition: and
     conditions:
     - condition: state
       entity_id: cover.greenhouse_window_2
       state: "closed"
     - condition: state
       entity_id: binary_sensor.rain_state
       state: "off"
   action:
     - service: script.turn_on
       entity_id: script.open_greenhouse_window2

- id: Close_Window_Serre_2
   alias: "Close Window Serre 2"
   trigger:
     - platform: numeric_state
       entity_id: sensor.serre_temperature
       below: 19
     - platform: state
       entity_id: binary_sensor.rain_state
       from: "off"
       to: "on"
   condition:
     condition: and
     conditions:
     - condition: state
       entity_id: cover.greenhouse_window_2
       state: "open"
   action:
     - service: script.turn_on
       entity_id: script.close_greenhouse_window2

you don’t have the binary sensor listed in your triggers for automation Open_Window_Serre_2
A condition is not a trigger, it’s just something to check once a trigger has fired up

Is it possible then to combine them, what I mean is that ether temperature and rain_state are valid or that humidity and rain_state are valid. Or is it better to them a timed trigger every 5 minutes check if the conditions are met?

 - platform: numeric_state
       entity_id: sensor.serre_temperature
       above: 20
 - platform: numeric_state
       entity_id: sensor.serre_humidity
       above: 65
  -platform: state
       entity_id: binary_sensor.rain_state
       state: "off"

something like that?

- id: Open_Window_Serre_2
   alias: "Open Window Serre 2"
   trigger:
     - platform: numeric_state
       entity_id: sensor.serre_temperature
     - platform: numeric_state
       entity_id: sensor.serre_humidity
     - platform: numeric_state
       entity_id: sensor.rain_state
   condition:
     condition: or
     conditions:
     - condition: template
       value_template: '{{ states.cover.greenhouse_window_2.state == "closed" and states.sensor.serre_temperature.state > 20 and states.binary_sensor.rain_state.state == "off" }}'
     - condition: template
       value_template: '{{ states.cover.greenhouse_window_2.state == "closed" and states.sensor.serre_humidity.state > 65 and states.binary_sensor.rain_state.state == "off" }}'
   action:
     - service: script.turn_on
       entity_id: script.open_greenhouse_window2

Yes that the way I have to change it …

Changed it like this:

 trigger:
     - platform: numeric_state
       entity_id: sensor.serre_temperature
       above: 20
     - platform: numeric_state
       entity_id: sensor.serre_humidity
       above: 65
     - platform: state
       entity_id: sensor.rain_state
   condition:
     condition: or
     conditions:
     - condition: template
       value_template: '{{ states.cover.greenhouse_window_2.state == "closed" and states.sensor.serre_temperature.state | float > 20 and states.binary_sensor.rain_state.state == "off" }}'
     - condition: template
       value_template: '{{ states.cover.greenhouse_window_2.state == "closed" and states.sensor.serre_humidity.state | float > 65 and states.binary_sensor.rain_state.state == "off" }}'