Need help on !include_dir_merge_named

I have a
automation: !include_dir_merge_named automation

entry in my configuration.yaml. and the automation directory below the configuration.yaml files looks like:

Lichtrute_ausschalten-switch.sitzecke.yaml
Motion Bad switch on media player.yaml
Motion stopped Bad switch off media player.yaml
NotifyWhenHome_ELKE.yaml
NotifyWhenHome_iphone6.yaml
NotifyWhenHome_Owntracks_needlight.yaml
NotifyWhenHome_Owntracks_needmusic.yaml
NotifyWhenleaveHome_elke.yaml
NotifyWhenleaveHome_iphone6.yaml
NotifyWhenleaveHome__Owntracks.yaml
Run Hombot while sleeping.yaml
Switch on Wohnzimmer Light when dark.yaml
Test Message all_devices are home.yaml
Test_Message_every

Each fail contains:

  • alias: ‘Alarm test at alarm time’
    trigger:

    The alias not always does reflect the file name.
    When I restart the config i do get a Invalid configuration
    The following components and platfoms could not be set up

automation

Can you help me here how I get all these individual yaml files into a working config`?

Hi,
Not sure if I can be of help as I am just starting off myself, but for me, my automation directory is called from a “!include_dir_merge_list” instead of “merge_name” I don’t really understand the difference between the two, but the list works for me.

Also, not to be picky, but this may be a good time to cleanup your file naming convention. As I look through them, some have underscores “" as separators, some have hyphens “-” some have spaces and some don’t and the first one has a period “.” in it’s name. This may trip up how the files get loaded. If it was me, I would pick the underscore "” and keep it consistent throughout.