#Hello a few weeks ago I started

1 messages · Page 1 of 1 (latest)

cyan swift
#

I'd suggest you don't edit configuration.yaml or automations.yaml, but instead use another file, eg

automation magic: !include my_automations.yaml
#

Keep in mind you'll also need to trigger a reload of the automations, and if you generate invalid YAML you'll break things 😉

tropic carbon
#

yhea u right thanks alot i will try to get user input and make an automation with the input and then write it to a file. But u know how i can manage to write the line code in the user his configuration.yaml file

tropic carbon
cyan swift
#

You just have to write out valid YAML

#

That's the easy bit

#

The hard bit is generating a valid, functioning, automation