-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate with Local Home SDK #102
Comments
Looks like we should incorporate UPnP or mDNS announcement from OH instance in order to make it work:
Source: https://developers.googleblog.com/2019/07/developer-preview-of-local-home-sdk.html |
Thanks! |
Is there any progress being made on this one? @marziman @kubawolanin - it'd be great to be triggering OH directly rather than via an internet hop. |
@kubawolanin Let me add new features to the current version, and I will try to draw a picture on how we could tackle it possibly. BR Mehmet |
@marziman I'm looking into this (haven't gotten super-deep into the Local SDK yet), why would you need a new binding on OH local level with support for Javascript? As far as I've seen the Local SDK runs the app in JavaScript directly on the Google Home/Google Nest device. There's support for Hub-like devices (OpenHAB) through which the Google Assistant device can reach the local devices (lights, ...). As far as I understand, provided you can run this project on the Google Home itself to translate Google Assistant requests to the OH Rest API, no work on OH level would be needed, right? The only thing I can't get a handle on (right now) is the mDNS/UDP/UPnP discovery of OpenHAB by the Google Assistant device; but I'm fairly sure it would be trivial to someone more familiar with OpenHAB services. Please correct me if my assumptions are wrong; I'm not overly familiar with this topic. |
You don't. Yes, the Local SDK runs on the devices. Work on OH would be needed to implement some sort of binding/service that would respond to UDP/mDNS request from Google Devices. As far as I've looked you cannot do this with current bindings (though you could probably hardcode your google device ips and constantly send them predefined UDP packets). But for now there is no need to hurry, cause:
I've implemented this local SDK and tested on my Google Home Mini, but so far I am not impressed:
|
@gytisgreitai the processing of the spoken voice is still done on remote (Google) servers, right? So that's why I think there is no really difference is speed, because it still needs to use "remote" servers, even if devices are local... Also this means that this still not work if there is no internet. |
@radokristof for Mini gen1 - yes. As For Google Nest Mini (aka. gen 2) the internet says myopenhab or any other form of remote access will be needed, because of initial sync. You must tell google cloud that device X is available for local execution. |
Ah thanks! I think I will buy more Assistant device, I will try to get newer Nest Mini. |
Obviously Yeelight just released local SDK support https://stadt-bremerhaven.de/yeelight-setzt-nun-auf-lokale-steuerung-durch-den-google-home/ |
Maybe it is worth to have a look at that solution. They don't mention necessary Preview mode |
Though I don't speak german but AFAIK Yeelight is not a hub device, these are separate devices with separate IP addresses which can be directly controlled. Regarding the preview mode, here is the comment from Google employees google-home/smart-home-local#13 (comment) |
Local Home SDK has been released: https://developers.googleblog.com/2020/04/local-home-sdk-ready-for-actions.html |
You can control devices on the iOS and Android GH app and on the screen of Nest Hub. No voice is involved. |
I think it can be a very nice feature. Its a big help if google home app can control the device without internet by screen. As a matter of fact the OpenHAB android app is slow as hell in local network too, because it does not use offline mode. Another reason Home app is more easy to use for example for my family, because assistant can be used easly. I have now myopenhab instance running in my own server, but if I can remove it from the chain it can be a big help. |
Are there any updates on this? |
Not from my side. |
I think this would still be a good thing to implement, since fulfilment is done locally instead of using myopenhab, if I understand correctly. |
I was reading this morning that Matter was added to google nest devices, I see there's some conversations about it in openhab. My understanding is that if openhab exposed items via Matter to nest devices in the home, then you'd get local fulfilment right away, and also we might not even need openhab-google-assistant? |
Well, I guess openhab then would need to act as something like a "Matter bridge" for the devices connected. |
It looks like this might be integrated into HomeAssistant... Maybe we could take a look at how they did it and apply some of that here? |
Recently Google announced they'll allow (finally!) to control smart home devices through local network. That would mean essentially that e.g Google Home could directly send requests to our openHAB instance that's living in the same network.
This is a big deal mostly from the performance standpoint.
They provided a sample:
https://github.com/actions-on-google/smart-home-local
which I would like to explore in order to see if we can easily integrate that with our current Assistant add-on.
The text was updated successfully, but these errors were encountered: