Automation old configuration

Hello everybody

I have try to divide automaion in several file with automation old configuration and merge_dir_merge_list but he seem no automation in these file are load in home assistant and i have no error in log maybe this option is depreciated now?

merge_dir_merge_list isn’t a valid one. You probably meant “include_dir_merge_list”

Automations are a list, so

automations: !include_dir_merge_list automation_folder_name/

yes is that I have put

automation old: !include_dir_merge_list automations
automation: !include automations.yaml

but if I put
automations: !include_dir_merge_list automation_folder_name/

automation UI will not work anymore?

should be

automation: !include_dir_merge_list automations/

and you probably need to move your automations.yaml into that folder, too.

Hi all I have found my mistake I put in yaml fil extention ".yml’ and the include must only import “.yaml” file.
now this cconfig work great

automation old: !include_dir_merge_list automations
automation: !include automations.yaml

for information you need to keep automations.yaml in root configuration because ui write automation by default to this path
thanks for your help

but that’s exactly what you posted here saying it works… confusing!

p.s I know about automations.yaml at root level, was unsure about your intentions though…

Yes it s work now because i have change automation file extemantion from .yml to .yaml

Oh, cool! Easy fix :wink:

Oh I am still a little confused. How do a get new automation UI and old YAML automation folder work side-by-side. I tried setting up this:


But this morning my home was cold - no automations (old ones) had been activated. How can I keep my old automation YAML files being unchanged and then only use automation.yaml in root for new UI automations. What do the documentation actually say in this part - what and where should I put this line:

After automation old include configurations you need to have a folder name automations ans put .yaml with tour old automation inside

PS you don t need in this case to but automation old: in your automation file

Well that I already have - but I found a misspelling in the include reference “automations vs. automation”.

But is this enough ? Or should I also include this part anywhere and Where then?

image

you can find below my configuration for automation
Capture d’écran du 2020-05-18 18-27-38
in configuration.yaml add include
Capture d’écran du 2020-05-18 18-28-16
I have a folder name automations who contain all my automation


and this is an exmaple of automation file
as you can see you don’t need to put
- automation old:
at the begining of automation

1 Like

Think you spelled bedroom wrong

2 Likes