Help with template to list entities in condition for automation

I’m trying to setup an automation to notify me if any windows are open if it starts to rain.
The automation itself works fine - but I’m unable to figure out how to extract which windows are actually open for the notification.

The trigger is just if it’s raining from the netatmo rain sensor - but then I list the conditions of the windows:

condition: or
conditions:
  - type: is_open
    condition: device
    device_id: 741f332c6ea2899a5e87515867
    entity_id: binary_sensor.fonstersensor_1
    domain: binary_sensor
  - type: is_open
    condition: device
    device_id: ce824e269db39ac5716f68e62e47
    entity_id: binary_sensor.fonstersensor_2
    domain: binary_sensor
  - type: is_open
    condition: device
    device_id: 3b9e2992acf18847a89aba9f
    entity_id: binary_sensor.fonstersensor_3
    domain: binary_sensor
  - type: is_open
    condition: device
    device_id: 17ac6e85f5e1aa132448dcc79
    entity_id: binary_sensor.fonstersensor_4
    domain: binary_sensor
  - type: is_open
    condition: device
    device_id: 3ba61d4c978af9af86e279dfab9
    entity_id: binary_sensor.fonstersensor_5
    domain: binary_sensor
  - type: is_open
    condition: device
    device_id: bf2a7344e87a39f5fe1a13cb07d5
    entity_id: binary_sensor.fonstersensor_6
    domain: binary_sensor

Now I’d like to list the friendly name in the notification message of the windows that actually are open if it rains.

Help would be much appreciated because I’m just getting confused and don’t manage any method I try.

Post the entire automation.

Maybe put all the window sensors into a group to act as a trigger then use something like this in your notification:

  message: "Triggered by {{ expand('binary_sensor.window_group') | selectattr('state','eq','on') | 
    map(attribute='name') | list | join(', ') }}, check for open window as it is raining."

Than you @Jonah1970 - that works great!