WebThingsIO / gateway

WebThings Gateway
http://webthings.io/gateway
Mozilla Public License 2.0
2.61k stars 333 forks source link

Google Home/Assistant integration #655

Open claell opened 6 years ago

claell commented 6 years ago

In the long run integration with Google Home/Assistant would be nice.

benfrancis commented 6 years ago

@andrenatal Have you looked at this by any chance? How feasible is it to have Google Assistant call the gateway's API?

guillaume86 commented 6 years ago

Also briefly discussed here: https://discourse.mozilla.org/t/is-google-assistant-support-in-consideration/25264

andrenatal commented 6 years ago

@benfrancis Seems the same backend and technology we'll build for Alexa can be reused for Google Home. Let me start doing it and I'll let you guys know.

mrstegeman commented 5 years ago

If we want to go the decentralized route, I've found some other examples from openHAB and Home Assistant. Both give users instructions on how to set up their own Google cloud endpoint.

benfrancis commented 5 years ago

Interesting. Requiring users to manually set up their own cloud endpoint is obviously not going to be user friendly enough outside the hacker and maker community.

What is the fundamental requirement that requires hosting a cloud service somewhere? Is it that the Google Home Graph can only be hosted on Google infrastructure? What is the technical constraint which prevents a single Google Action talking to multiple gateways?

mrstegeman commented 5 years ago

The primary issue is that you have to have a single endpoint for the skill/action to authenticate against via OAuth. For us, that means running a separate cloud service that either proxies connections or somehow redirects to the user’s gateway. That is, unless @hobinjk found a way around that.

kristianpaul commented 5 years ago

Home Assistant emulates Hue device, i would stick to that, and thats actually how Amazon Echo wires to my current home assistant setup..

vromero commented 5 years ago

If we want to go the decentralized route, I've found some other examples from openHAB and Home Assistant. Both give users instructions on how to set up their own Google cloud endpoint. https://github.com/openhab/openhab-google-assistant

Those instructions are somewhat misleading. What most of the OpenHab users do (including myself) is to enable the free eclipse foundation supported cloud endpoint for a local openhab : https://www.myopenhab.org/

Which pretty much is just always there in the cloud as an endpoint for google home and then proxy the requests to your local openhab that is connected to it too (so no need of open ports).

arstulke commented 5 years ago

Maybe the newly announced Local Home SDK for the Google Assistant is a possibility as soon as it is publicly available.

punkeel commented 3 years ago

Looks like the Local Home SDK is now publicly available. Has anyone played with it yet?