bwssytems / ha-bridge

Home automation bridge that emulates a Philips Hue light system and can control other systems such as a Vera, Harmony Hub, Nest, MiLight bulbs or any other system that has an http/https/tcp/udp interface. This is a compact impl to run on small format computers. This is impl started from this project https://github.com/armzilla/amazon-echo-ha-bridge.
Apache License 2.0
1.45k stars 198 forks source link

Support Google Home again via Google's new "Local Home SDK" #1200

Open SEQUOiA87 opened 4 years ago

SEQUOiA87 commented 4 years ago

Hey! I think it should be possible that HA Bridge supports Google Home / Nest devices again, by using Google's new "Local Home SDK".

Here is the official announcement about the SDK being out of beta now: https://developers.googleblog.com/2020/04/local-home-sdk-ready-for-actions.html

Would be great for many users! What do you think?

Thanks in advance.

bwssytems commented 4 years ago

This is cool, but it is for an app on the google home to find local devices. I guess the idea is to create an ha-bridge app that can be added to your google home so it can talk to the bridge.

SEQUOiA87 commented 4 years ago

Yes, i think that's what would be needed. We would need 2 things here:

  1. Easy: Existing local HA Bridge instance to support local fulfillment, i.e. make it possible for Google's Local Home SDK to identify and talk to (controll, query) devices under management of HA Bridge.
  2. Hard: An "Actions on Google" public service for HA Bridge of type "Smart Home" (just like Hue, Yeelight and others do offer), including user registry and possibility to know about the user's HA bridge devices (at least a subset of them which the user wants to control via Google Home). Since Google reviews such a service, I think you need to also provide cloud control of the said "public" HA devices as a fallback for cases where the local fulfillment doesn't work...

What do you think?

bwssytems commented 4 years ago

The google home sdk should be able to be setup to call the emulated hue interface just fine. So it is making the service.

SEQUOiA87 commented 4 years ago

The google home sdk should be able to be setup to call the emulated hue interface just fine. So it is making the service.

Eh, how should that happen? I thought it's not possible anymore to add emulated hue devices to Google Home without an actual Hue hardware setup. As I don't have any Hue devices, I guess I'm lost :)

bwssytems commented 4 years ago

If you create a custom service with SDK, it won't know it is hue that it is dealing with...

SEQUOiA87 commented 4 years ago

If you create a custom service with SDK, it won't know it is hue that it is dealing with...

Exactly. And that's perfect, because the custom service could even tell Google that my devices are actually not lights but mostly switches. So that would also increase UX.