The component that i’m tryng to do is a set of let’s encrypt certificate creation and update services that (currently) use the DuckDNS provider.
For this purpose, the component is not for automations only.
Thus, i think the best choice is the automation module from the link that you shared.
I’ve tried a bit in this hours to find how to use the class/method to add a rule, but the automation module seem a bit complicated to use in a python script (mainly for the absence of docs or examples for this purpose).
Thus, my conclusion is to add/retrieve a rule to the automations.yaml from python. Do you know if there is a “standard” approach or module to read/write yaml file from home assistant?