[SOLVED] Dynamic group weird behaviour in rule

Given that Rules DSL will be deprecated and Scripted Automation will be the default for OH 3, the long run isn’t necessarily as long as you might think.

There are other submissions to the Helper Library that do something similar as well. See Helper Libraries for openHAB Scripted Automation — openHAB Helper Libraries documentation or [beta testers wanted!] Jython addon w/ helper libraries (requires OH 2.5.x) if you want to use Python to get started.