I am using AppDaemon for almost all of my automations. I have moved some of the simple ones to YAML automations instead.
I still have some simple ones that I would like to move to YAML, the logic is the same, but the entities and parameters might defer.
An example is a light automation where the dimming percentage might defer depending on entity. In AppDaemon that is pretty easy as there is one “app”, which is beeing fed by the apps.yaml defining entities and percentage.
I would like to avoid making 10 automations that is basically the same except for entities and brightness %. Is that somehow possible in YAML or am I better off by continuing having those automations in AppDaemon?
Blueprints should allow you to do this and there is a good tutorial to get you started …
For your light dimming example, the brightness could be defined when an automation is created from the blueprint or else you could define an input_number to make this available from the front end.
You most likely can use the single automation to do all this with a few variables. I replaced every appdaemon app (including my complicated ones) in yaml.