Exclude entities from Google Assistant/Home

Found a few other threads that remain unanswered, so I need to ask.

I can’t for the life of me get any exclusions to apply to google assistant.

I followed this guide and it works up until the point of using exposed_domains, expose_by_default and entity_config. Nothing has an effect on what shows up in GA. I get all my devices, which is a problem because it creates addition entries for my chromecasts and speakers which are already in GA.

I have tried “sync my devices”, reconnecting my account, removing and connecting as well. I get all devices every time. Here is my current config, for testing I just want 1 device to show.

project_id: *********************
service_account:
  private_key: *********************************
  client_email: *********************************
  report_state: true
  expose_by_default: false
  entity_config:
    switch.my_bedroom:
      name: My Light
      room: My Room
      expose: true

has anyone else has any success in excluding entities from Google Assistant?

I think there is an issue with your indentations. Please try like this

  expose_by_default: false
  entity_config:
     switch.bedroom_light:
      expose: true  
      name: Bedroom Light

I updated the indentation. no effect, tried sync, and reconnect, remove and connect. So then I tried this just to see if nothing would be added,

  report_state: true
  expose_by_default: false

Still adds all devices

So after changing this and rebooting HA server, you have deleted the HA account from google home app and again added it. Check if you can control any other device than what you have exposed from HA.

Yes, I can still control all the devices, including the one exposed in the config

I just removed all the integrations I didn’t want link with google from HA, then performed a “sync my devices” and it removed everything I wanted.

Not an elegant solution but it’ll do. Now to add everything back into HA.

So something in the config is not working, I found many similar bugs from 2018/19 but nothing recently. Has anything changed recently? can anyone else exclude entities from Google Assistant?

Ok found the problem, it was indentation higher up in the config.

project_id: *****
service_account:
  private_key: ******
  client_email: ******
report_state: true
expose_by_default: false
entity_config:
  switch.my_bedroom:
    name: My Light
    room: My Room
    expose: true

Think I need to read up on yaml indentation again

1 Like

I am also having issues with excluding devices. I’m trying to exclude a single device (to start with) but it doesn’t work. I’ve restarted Home Assistant, synced devices using the entity button (for Google Assistant) and told Google Assistant to sync my devices. It’s still there. What am I missing?

google_assistant:
  project_id: *****
  service_account: !include SERVICE_ACCOUNT.JSON
  report_state: true
  exposed_domains:
    - switch
  entity_config:
    switch.uttag_tjanstefordelare:
      expose: false

Edit: I have also tried removing the HA link to Google and re-added it. The switch is still there.

I am having the same issue. Were you able to resolve?

I gave up back then because I had other issues I had to take care of before getting Google Assistant to work. But I gave it another go just a couple of weeks or so ago.

This time I only wanted to expose my temperature sensors so I can ask Google Assistant what the temp is in the living room etc. I also have a single light exposed by Home Assistant.

I don’t know if this helps.

# Google Assistant integration
google_assistant:
  project_id: ga-home-assistant-16704
  service_account: !include SERVICE_ACCOUNT.json
  report_state: true
  expose_by_default: false
  entity_config:
    sensor.termometer_kok_temperature:
      name: Köket
      room: Köket
    sensor.termometer_garage_temperature:
      name: Garaget
      room: Garaget
    sensor.termometer_sovrum_temperature:
      name: Sovrummet
      room: Sovrummet
    sensor.termometer_utomhus_temperature:
      name: Utomhus
      aliases: Balkongen
      room: Utomhus
    sensor.termometer_vardagsrum_temperature:
      name: Vardagsrummet
      room: Vardagsrummet
    sensor.termometer_saga_temperature:
      name: Sagas rum
      room: Sagas rum
    sensor.termometer_kontor_temperature:
      name: Kontoret
      room: Kontoret
    sensor.termometer_badrum_temperature:
      name: Badrummet
      room: Badrummet
    light.fonstret:
      name: Fönstret
      room: Vardagsrummet

I’m facing the same issue. Have you fixed it?