Design Pattern: Working with Groups in Rules

This should work fine, as long as all of the members of Scene_Items are groups, although sceneItems is not a GroupItem but Iterable. You can’t create an Item in the rules DSL… you’d need scripted automation for that. The Jython helper libraries make this easier.

val sceneItems = Scene_Items.members.filter[GroupItem group | group.name.contains(itemNamePrefix + sceneRoomString)]

What errors are you getting? It is much better to describe what you would like to do, rather than ask for help on how to implement a particular solution. There may be easier ways to do what you are trying to accomplish. Take a look at #8.

For example, this may provide everything you’re looking to implement…