You’re most welcome!
You may wish to consider tagging the post as ‘solution’ so others can find it more easily.
I used openHAB for about a half-year then looked into Home Assistant to see how it differs. I found it more to my liking (but both are equally competent products with helpful communities).
You’ll find Home Assistant’s automations, with their YAML structure and Jinja2 templating, to be quite different from openHAB’s Rules DSL. I encourage you to review the examples in the Cookbook to become more comfortable with this different style of creating automation logic. There are more complex examples found throughout this forum as well as in the Github repos shared by Home Assistant users.
If you find Home Assistant’s automations and scripts to be limiting, you have the option to use python_scripts or AppDaemon or Node-Red.