Yeah, but for such case I have different concept, discussed in Intelligent Thermostat as cloud service
If you have a rule, and it’s not needs to be real-time, but you want to have it completely reusable even on different hardware platforms - then the best solution is to have it as a cloud service. E.g. the rule is running on server, to which you connect with OH over internet for example with MQTT. There you can have one, ten, hundreds of instances doing the same stuff for multiple users, like opening and closing shutters on sun brightness/light level, or controlling your heating based on temperature and schedule. You just need to provide your topic names and couple of parameters and you’re done.