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

Sync not working: #100

Closed Freez closed 4 years ago

Freez commented 4 years ago

Today I setup this Google assistent integration, but when I click Sync on the settings page I got the following error:

Page not found!: 'client_email'

I'm running this on my Synology NAS by running the synology setup file. How can I fix this error?

DewGew commented 4 years ago

Check your smart-home-key.json file:

Create smart-home-key.json Enable the Google HomeGraph API In the Google Cloud Platform Console, go to the HomeGraph API page.

Go to the HomeGraph API page Select the project that matches your smart home project ID. Click ENABLE. Create a Service Account Key Follow these instructions to generate a service account key from the GCP Console:

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. In the GCP Console, go to the Create service account key page.

Go to the Create Service Account Key page From the Service account list, select New service account. In the Service account name field, enter a name. In the Service account ID field, enter a ID. From the Role list, select Service Accounts > Service Account Token Creator.

For the Key type, select the JSON option.

Click Create. A JSON file that contains your key downloads to your computer. rename the file to smart-home-key.json and add the file to Domoticz-Google-Assistant folder.

Freez commented 4 years ago

I create a new service account and now it works fine! Thnx!