Rollershutter and window contact

Hello, I am new at openhab.org and I try different things on an ubuntu system.

Now I have a Problem with a group of rollershutter.
I have 10 rollershutter and on my balkony I have a window contact.
When the Window is open, this rolershutter shut not go down.

Switch item=gShutter_updown mappings=[UP=Hoch, DOWN=Runter]
Contact Balcony_Window “Balkontür [%s]” (Balcony, gWindows)

rule "Shutter up/down"
when
    Item gShutter_updown received update
then
    gShutter.members.forEach[ item |
        item.sendCommand(gShutter_updown.state)
    ]
end

What can I do to skip this rollershutter on the balkony?

Try to filter the group:

rule "Shutter up/down"
when
    Item gShutter_updown received update
then
    gShutter.members.filter(s|
        if(Balcony_Window.state == OPEN) 
            s.name != "Balcony_Shutter"  // Balcony_Shutter is the name of the Shutter item?
        else 
            s.name == s.name   // maybe 1==1 would also fit
        ).forEach[ item |
            item.sendCommand(gShutter_updown.state)
    ]
end

Hi,

I add my comment here, as I have similar challenge.

I have also window contacts, but I have several contacts. Therefore I would like to have a mapping based on the name of the contact.

i.E.
If the door of the living room opens, the rollershutter should not move.

Rollershutter EG_wz_rs_tuer “Rollade Wohnzimer Tür” (gEG_wz,gEG_Rolladen_wz)
Contact EG_wz_fk_tuer “Fensterkontakt Wohnzimmertür” (gEG_wz)

The naming is always the same:
rs = Rolladenschalter
fk= Fensterkontakt

Any idea, how to realize it, as I my programming skills are really basic.

Thanks in advance.

Does noone have any idea how to realize it? I am really limited with my ideas actually.

Thanks
Dom

Take a look at this: