Setting up Google Actions for Assistant

I did not try that. I just meant the Google Home hardware is not sold in Italy and does not have italian language yet. And when setting Google Assistant in italian on an Android phone, the integration with Home Assistant that’s explained in this post does not work.

Guys,

Can you help me get past 405: Method Now Allowed Error?

I have access remotely and even IFTTT is working but when I followed the steps for google actions, in my app I get stuck with this error.

My setup:

Dataplicity -> nginx -> HA

Since Dataplicity has SSL, I did not configure any SSL in my Raspberry Pi. See below the config that I have in nginx.

server {
    listen 80;
    server_name yourapp.com; # or server_name subdomain.yourapp.com;

    location / {
        proxy_pass http://localhost:8123;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_set_header X-NginX-Proxy true;

        # Enables WS support
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_redirect off;
    }
}

You could also change the name of the light. ie If it’s under cabinet lighting, call it “Under cabinet”, so you would say “turn on/off the under cabinet light”. Basically, don’t use Kitchen in the name.

I see Google Actions are also in other languages. Possible to use them?

Thank you for your feedback!

I upgraded to 0.58.1 where is the refresh??

See Step 9 in the docs. Once you’ve done that you’ll have a service google_assistant.request_sync available.

1 Like

Hey Tinkerer,

Any thoughts on why in step 9 when I click that site my project isn’t showing? Or am I maybe looking in the wrong spot on the site? Where should the project show up?

Thanks

If you visit https://console.cloud.google.com/apis/api/homegraph.googleapis.com/overview then you should end up being directed to your project. I end up at https://console.cloud.google.com/apis/api/homegraph.googleapis.com/overview?project=MYPROJECT&duration=PT1H

I am following the instructions and clicked enable for homegraph API but I just get the spinning circle in the middle of the screen?

And just now it decides to work! LOL!

I’m struggling to add the request_sync as an automation. Not really sure how to do this.

In the services menu I can add the domain google_assistant and then I have request_sync as a service which I can call but how do I set this up as an automation?

OK I added a couple more scenes and did the resync and its not seeing them.

I am getting a string of these errors in the logs:

2017-11-27 10:30:38 WARNING (MainThread) [homeassistant.components.google_assistant.smart_home] aliases must be a list

I did unlink and relink the app in Google Assistant and could control everything (this was when I first put the new config in and before I added the extra scenes)

I don’t think the sync is working.

NVM!! There was just a delay and it’d WORKING! Woot!

Excellent thanks guys.

I just need help as per above in configuring the automation.

OK I just can’t create an automation to execute google_assistant.request_sync
I’d like to just manually trigger the sync from the automation or I could set it to trigger every night at midnight?

Can you try this? Should do what you want:

- id: xxx [set this to whatever number is next]
  alias: Refresh Google Assistant at midnight
  trigger:
    - platform: time
      at: '00:00:00'
  action:
    - service: google_assistant.request_sync

I have to ask though, why is it necessary to do this every day? Wouldn’t you just call it manually after you’ve added a new device?

Well i don’t want to trigger it at midnight but no matter what I try, I can’t use the GUI to add an automation. I did set the action as you specified but I don’t seem to be able to get it to add the automation.

Oh that sounds like a GUI problem, not a “cant get google assistant request sync as an automation”. Can’t help you with the GUI, I only use the command line to edit my configs.

Hi everyone,
I am a little bit stuck.
I have followed every step from here : https://home-assistant.io/components/google_assistant/
But when I try to add my test-app from my google assistant app, it gives me:
ERR_CONNECTION_REFUSED if I do not specify the port and ERR_SSL_PROTOCOL_ERROR if I do (I have tried both)
I don’t know what could be the problem, what have you guys writen on [YOUR HOME ASSISTANT URL] ?? The one you use to access home assistant GUI?
Thanks for your time!!

I tried this…

- id: '1509933513625'
  alias: Refresh Google Assistant
  action: 
    - service: google_assistant.request_sync

But it’s not showing in the GUI when I reload automations.

Actually I just noticed an error in the frontend. I just picked an ID - is that the issue?

Well usually you’d number then sequentially. But without a trigger how is this automation ever going to fire?