Skip to content

Latest commit

 

History

History
88 lines (54 loc) · 1.91 KB

File metadata and controls

88 lines (54 loc) · 1.91 KB

Setup the config

Hints to modularize your config:

Simple

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

Advanced

only SINGLE entry per file!

Cannot use more then one entity in each file imported.

automation: !include_dir_list automation/presence/

Submodule unpack:

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

Single module call

Once one automation: imported, you cannot import another with the same key!

automation: !include_dir_merge_list automation/

Miltiple configs and entities

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/

Extra:

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