POST /v1/devices:reportStateAndNotification
Changed onReports 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 for more information. This method updates the device state according to its declared 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.
Request
- Base URLhttps://homegraph.googleapis.com
- URLhttps://homegraph.googleapis.com/v1/devices:reportStateAndNotification
- AuthOAuth 2 and OAuth 2Implicit: https://accounts.google.com/o/oauth2/authScopes: https://www.googleapis.com/auth/homegraphAuthorization code: https://accounts.google.com/o/oauth2/authToken URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/homegraph
Request body
Response
Successful response
Changes
- breaking
removed the request body
- breaking
removed the media type
*/*for the response with the status
- breaking
- info
added the new optional request property
//////// - info
added the optional property
to the response with the status
- info