Until you can provide the raw file, it’s going to be really hard for us to help you. If you’re going to paste it here, use the code format button (</>), or paste it on hastebin or similar.
Have you actually tried the code in automations.yaml as the lint checker is complaining about the alias line, which it shouldn’t do unless you have a tab or something in there?
It’s really hard to tell with a screenshot and without the actual code. Just based on the screenshot, you appear to be missing automation: before line 1 and from service: light.turn_on to the end, you’re missing a space. Try this…
I’ll see if that changes. Another thougt - could it be that the version of HA demands me to do the autmations from the web and that the automation needs an id-number?
It got a little confusing a few versions ago. I keep two separate files so I don’t have the editor messing up my manual automations.
Create 2 files in the same directory as your configuration.yaml, (automations.yaml and automation_old.yaml) and then In your configuration.yaml file type this:
This way you can have both the editor and the manual. For the automations.yaml file, each one will need to start with an ID as you mentioned like this:
- id: ‘unique id here’
Alias: ‘unique alias name’
Maybe just add one so there’s something already populated in each file. Also, remember to indent 2 spaces at the start of each file.
I am currently using a separate folder with individual (manually created) automation’s and using the automation: !include_dir_automations
setup.
Can this still be used in a similar way so I can keep that directory of automation’s but then have a file created by the editor?
It’ll error if you use automation_old: because there’s no such component, and there’s no action include_dir_automations or include_dir_automations_old (see here for what is available).