Welcome to my almost smart home. This is still a work in progress and probably will be forever.
Home Assistant is the home automation tool of choice.
To run automations I like using Node-Red
I find visually seeing how the flow runs easier to understand.