Templates organized in folders

Hi everyone,

I'm newbie to all of this and still learning. I've just started messing around with YAML, but I've run into a doubt I can't quite figure out.

I created a new template that adds some sensors, and I put it in config/templates/pronostico_tiempo.yaml.

Then, in my configuration.yaml, I added this:
template: !include templates/pronostico_tiempo.yaml

It works perfectly, but if I create a new one, I'd have to manually add it there again. Is there any way to automatically load all the template files inside that folder?

I've already tried using !include_dir_merge_named, but I couldn't get it to work.

Thanks a lot!

Cheers.

Try

template: !include_dir_merge_list template

1 Like

It works fine! Thank you!

Cheers!