Google Assistant Configuration in a directory...?

Hello to everyone, it’s possible to have the configuration of Google Assistant like
!include_dir_merge_list
!include_dir_merge_named

??? instead in configuration.yaml?

Thanks

You should be able to use the following:

First create a file called google_assistant.yaml file in your config directory. In that file place you google assistant configuration. Using the example from the docs:

  project_id: YOUR_PROJECT_ID
  api_key: YOUR_API_KEY
  exposed_domains:
    - SWITCH
    - LIGHT
    - GROUP
  entity_config:
    switch.kitchen:
      name: CUSTOM_NAME_FOR_GOOGLE_ASSISTANT
      aliases:
        - BRIGHT_LIGHTS
        - ENTRY_LIGHTS
    light.living_room:
      expose: false
      room: LIVING_ROOM

Then in your configuration.yaml:

google_assistant: !include google_assistant.yaml

You don’t need to add it to any sub-directory except your main HA config directory. It’s just a single config file.

2 Likes

Great, thanks