Liking cljdoc? Tell your friends :D

happygapi.homegraph.devices

HomeGraph API: devices.

See: https://developers.google.com/actions/smarthome/create-app#request-syncapi/reference/rest/v1/devices
raw docstring

query$clj

(query$ auth parameters body)

https://developers.google.com/actions/smarthome/create-app#request-syncapi/reference/rest/v1/devices/query

Required parameters: none

Optional parameters: none

Body:

{:agentUserId string, :requestId string, :inputs [{:payload QueryRequestPayload}]}

Gets the current states in Home Graph for the given set of the third-party user's devices. The third-party user's identity is passed in via the agent_user_id (see QueryRequest). This request must be authorized using service account credentials from your Actions console project.

https://developers.google.com/actions/smarthome/create-app#request-syncapi/reference/rest/v1/devices/query

Required parameters: none

Optional parameters: none

Body: 

{:agentUserId string,
 :requestId string,
 :inputs [{:payload QueryRequestPayload}]}

Gets the current states in Home Graph for the given set of the third-party user's devices. The third-party user's identity is passed in via the `agent_user_id` (see QueryRequest). This request must be authorized using service account credentials from your Actions console project.
sourceraw docstring

reportStateAndNotification$clj

(reportStateAndNotification$ auth parameters body)

https://developers.google.com/actions/smarthome/create-app#request-syncapi/reference/rest/v1/devices/reportStateAndNotification

Required parameters: none

Optional parameters: none

Body:

{:followUpToken string, :requestId string, :eventId string, :payload {:devices ReportStateAndNotificationDevice}, :agentUserId string}

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 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.

https://developers.google.com/actions/smarthome/create-app#request-syncapi/reference/rest/v1/devices/reportStateAndNotification

Required parameters: none

Optional parameters: none

Body: 

{:followUpToken string,
 :requestId string,
 :eventId string,
 :payload {:devices ReportStateAndNotificationDevice},
 :agentUserId string}

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.
sourceraw docstring

requestSync$clj

(requestSync$ auth parameters body)

https://developers.google.com/actions/smarthome/create-app#request-syncapi/reference/rest/v1/devices/requestSync

Required parameters: none

Optional parameters: none

Body:

{:async boolean, :agentUserId string}

Requests Google to send an action.devices.SYNC intent 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.

https://developers.google.com/actions/smarthome/create-app#request-syncapi/reference/rest/v1/devices/requestSync

Required parameters: none

Optional parameters: none

Body: 

{:async boolean, :agentUserId string}

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.
sourceraw docstring

sync$clj

(sync$ auth parameters body)

https://developers.google.com/actions/smarthome/create-app#request-syncapi/reference/rest/v1/devices/sync

Required parameters: none

Optional parameters: none

Body:

{:agentUserId string, :requestId string}

Gets all the devices associated with the given third-party user. The third-party user's identity is passed in via the agent_user_id (see SyncRequest). This request must be authorized using service account credentials from your Actions console project.

https://developers.google.com/actions/smarthome/create-app#request-syncapi/reference/rest/v1/devices/sync

Required parameters: none

Optional parameters: none

Body: 

{:agentUserId string, :requestId string}

Gets all the devices associated with the given third-party user. The third-party user's identity is passed in via the `agent_user_id` (see SyncRequest). This request must be authorized using service account credentials from your Actions console project.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close