Home Assistant Tip: Split automation.yaml into multiple files

I recently started adding more and more automation into my Home Assistant automation.yaml config file. One thing I’ve realized is that the file grows quickly and it get difficult to track your automation.

A quick and easy solution is to have multiple files, each containing a different automation YAML. I have a YAML file for my door automation, and another for my reminders.

In you configuration.yaml file change the automation attribute to :

automation: !include_dir_merge_list automation/

this will merge all the yaml files in the automation directory

Email Newsletter

Missing out on the latest Cupofdev.com developments? Enter your email below to receive future announcements direct to your inbox. An email confirmation will be sent before you will start receiving notifications - please check your spam folder if you don't receive this.