is it possible to start an automation form within a custom component?
I would like to make a custom switch that will start eg automation “start all lights” when the turn_on() is triggered. This way I hope to put the logic of the component outside the python component, creating freedom and platform independency.
yeah, that is it KISS …
I was so focused on a solution that the configuration.yaml determines what automation to start that i lost sight on this, the other way around.
Python scripts are part of HASS. I would argue they are more powerful than automations when it comes to editing them as you can make edits and rerun the script without the need/hassle of restarting HASS and hoping there are no problems.