Exclude entities for Google Home

Hello, i want to add the ability to exclude some entities, such as lights, switch and much more, how do I do?

#Google Home
google_assistant:
  project_id: home-assistant-xxxxx
  service_account: !include home-assistant-xxxxx-xxxxxxxxxxx.json
  report_state: true
  exposed_domains:
    - switch
    - light
    - cover
  exclude_entities:
    - switch.sonoff_1001175fae

Doing so gives me this error:

Invalid config for [google_assistant]: [exclude_entities] is an invalid option for [google_assistant]. Check: google_assistant->google_assistant->exclude_entities. (See /config/configuration.yaml, line 40).

Docs didn’t give an example, but below is what I would use based on them.

google_assistant:
  project_id: home-assistant-xxxxx
  service_account: !include home-assistant-xxxxx-xxxxxxxxxxx.json
  report_state: true
  exposed_domains:
    - switch
    - light
    - cover
  entity_config:
    switch.sonoff_1001175fae:
      expose: false
3 Likes

Thanks a lot, it worked!