"default_config:" & automation integration

“default_config:” is in my configuration.yaml file
According to Default Config that should be enough for automations

But that’s not true. Anyway I need to add the following line
automation: !include automations.yaml

Am I doing something wrong?
Thank you

This libe is only needed if you want to use automations from the UI or if you want to split automations in a separate file.

You could also have an automation directly in configuration.yaml, automation are a built-in integration, you don’t need to install anything or add some integration to use it.

You only need to ‘add’ that if you deleted it in the first place. A brand new installation of homeassistant already has that line in configuration.yaml as standard. The standard being…

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

As per…

1 Like

Thanks for the clarification.
My aim is to have a configuration.yaml as much clean as possible.
So I thought that default_config let me avoid using automation line. The same as I can avoid e.g. input_bolean line.

May I ask, I have 2 entries in my configuration.yaml

  • default_config:
  • config:

May I know do I need both of them? Can I remove “config:”?

You can remove “config:” as it is already included inside “default_config:”

1 Like