Using thing names variables to trigger other things with the same name

See Design Pattern: Associated Items for a generic approach to writing rules that construct the names of Items needed instead of hard coding them. This covers several languages (@jimtng, if you want to add any jRuby examples to the design pattern posts I’m up for that, the only reason I’ve not done so is I don’t know jRuby well enough to write them myself yet).

The example @jimtng shows is one way to implement that design pattern but it might help to read more about the approach and see it in other languages too in order to understand how it works.

Once you get the rule written correctly, it will run when any member of Masters changes from ON to OFF or OFF to ON. You don’t run it manually. The vast majority of the time it will show as idle. OH rules are event driven. X happens so do Y.