OK, I still have a couple ideas left to implement but I wanted to open up a request for ideas to the community for ideas to implement as rule templates.
For those who are not on the latest milestones a Rule Template is the “skeleton” of a Rule that can be installed from the Marketplace. Then you the user can create one or more rules from that template. A Rule template will have zero of more parameters that can be set to customize the behavior of the rule.
For example, I’ve posted Threshold Alert. This Rule Template implements a rule that will call another rule when one or more Items exceed or fall below a threshold. When you create a rule from this template you can set the Group with all the Items to monitor, the maximum periodicity to reporting (e.g. don’t call the rule more than once every 8 hours) as well a a do not disturb period (e.g. so you don’t get alerts at night).
With this template, you can create one rule to monitor your temperature Items to run a rule you’ve written when one falls below a 60 deg F no more than once every five minutes and another one that calls a different rule you’ve written when a battery falls below 25% but nor more than once a day and never between 22:00 and 08:00.
Look through the other templates posted at Rule Templates - openHAB Community.
OK, now you know what a rule template is, how they are used, the sorts of things they can do, and what has already been implemented, what would you like to see implemented? What ideas do you have? If you want to write it I’ll help. If you don’t want to write it I or someone else might give it a try.
At this moment in time writing rule templates is a bit manual and somewhat of a pain but things are getting better. And as it does get better it would be nice to have a backlog of good ideas to start implementing and testing out the new goodness that is the Marketplace.