smart-home-local | Local Home SDK sample
kandi X-RAY | smart-home-local Summary
kandi X-RAY | smart-home-local Summary
Local Home SDK sample
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of smart-home-local
smart-home-local Key Features
smart-home-local Examples and Code Snippets
Community Discussions
Trending Discussions on smart-home-local
QUESTION
I try to understand how my javascript code that handle local execution bahavior is download in my google home mini. I know I give an url towards a server or a web page here :
And this code is used in my google home to handle local execution but I just put my web page url here, in the test tab. So if I want to deploy my app in a production environnement, how will i do that ? I did not see any other place to put the url toward my code.
I red this page: https://developers.google.com/assistant/smarthome/concepts/local
And followed this tuto: https://github.com/actions-on-google/smart-home-local
Thanks for your answers.
...ANSWER
Answered 2020-Feb-17 at 10:03Finally, i found my response. For now, local execution is just in preview. So no production management is implemented yet.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install smart-home-local
Report a single device (strand1) controlled via UDP commands: npm run firebase --prefix functions/ -- functions:config:set \ strand1.leds=16 strand1.channel=1 \ strand1.control_protocol=UDP npm run deploy --prefix functions/
Report three individual light strands connected through a proxy (hub1) and controlled via HTTP commands: npm run firebase --prefix functions/ -- functions:config:set \ hub1.leds=16 hub1.channel=1,2,3 \ hub1.control_protocol=HTTP npm run deploy --prefix functions/
The companion virtual device is a Node.js app that emulates strands of RGB LEDs controllable using the Open Pixel Control protocol and displays the results to the terminal in a colorful way. Note: The virtual device needs to listen on the same local network as the Home device.
Virtual device discovery settings must match the attributes provided in Device Scan Configuration in Develop > Actions > Configure local home SDK. If you modify the attributes in your Device Scan Configuration, you must configure the virtual device accordingly. See the virtual device README for more details on configuring the discovery attributes.
Virtual device control protocol should match control_protocol used with functions:config:set when setting up cloud fulfillment.
Configure the device type as end device or hub/proxy based on the number of --channel parameters provided. A device with more than one channel will be treated as a hub.
Start the virtual device as a single device (strand1) discovered via UDP broadcast and controlled with UDP commands: npm install --prefix device/ npm start --prefix device/ -- \ --device_id strand1 \ --discovery_protocol UDP \ --control_protocol UDP \ --channel 1
Start the virtual device as a hub (hub1) discovered via mDNS and controlling three individual strands with HTTP commands: npm install --prefix device/ npm start --prefix device/ -- \ --device_id hub1 \ --discovery_protocol MDNS \ --control_protocol HTTP \ --channel 1 \ --channel 2 \ --channel 3
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page