Index
Methods
getProxyInfo  
					- 
							getProxyInfois called by app to get information about the hub / bridge controlling this end-device.Parameters- 
									id: stringDevice ID of end device that is being controlled by the hub. 
 Returns ProxyInfo
- 
									
getRegisteredDevices  
					- 
							Returns the list of registered devices. Returns RegisteredDevice[]
markPending 
					- 
							markPendingis called by the app when app is done handling an intent, but the actual operation (usually EXECUTE command) is still not done. This enables Google Home to respond back to the user in a timely fashion. This may be useful for somewhat long running operations. Returns a promise.Parameters- 
									request: IntentRequestOriginal intent request that should be marked pending. 
- 
									Optional response: IntentResponsePending response to the intent request. 
 Returns Promise<void>
- 
									
reportState 
					- 
							reportStateis called by app to report the changed state for the device. In the case of BLE Seamless Setup, it should be called whenever the app receives a BLE notification in ParseNotificationHandler.Parameters- 
									state: Payloadthe latest state of the device 
 Returns undefined
- 
									
send
- 
							sendis called by app when it needs to communicate with a device. Depending upon the protocol used by the device, the app constructs a DataFlow.CommandRequest object and passes it as an argument. Returns a promise that resolves to DataFlow.CommandSuccess. Response may return data, if it was a read request.See also BleRequestData, HttpRequestData, TcpRequestData, UdpRequestData Parameters- 
									command: CommandRequestCommand to communicate with the device. 
- 
									Optional sendOptions: SendOptionsOptions for sendAPI. See SendOptions.
 Returns Promise<CommandSuccess>Promise that resolves to DataFlow.CommandSuccess 
- 
									
sendAndWait  
					- 
							sendAndWaitallows the app to wait for notification in the same promise chain. But if the app uses a transformFunc, the resolved result could be anything. If transformFunc is not specified, the promise will be resolved with DataFlow.CommandSuccess type.Parameters- 
									command: CommandRequestCommand to communicate with the device. 
- 
									options: NotificationOptionsOptions for sendAndWaitAPI. See NotificationOptions.
 Returns Promise<unknown | CommandSuccess>Promise that resolves to anything. It resolves to DataFlow.CommandSuccess if transformFunc is not specified in options. 
- 
									
This class provides access to the devices managed by the local home platform. Applications can use this interface to send and receive commands with a locally identified device using the send method.
localHomeApp.getDeviceManager() .send(deviceCommand) .then((result) => { // Handle command success }) .catch((err: IntentFlow.HandlerError) => { // Handle command error });