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?
jocnnor
(Jim O'Connor)
February 7, 2020, 11:12pm
2
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/
jocnnor:
include_dir_merge_list
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?
AhmadK
(akasma74)
February 8, 2020, 3:47pm
4
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
AhmadK
(akasma74)
February 8, 2020, 6:46pm
6
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
MrBorg
(P. Borg)
May 18, 2020, 9:51am
9
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
MrBorg
(P. Borg)
May 18, 2020, 11:24am
11
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?
you can find below my configuration for automation
in configuration.yaml add include
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
petro
(Petro)
May 18, 2020, 4:34pm
13
Think you spelled bedroom wrong
2 Likes