As long as you're exploring options/approaches, one tool you could take a look as another option for your automations is Event Engine. It's a "point and click" app that allows you to create automations with a wide range of complexity, from very simple to quite complex, by selecting devices, options, and settings in the app. Covers the range from Basic Rules/Simple Automations up to Rule-machine level complexity.
Event Engine - This is not available in HPM, it's installed from Bundle Manager, next link below:
Bundle Manager: Event Engine is installed from the Bundle Manager app, below. The Bundle Manager is available in HPM: