With homeassistant you don't need yaml for 99% of automations. I'm sure OP posted the source code of the automation but used the graphical UI to make it.
You also have the possibility to use Node-Red for that.
You also have the possibility to use Node-Red for that.
This is just like when writing CI scripts for GitHub actions or Azure pipelines: the right amount of yaml (if it must be used at all) is to just invoke a program in some more expressive language than yaml.
I do use the (jinja) value templates in some places though.