I’d like to create several scenes with sonos speakers. For all scenes it’s necessary to first ungroup / regroup all speakers. Since this procedure is always the same I wonder, if it’s possible to “outsource” this in a new rule.
Send a command to an item and use this item to trigger a rule.
This is a kind of workaround I an using for the missing sub routine functionality in the DSL.
There’s lambdas (see here) and scripts (write a rule content into a file, then use callScript(“filename”)).
Example with explanation of @Marty56’s solution: