Input boolean with Google Assistant?

Hi there! I got my HA server set up with Google Assistant tonight following the instructions on this page: https://home-assistant.io/components/google_assistant/

It is working, and I can control things from my Google Home or phone. But for some reason I cannot for the life of me, get Home Assistant to export input_booleans. Is this supported? I’m running 0.60.1. I even tried explicitly turning on input_booleans and a few of the specific ones that I have set up, but no dice. They never show up in the Google Home app when I link my account.

Here’s what the section from the configuration.yaml file looks like:

google_assistant:
  project_id: home-assistant-***
  client_id: ***
  access_token: ***
  agent_user_id: ***
  api_key: ***
  exposed_domains:
    - switch
    - light
    - group
    - input_boolean
  entity_config:
    group.all_locks:
      expose: false
    input_boolean.night_mode:
      expose: true
      type: light
    input_boolean.party_lights:
      expose: true
      type: light
    input_boolean.movie_lighting:
      expose: true
      type: light

Any help would be great. Thanks!

1 Like

I have an input_boolean exposed as a type: switch that works. I don’t expose anything by default and only expose each entity individually for control. Did you resync/relink each time you tried?

1 Like

Yes, I’ve tried a bunch of different combinations and unlinked and re-linked each time. Here’s what my config looks like now:

google_assistant:
  project_id: home-assistant-***
  client_id: ***
  access_token: ***
  agent_user_id: ***
  api_key: ***
  entity_config:
    input_boolean.night_mode:
      expose: true
      type: switch
    input_boolean.party_lights:
      expose: true
      type: switch
    input_boolean.movie_lighting:
      expose: true
      type: switch

None of these input booleans are showing up. Mind sharing what your config looks like, and what version you’re running on?

1 Like

Configuring google assistant like that was only released in 0.61 I believe. Previously much of the set up had to be done in the customize section

I’m running 0.61.1. I’ve split my config so that it doesn’t clutter my configuration.yaml. Input Boolean state is changed via an automation which calls an on script and an off script:

google_assistant: !include includes/google_assistant.yaml

In my google_assistant.yaml:

  project_id: !secret
  client_id: !secret
  access_token: !secret
  agent_user_id: !secret
  api_key: !secret
  expose_by_default: false
  entity_config:
  
    input_boolean.lounge_air:
      type: switch
      expose: true
1 Like

Just upgraded to 0.65.2 and now google assistant refuses to sync with an input_boolean entity exposed… I know that type: is not supported anymore, but input_boolean should be from what I read… Not exposing the input_boolean entity makes GA work like a charm…

Any ideas?

Just looked back at the docs, and noticed that in the availables domains, it was “input boolean” without an underscore… Just tried it this way and now GA syncs without errors, but I still don’t see the entity in my assistant devices…

1 Like

Same issue here, on 0.65.4. If i add ‘input_boolean’ to my exposed domains, I cannot add my test app to Google Assistant. If i change to ‘input boolean’, I don’t get any errors, but I also don’t get any of my input_booleans available in GA.

I think it has something to do with this: https://github.com/home-assistant/home-assistant/pull/13030

is there someone who solved this problem?

" exposed_domains:
- input_boolean "
Fixed it for me.
Thank you all.

2 Likes