You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 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
Copy file name to clipboardExpand all lines: source/_components/google_assistant.markdown
+11
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,8 @@ google_assistant:
28
28
project_id: someproject-2d0b8
29
29
client_id: [long URL safe random string]
30
30
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]
31
33
exposed_domains:
32
34
- switch
33
35
- light
@@ -43,6 +45,8 @@ google_assistant:
43
45
* *project_id* (Required): Project ID from the Google Developer console (looks like `words-2ab12`)
44
46
* *client_id* (Required): A long random URL safe string (no spaces or special characters) that will be used for Implicit OAuth.
45
47
* *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
46
50
* *exposed_domains* (Optional): An array of Home Assistant domains to expose to Google Assistant. Options include:
47
51
- `switch`
48
52
- `light`
@@ -123,3 +127,10 @@ homeassistant:
123
127
2. Under the gear icon, click `Permissions`
124
128
3. Click `Add`, type the new user's e-mail address and choose `Project -> Editor` role
125
129
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