Home Assistant / Google Assistant local connectivity
Historically if you integrated Google Assistant with Home Assistant every time you asked “Hey Google, switch the light off” your Google device would do this:
“Hey Google” > Google Cloud > Public Internet > Home Assistant
We want it to do this:
“Hey Google” > Home Assistant
Assuming you already have the google_assistant:
integration setup
- Open the project you created in the Actions on Google console.
- Click
Develop
on the top of the page, then clickActions
located in the hamburger menu on the top left. - Upload
app.js
from here for both Node and Chrome by clicking theUpload Javascript files
button. - Add device scan configuration:
- Click
+ New scan config
if no configuration exists - Select
MDNS
- Set
MDNS service name
to_home-assistant._tcp.local
- Click
Add field
, then underSelect a field
chooseName
- Enter a new
Value
field set to.*\._home-assistant\._tcp\.local
- Check the box
Support local query
underAdd capabilities
. Save
your changes.- Either wait for 30 minutes, or restart all your Google Assistant devices.
- Restart Home Assistant Core.
- With a Google Assistant device, try saying “OK Google, sync my devices.” This can be helpful to avoid issues, especially if you are enabling local fulfillment sometime after adding cloud Google Assistant support.
Alternatively, Home Assistant Cloud will configure this all for you automatically