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.
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