Setting up Google Actions for Assistant

gactions is used to validate your project json file with the assistant app project you create on actions on google website. Doesn’t require HASS. All you need to do is have a working https address for HASS and edit the configuration.yaml

Did you input the correct url during the account linking process?

https://[YOUR HOME ASSISTANT URL]/api/google_assistant/auth

Indeed I did.

I had the same issue, the /auth part was missing from my address

Mine is https://ha.[oh no you don’t]/api/google_assistant/auth

Edit: I think I may have figured it out. Put my project ID in where I was supposed to put in my client ID in Account Linking

No 404, now I am getting “invalid client id”. Is this string I make up for coniguration.yaml and Account Linking, or do I get it from somewhere else? Note: They match in the above mentioned places.

Okay, just a hint if anyone is using Firefox on Android: for this, don’t. I don’t know why, but when adding the test component on the Home application from my phone, all I got with Firefox was a blank page after a couple redirects. It works fine with Chrome.

Once this is setup, does it run locally or is it dependent on the google servers (requires an internet connection)?

Got the invalid client id fixed, thanks to help from just_insane on Discord. But now getting “Couldn’t update the setting. Check your connection.” but my connection is just fine.

You just make up a random string that will work in a url. Make sure you don’t have these brackets [ ] .

Special characters were my problem with the client id. Went to all numbers and letters and got past that part, but then I get the new error.

Hope this will be implemented is very important.

Soon with Alexa (and I guess GA will follow) will be possible to turn off/on lights based on the room, so no need to say
Turn off bedroom lights
but just
Turn off lights (and will turn off only bedroom lights and not other room lights.

So if switches/automations/scripts are seen as LIGHT, its a problem

Hope is so

Ok, so I set this up and it all seems to work perfectly (once I triple checked my spellings!)

Now that I have the google assistant integrated, I added a new Lightbulb to my system that I had been holidng off from doing so until then.

BUT, I can’t get the assistant to spot the new bulb…
I’ve refreshed the google assistant devices view, restarted home assistant (and confirmed I can see and control it from there), and even tried pressing the “test draft” button on Actions on Google again, but I still can’t see the new bulb.

If it makes any difference I am using Ikea Tradfri bulbs across my system.

The only other thing I can think to do is run through the whole assistant setup process again, i.e forget my device and re add it. Can anyone confirm if this will work though before I go through the hassle? Or is there anything else I am missing?

Thanks.

Have you tried unlinking and relinking your test assistant app? Pretty sure earlier in the discussion that a refresh portion wasn’t implemented yet

Yep so it worked, just a shame that’s the only way to do it right now as I have to re add all my bulbs to the relevant rooms each time! Thanks, hopefully we get a refresh in a future build

@PhilK mentioned above that the REQUEST_SYNC (or whatever is the exact name of the request allowing HASS to tell Actions on Google that the device list has changed) had been added just this week by Google, and he didn’t have the time to implement it in time for 0.56. There are things missing, but as a first implementation, that’s working great :+1:

1 Like

Thanks so much for getting this working with HA.

I’ve spotted one problem so far. My Yamaha Network Receiver is being treated as a light when I say ‘ok google turn on/off all lights’

I get all the way to selecting my test app in the Google home app. It goes through the auth stuff, spins around for a while and says “Something went wrong, try again”.

I deleted my project and started again with the same result. Any ideas what I could be doing wrong?

how do you install

gactions CLI
in hassio?