Update Google Assistant on Every Home Assistant Reboot

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

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:

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

That's all.

Leave a comment

Share to...