Use variable for item

Wrong approach, there is no way to substitute a name string for an OH Item in the rules language.

There is a way to select Items by name from a Group, which is one of the possible ways to re-use code

There are also lambda “functions” which allow passing of Items to reusable code

1 Like