DewGew / Domoticz-Google-Assistant

Google Assistant for Domoticz
https://github.com/DewGew/Domoticz-Google-Assistant/wiki
Apache License 2.0
79 stars 41 forks source link

homegraph error in log #214

Closed vreesie18 closed 3 years ago

vreesie18 commented 3 years ago

hey people,

Have errors as below, checked the manual again and again but can find anything missing of done wrong. Any hints ??

2020-10-29 13:59:45 - DEBUG - Starting new HTTPS connection (1): homegraph.googleapis.com:443 2020-10-29 13:59:45 - DEBUG - https://homegraph.googleapis.com:443 "POST /v1/devices:reportStateAndNotification HTTP/1.1" 404 None 2020-10-29 13:59:45 - DEBUG - https://homegraph.googleapis.com:443 "POST /v1/devices:reportStateAndNotification HTTP/1.1" 404 None 2020-10-29 13:59:45 - ERROR - 404 Client Error: Not Found for url: https://homegraph.googleapis.com/v1/devices:reportStateAndNotification 2020-10-29 13:59:45 - ERROR - 404 Client Error: Not Found for url: https://homegraph.googleapis.com/v1/devices:reportStateAndNotification

DewGew commented 3 years ago

Probobly you smart-home-key.json issue , create a new one. You can also get this error is you just added or changed a device. just make a new sync

Note: Ensure that you are using the correct GCP project when performing these steps. This is the project that matches your smart home project ID. At Google Cloud Platform Console at the top left corner in the blue bar next to Google Cloud Platform. There is a drop down menu where you can choose your projects.

Navigate to the Google Cloud Console API Manager for your project id. Enable the HomeGraph API. Navigate to the Google Cloud Console API & Services page Select Create Credentials and create a Service account key Create a new Service account Use the role Service Account > Service Account Token Creator Click Done Click on the newly created Email Account under Service Accounts Add key > create new key Choose JSON Click create and download the JSON file. Upload and Save this in ../Domoticz-Google-Assistant/config folder as smart-home-key.json.

vreesie18 commented 3 years ago

Is it correct that I can not found the oauth part any more in your manual under the Google actions ?

DewGew commented 3 years ago

I dont know what you mean but in actions on google Under Client Information, Client ID: some ID, just remember it and add it in config.yaml Client secret: some password, just remember it and add it in config.yaml

Tobydeteckel commented 3 years ago

I think @vreesie18 is refer to Domoticz WIKI. There they tell about Oauth.

As far as i know there isnt a option to connect with Oauth and think its a misstake discription by Domoticz WIKI.

vreesie18 commented 3 years ago

I think @vreesie18 is refer to Domoticz WIKI. There they tell about Oauth.

As far as i know there isnt a option to connect with Oauth and think its a misstake discription by Domoticz WIKI.

Thanks, I already figured that out.

vreesie18 commented 3 years ago

I have doing some testing and it looks like the homegraph errors are caused by me using a google g suite account. There is a lot to do about the limitations of a google g suite account regarding the use of Google Assistent. For instance, inviting members to your home account using a gsuit account is impossible of one of the two on each site os using a g suite account.

Tobydeteckel commented 3 years ago

And Sharing the Home from the "google home app"?

Home app -> + (add) -> Invite member

vreesie18 commented 3 years ago

Not possible with a google g suite account. There is a lot of anger in the world regarding this subject. Just google.