Skip to content

Commit 1a2b45f

Browse files
r4nd0mbr1ckballoob
authored andcommitted
Add new configuration variables for request_sync (home-assistant#3807)
* Add new configuration variables for request_sync * Update google_assistant.markdown Include note about initial sync with agent_user_id * Change to api_key - remove homegraph prefix * ✏️ Small spelling/grammar fixes
1 parent 635d033 commit 1a2b45f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

source/_components/google_assistant.markdown

+11
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ google_assistant:
2828
project_id: someproject-2d0b8
2929
client_id: [long URL safe random string]
3030
access_token: [a different long URL safe random string]
31+
agent_user_id: [a string to identify user]
32+
api_key: [an API Key generated for the Google Actions project]
3133
exposed_domains:
3234
- switch
3335
- light
@@ -43,6 +45,8 @@ google_assistant:
4345
* *project_id* (Required): Project ID from the Google Developer console (looks like `words-2ab12`)
4446
* *client_id* (Required): A long random URL safe string (no spaces or special characters) that will be used for Implicit OAuth.
4547
* *access_token* (Required): Another different long random URL safe string.
48+
* *agent_user_id* (Optional): A string to identify the user, e.g., email address. If not provided, the component will generate one.
49+
* *api_key* (Optional): An API Key generated for the project from Google Console. See setup below. If not provided then the request_sync service is not exposed
4650
* *exposed_domains* (Optional): An array of Home Assistant domains to expose to Google Assistant. Options include:
4751
- `switch`
4852
- `light`
@@ -123,3 +127,10 @@ homeassistant:
123127
2. Under the gear icon, click `Permissions`
124128
3. Click `Add`, type the new user's e-mail address and choose `Project -> Editor` role
125129
4. Have the new user go to [developer console](https://console.actions.google.com/) and repeat steps starting from point 7.
130+
11. If you want to use the request_sync service in Home Assistant, then Enable Homegraph API for your project:
131+
1. Go to https://console.cloud.google.com/apis/api/homegraph.googleapis.com/overview
132+
2. Select your project and click Enable Homegraph API
133+
3. Go to Credentials and select API Key from Create Credentials
134+
4. Note down the generated API Key and use this in the configuration
135+
136+
*Note:* The request_sync service requires that the initial sync from Google includes the agent_user_id. If not, the service will log an error that reads something like "Request contains an invalid argument". If this happens, then unlink the account from Home Control and relink.

0 commit comments

Comments
 (0)