Hints to modularize your config:
- https://www.home-assistant.io/docs/configuration/splitting_configuration/
- https://community.home-assistant.io/t/where-is-config-information-for-utility-meter-stored/433577/2
One yaml for each entity type: /root/homeassistant/configuration.yaml
Put sub-configs at the same level dir.
# REST
rest_command: !include rest.yaml
# Official CMD line:
command_line: !include command_line.yaml
# SSH Notification sound at RPi5:
# shell_command: https://www.home-assistant.io/integrations/shell_command
shell_command: !include shell_command.yaml
Cannot use more then one entity in each file imported.
automation: !include_dir_list automation/presence/
Will 'unpack' a few levels deep into config hierarchy.
alexa:
intents: !include_dir_named alexa/
OR just import files as whole:
homeassistant:
packages: !include_dir_named packages
Once one automation:
imported, you cannot import another with the same key!
automation: !include_dir_merge_list automation/
One key for all type of entitites, but can include miltiple files of this entity with multiple entities in each file.
group: !include_dir_merge_named group/
Keep manual config and UI both.
# My own handmade automations
automation manual: !include_dir_merge_list automations/
# Automations I create in the UI
automation ui: !include automations.yaml