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.
- Drop in replacement for Expire Binding by rkoshak · Pull Request #259 · openhab-scripters/openhab-helper-libraries · GitHub shows deleting and recreating a Rule. It uses dynamically generated Rule triggers based on Item metadata.
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.