Setting up Google Actions for Assistant

Hi all. I’ve successfully set this up. Great work! However, I can’t get tts to work.

I see my home added as “media_player.living_room_speaker” (supported_features: 21437). When I try to use the “google_say” service I hear a sound, no voice. It’s apparently trying to play something. HASS says it’s “Idle” at position “0” of media and the Google Home app says it’s now playing. Here’s the payload: {“entity_id”:“media_player.living_room_speaker”,“message”:“Hello”}

Any ideas?

I enabled NAT loopback on my router to get this to work

I have just tried to get this setup and keep getting the error ‘invalid client ID’. what is the fix for this? i used the random string created by the command line as described in the instructions.

Here is a working switch for the sync:
switch:

  • platform: template
    switches:
    google_assistant_sync:
    value_template: “{{‘off’}}”
    turn_on:
    service: google_assistant.request_sync
    turn_off:
    service: google_assistant.request_sync

Cant get the code formatted correctly, but thats a minor thing

Hi,

So if you go to developer services and type in:

domain: tts
Service: google_say
Service Data (JSON, optional): {"entity_id":"media_player.front_room_speaker","message":"This is a test!"}

Can you hear it on your Google Home?

EDIT: I see you have it working. Disregard!

Hello,

Thanks for this amazing thread about all instructions given.
I cannot get the request sync function to work, I always get the error “Could not contact google server for request sync”

I posted it here in the forum link would be amazing if someone could help me with my issue. I am wondering why no one else has this issue?

I’m getting this too. The google_assistant endpoint is up, and my api_key is in there and valid. What else can cause the 404?

same problem:
request_sync request failed: 404 b'{\n "error": {\n "code": 404,\n "message": "Requested entity was not found.",\n "status": "NOT_FOUND"\n }\n}\n'

On the 404 on the request_resync service call:
https://github.com/home-assistant/home-assistant.github.io/pull/4171/commits/e5e41814551d9924e85e69b84951e8f7e89d914c (just in review)

1 Like

Google Assistant now adds command to sync devices. Very useful to me. Might help some of you guys.

3 Likes

I am looking for a little help with the Google Assistant integration. I have Xiaomi Temp sensors that are working with HomeAssistant and I would like to get data from them through my Google Home.

I have the Google Assistant setup completed successfully and I have the following added to my customize.yaml for the sensor:

sensor.temperature_158d0001b952a3:
  friendly_name: 1st Floor Temp
  google_assistant: 'true'
  google_assistant_type: climate
  aliases:
    - living room temp

I have also added the sensor to the “Living Room” in the google home app.

When I ask my Google Home “What temperature is it in the living room?” she replies “Sorry, I am unable to reach living room temp right now”

Any ideas on getting this working?

Thanks!

1 Like

Finally!! I guess the request_sync service can be retired soon.

What’s in the logs?

HomeAssistant logs show nothing when I ask for temp.

The only feedback I get is “Sorry I am unable to reach the living room temp right now” from Google Assistant

Hi there. Do i need to own a Google Home for this to work? I’m asking because near the end of the setup it says i need to go to Settings>Home Control and i do not have that option.

That’s in the Google Home app, but yeah, I think you do need a physical Google Home or equivalent (ie: JBL Link 10, 20 etc.)

Having a mobile/tablet with Google Assistant should be enough.

“Sorry I don’t understand”

also interested

Yes I did this as well (Told Google to Sync my devices and it rattled off what it had sync’ed) and GH started playing dumb and wouldn’t control my Wemo anymore. Did a resync via HA and it started working again. Strange.