Update Google Assistant on Every Home Assistant Reboot

Disclosure: This post contains affiliate links. If you click through and make a purchase, I’ll earn a commission, at no additional cost to you. Read my full disclosure here.
Advertisement

In the third Beginner’s Guide I showed you how to enable the Homegraph API to allow the Google Assistant to sync devices with Home Assistant. Today I’ll be showing you a few lines of code that will sync the two platforms every time you reboot your Home Assistant. As a tinkerer’s tool, you will be rebooting very often, so it’s quite handy to use this automation. Just add these lines (no adjustments needed) to your automations.yaml:

Advertisement
- alias: 'Update Google Assistant on start of Home Assistant'
  trigger:
    platform: homeassistant
    event: start
  action:
    service: google_assistant.request_sync

That’s all.

The Home Assistant Beginner’s Guide Part 3: Integrating Home Assistant with the Google Assistant/Google Home

Controlling a FreeNAS using Home Assistant

Advertisement
Liam Alexander Colman, the author and maintainer of Home Assistant Guides.

About Liam Alexander Colman

Liam Alexander Colman has been using Home Assistant for various projects for quite some time. What started off with a Raspberry Pi quickly became three Raspberry Pis and eventually a full-blown server. I now use Unraid as my operating system, and Home Assistant happily runs in a Docker container. My personal setup includes many Zigbee devices as well as integrations with existing products such as my Android TV box. Read on to find out more on how I got started with Home Assistant.

Leave a comment

Advertisement
Share to...