[SOLVED] Rollershutter group & rule

Sleeps of 100 msec are not that much of a problem so just put the sleep 100 and close both in the forEach loop. See Design Pattern: Associated Items for deails on how the names are used.

rollershutter.members.filter[ rs | rs.state != 100 ].forEach[ rs, i | 
    createTimer(now.plusMillis(1000*i), [ | 
        rs.sendCommand(0)
        Thread::sleep(100)
        sendCommand(rs.name.replace("Lamelle", "Jalousie"), "0")
    ])
]

Only put the Lamelle Items into the Group.