Google Launches Local Home SDK
Written by Kay Ewbank   
Tuesday, 16 July 2019

Google has released a developer preview of a JavaScript SDK for Local Home. The SDK provides an easier way for developers to connect users' home devices to Google Assistant and to run their actions locally.

The SDK was announced at Google I/O 2019, and is based on Google Smart Home, Google's system for controlling connected devices through the Google Home app and the Google Assistant.
googlesmart

This SDK is a NodeJS client library for Actions on Google, and can improve performance when controlling smart devices by running execution apps locally. You can write a local execution app that contains your smart device business logic using TypeScript or JavaScript. If the app is aimed at controlling Google Home smart speakers or Nest smart displays, these can load and run your app on-device. The SDK supports Dialogflow, Actions SDK, and Smart Home fulfillment.

The SDK adds two new intents to the available options - Identify and Reachable_Devices. The local home platform scans the home network to discover any smart devices connected to the Assistant, and triggers Identify to get the device ID. If the detected device is a hub or bridge, Reachable_Device is triggered and treats the hub as the proxy device for communicating locally.

local home sdk execute path

From that point, if the user triggers a smart home Action that has a local execution path, the Assistant sends the Execute intent to the Google Nest device rather than to the cloud. Your JavaScript app is invoked, which then triggers the Local Home SDK to send control commands to the smart device over TCP, UDP socket, or HTTP/HTTPS requests.

Google says that this default choice for local execution, rather than the cloud, makes users' requests work faster. If there's a problem with local execution, the request can then be sent to the cloud path to make it less likely the request fails.

The SDK also provides support for all wifi-enabled device types and device traits apart from those that require two-factor authentication, and makes it easy to configure discovery protocols and the hosted JavaScript app URL through the Actions console.

googlesmart 

More Information

Local Smarthome Documentation

Related Articles

Google Assistant SDK Released 

Google Acquires Nest Labs

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


TypeScript 5.4 Adds NoInfer Type
12/03/2024

TypeScript 5.4 has been released, with the addition of a NoInfer utility type alongside preserved narrowing in closures following last assignments. 



Generative AI Training For All On Coursera
04/03/2024

Generative AI is on the loose, getting into business and commerce as well as into art, poetry and coding. Already useful, it  will become ever more useful as long as we use it properly. Coursera  [ ... ]


More News

raspberry pi books

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Tuesday, 16 July 2019 )