The function that will run for an EXECUTE request. It should return a valid response or a Promise that resolves to valid response.
Defines a function that will run when an EXECUTE request is received.
The function that will run for an EXECUTE request. It should return a valid response or a Promise that resolves to valid response.
Defines a function that will run when a QUERY request is received.
The function that will run for a QUERY request. It should return a valid response or a Promise that resolves to valid response.
Defines a function that will run when a SYNC request is received.
The function that will run for a SYNC request. It should return a valid response or a Promise that resolves to valid response.
Reports the current state of a device or set of devices to the home graph. This may be done if the state of the device was changed locally, like a light turning on through a light switch.
When calling this function, a JWT (JSON Web Token) needs to be provided as an option in the constructor.
A payload containing a device or set of devices with their states
Sends a request to the home graph to send a new SYNC request. This should be called when a device is added or removed for a given user id.
When calling this function, an API key needs to be provided as an option in the constructor. See https://developers.google.com/actions/smarthome/create-app#request-sync to learn more.
The user identifier.
Generated using TypeDoc
Defines a function that will run when a DISCONNECT request is received.