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
<pclass="firstline">Reports device state and optionally sends device notifications. Called by your smart home Action when the state of a third-party device changes or you need to send a notification about the device. See [Implement Report State](https://developers.google.com/assistant/smarthome/develop/report-state) for more information. This method updates the device state according to its declared [traits](https://developers.google.com/assistant/smarthome/concepts/devices-traits). Publishing a new state value outside of these traits will result in an `INVALID_ARGUMENT` error response. The third-party user's identity is passed in via the `agent_user_id` (see ReportStateAndNotificationRequest). This request must be authorized using service account credentials from your Actions console project.</p>
<pclass="firstline">Sends an account linking suggestion to users associated with any potential Cast devices detected by third-party devices. This request must be authorized using service account credentials from your Actions console project.</p>
<pclass="firstline">Requests Google to send an `action.devices.SYNC` [intent](https://developers.google.com/assistant/smarthome/reference/intent/sync) to your smart home Action to update device metadata for the given user. The third-party user's identity is passed via the `agent_user_id` (see RequestSyncDevicesRequest). This request must be authorized using service account credentials from your Actions console project.</p>
@@ -153,7 +150,7 @@ <h3>Method Details</h3>
153
150
{ # Request type for the [`ReportStateAndNotification`](#google.home.graph.v1.HomeGraphApiService.ReportStateAndNotification) call. It may include states, notifications, or both. States and notifications are defined per `device_id` (for example, "123" and "456" in the following example). # Example ```json { "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf", "agentUserId": "1234", "payload": { "devices": { "states": { "123": { "on": true }, "456": { "on": true, "brightness": 10 } }, } } } ```
154
151
"agentUserId": "A String", # Required. Third-party user ID.
155
152
"eventId": "A String", # Unique identifier per event (for example, a doorbell press).
156
-
"followUpToken": "A String", # Token to maintain state in the follow up notification response. Deprecated. See the [notifications guide](https://developers.google.com/assistant/smarthome/develop/notifications) for details on implementing follow up notifications.
"payload": { # Payload containing the state and notification information for devices. # Required. State of devices to update and notification metadata for devices.
158
155
"devices": { # The states and notifications specific to a device. # The devices for updating state and sending notifications.
159
156
"notifications": { # Notifications metadata for devices. See the **Device NOTIFICATIONS** section of the individual trait [reference guides](https://developers.google.com/assistant/smarthome/traits).
<pre>Sends an account linking suggestion to users associated with any potential Cast devices detected by third-party devices. This request must be authorized using service account credentials from your Actions console project.
186
-
187
-
Args:
188
-
body: object, The request body.
189
-
The object takes the form of:
190
-
191
-
{ # Request type for the [`RequestLink`](#google.home.graph.v1.HomeGraphApiService.RequestLink) call.
192
-
"payload": { # Payload containing potential devices detected and when they were detected. # Required. ID(s) and detection time of potential Cast devices.
193
-
"detectionTime": "A String", # Required. Time at which devices represented in `potential_cast_device_ids` were detected.
194
-
"potentialCastDeviceIds": [ # Required. List of device IDs detected that may potentially be for Cast devices.
195
-
"A String",
196
-
],
197
-
},
198
-
"requestId": "A String", # Required. Request ID used for debugging.
199
-
}
200
-
201
-
x__xgafv: string, V1 error format.
202
-
Allowed values
203
-
1 - v1 error format
204
-
2 - v2 error format
205
-
206
-
Returns:
207
-
An object of the form:
208
-
209
-
{ # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
<pre>Requests Google to send an `action.devices.SYNC` [intent](https://developers.google.com/assistant/smarthome/reference/intent/sync) to your smart home Action to update device metadata for the given user. The third-party user's identity is passed via the `agent_user_id` (see RequestSyncDevicesRequest). This request must be authorized using service account credentials from your Actions console project.
"description": "Sends an account linking suggestion to users associated with any potential Cast devices detected by third-party devices. This request must be authorized using service account credentials from your Actions console project.",
182
-
"flatPath": "v1/devices:requestLink",
183
-
"httpMethod": "POST",
184
-
"id": "homegraph.devices.requestLink",
185
-
"parameterOrder": [],
186
-
"parameters": {},
187
-
"path": "v1/devices:requestLink",
188
-
"request": {
189
-
"$ref": "RequestLinkRequest"
190
-
},
191
-
"response": {
192
-
"$ref": "Empty"
193
-
},
194
-
"scopes": [
195
-
"https://www.googleapis.com/auth/homegraph"
196
-
]
197
-
},
198
180
"requestSync": {
199
181
"description": "Requests Google to send an `action.devices.SYNC` [intent](https://developers.google.com/assistant/smarthome/reference/intent/sync) to your smart home Action to update device metadata for the given user. The third-party user's identity is passed via the `agent_user_id` (see RequestSyncDevicesRequest). This request must be authorized using service account credentials from your Actions console project.",
200
182
"flatPath": "v1/devices:requestSync",
@@ -234,7 +216,7 @@
234
216
}
235
217
}
236
218
},
237
-
"revision": "20210226",
219
+
"revision": "20210318",
238
220
"rootUrl": "https://homegraph.googleapis.com/",
239
221
"schemas": {
240
222
"AgentDeviceId": {
@@ -520,7 +502,7 @@
520
502
"type": "string"
521
503
},
522
504
"followUpToken": {
523
-
"description": "Token to maintain state in the follow up notification response. Deprecated. See the [notifications guide](https://developers.google.com/assistant/smarthome/develop/notifications) for details on implementing follow up notifications.",
505
+
"description": "Deprecated.",
524
506
"type": "string"
525
507
},
526
508
"payload": {
@@ -545,40 +527,6 @@
545
527
},
546
528
"type": "object"
547
529
},
548
-
"RequestLinkRequest": {
549
-
"description": "Request type for the [`RequestLink`](#google.home.graph.v1.HomeGraphApiService.RequestLink) call.",
550
-
"id": "RequestLinkRequest",
551
-
"properties": {
552
-
"payload": {
553
-
"$ref": "RequestLinkRequestPayload",
554
-
"description": "Required. ID(s) and detection time of potential Cast devices."
555
-
},
556
-
"requestId": {
557
-
"description": "Required. Request ID used for debugging.",
558
-
"type": "string"
559
-
}
560
-
},
561
-
"type": "object"
562
-
},
563
-
"RequestLinkRequestPayload": {
564
-
"description": "Payload containing potential devices detected and when they were detected.",
565
-
"id": "RequestLinkRequestPayload",
566
-
"properties": {
567
-
"detectionTime": {
568
-
"description": "Required. Time at which devices represented in `potential_cast_device_ids` were detected.",
569
-
"format": "google-datetime",
570
-
"type": "string"
571
-
},
572
-
"potentialCastDeviceIds": {
573
-
"description": "Required. List of device IDs detected that may potentially be for Cast devices.",
574
-
"items": {
575
-
"type": "string"
576
-
},
577
-
"type": "array"
578
-
}
579
-
},
580
-
"type": "object"
581
-
},
582
530
"RequestSyncDevicesRequest": {
583
531
"description": "Request type for the [`RequestSyncDevices`](#google.home.graph.v1.HomeGraphApiService.RequestSyncDevices) call.",
0 commit comments