Google Assistant configuration

The Google Assistant integration allows users to control Home Assistant entities from Google Home. You can then say things like “Ok Google, turn on the kitchen light” to control your local Home Assistant.

To control Home Assistant entities from Google Home, follow these steps:

  1. Set up Home Assistant Cloud.
  2. Under Settings > Voice assistant, enable Google Assistant.
    Enable Google Assistant
  3. On the Expose tab, expose at least one entity to Google.
    • Open the Expose tab.

      Open the Expose tab
    • Select the entity you want to be able to control via Google Assistant.

      Select the entities you want to expose to Google Assistant
    • Enable Google Assistant.

      Enable Google Assistant
      • The Google Assistant icon is now visible in the Assistants column.

        Expose entities: Google Assistant icon is now visible
  4. Activate the Home Assistant Smart Home skill for Google Assistant.
    • If you have a Google Home device, use the Google Home app.
      • Select the plus icon in the upper left corner, and then Set up device, and Works with Google.
      • Search for Home Assistant Cloud by Nabu Casa and add it.
    • If you only have a mobile phone, launch Google Assistant, select the three dots menu.
      • Under Settings, you’ll find Home Control.
      • There you can add Home Assistant Cloud by Nabu Casa using the Add devices option.
    • Troubleshooting: If after adding Home Assistant Cloud by Nabu Casa, the message No compatible devices were found in your Home Assistant Cloud by Nabu Casa appears: This means no entity was exposed to Google Assistant. Repeat the step on exposing entities.

Available domains

Currently, the following domains are available to be used with Google Assistant. They are listed with their default types:

Some of these devices may not display correctly in the Google Home app, such as media player, however, voice commands will still work.

Secure devices

A secure device cannot be opened by Google Assistant unless a secure_devices_pin is set up. The following domains cover secure devices: lock, alarm_control_panel and covers with device types garage and door.

To allow opening, set the secure_devices_pin to something and you will be prompted to verbally provide this when opening the device. Closing and locking these devices does not require a pin.

 Home Assistant expose devices: secure devices

For the Alarm Control Panel, if a code is set, it must be the same as the secure_devices_pin. If code_arm_required is set to false, the system will arm without prompting for the pin.

Media player sources

Media Player sources are sent via the Modes trait in Google Assistant. There is currently a limitation with this feature that requires a hard-coded set of settings. Because of this, the only sources that will be usable by this feature are listed here. An example command would be, ““Hey Google, change input source to TV on Living Room Receiver”

Devices don’t show up for all users?

Some devices, such as scene or script, must be assigned to an area before other members of a shared Google Home Household can use them. This is because household members in a shared Google Home will not be able to view devices that are not assigned to a room (unless they were the user who linked the service to Google Home). This issue isn’t immediately apparent because script and scene devices aren’t visible in the main Google Home dashboard.

Climate operation modes

There is not an exact 1-1 match between Home Assistant and Google Assistant for the available operation modes. Here are the modes that are currently available:

  • off
  • heat
  • cool
  • heatcool
  • fan-only
  • dry
  • eco
  • auto

After setting up the cloud, if you make any device changes such as changing the name or adding a new device simply say “Ok Google, sync my devices” to get the changes to show up.

Local communication

Google devices can send their commands locally to Home Assistant. This allows Google to respond faster to your commands. If a local connection is unavailable it will automatically fallback to the cloud.

Google Assistant will consider sending commands locally if it does not involve a secure device.

Your Home Assistant instance needs to be connected to the same network as the Google Assistant device that you’re talking to. The Google Assistant device will discover your Home Assistant instance via mDNS discovery (UDP broadcasts).

Your Home Assistant instance should not have the HTTP integration configured to use an SSL certificate (docs). This is necessary because the Google device will connect directly to the IP of your Home Assistant installation and will fail if it encounters an invalid SSL certificate.

The Google device still needs to be connected to the internet to be able to sync entities via Home Assistant Cloud, get credentials to establish a local connection and as a fallback for secure devices or if your Home Assistant instance cannot be reached.

Manual configuration

You can use configuration.yaml to configure the entities that are being shown to Google Assistant and how they are exposed. If you use any filters, as shown in the example below, the entities can no longer be exposed via User Interface. They are still listed under Settings > Voice assistant > Expose, but are shown grayed out.

# Example configuration.yaml entry configuring Google Assistant
        - light.kitchen_left
        - switch
        - switch.outside
        name: Custom Name for Google Assistant
         - bright lights
         - entry lights
        room: living room

Configuration variables

  (map) (Optional) Configuration options for the Google Assistant integration.

    (map) (Optional) description: Filters for entities to include/exclude from Google Assistant.
      (list) (Optional) description: Entity IDs to include.
      (list) (Optional) Domains to include.
      (list) (Optional) Entity IDs to exclude.
      (list) (Optional) Domains to exclude.

    (map) (Optional) Entity specific configuration for Google Assistant.
      (map) (Optional) Entity to configure.
        (string) (Optional) Name of entity to show in Google Assistant.
        (list) (Optional) Aliases that can also be used to refer to this entity.
        (string) (Optional) Hint for Google Assistant in which room this entity is.