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 199 forks source link

Workaround for linking Google Home to ha-brigde (without using a real phone!) #626

Closed harolds closed 7 years ago

harolds commented 7 years ago

Short How To (for people with no android devices or old ones or iPhones):

Thanks to @333ryan18 (https://community.home-assistant.io/u/333ryan18) I linked my Home to ha-brigde!

First of all, you need Android (or the older iOS app, but it's way easier to downgrade apps on Android), in my case I do not own a recent Android device, so I created a VirtualBox VM running RemixOS using osboxes excellent VMDK: http://www.osboxes.org/remix-os/

After downloading, creating and booting the VM, Use the "Play Activator app" to install Google Play services and Play Store and 'activate' them. IMPORTANT: Reboot RemixOS after Play Activator is done.

First make sure ha-brigde is running (on port 80!!!).

See the attached images for the next steps:

snap 2017-05-12 at 10 49 33

snap 2017-05-12 at 10 53 00

snap 2017-05-12 at 10 56 11

snap 2017-05-12 at 10 57 04

snap 2017-05-12 at 11 02 20

snap 2017-05-12 at 11 03 11

snap 2017-05-12 at 11 04 57

As soon as the linking is done with the (virtual) ha-bridge you can configure your rooms with your lamps/scene's/etc.

Enjoy your new lamp voice control!

bwssytems commented 7 years ago

Will put this in the wiki

RiRomain commented 7 years ago

I tried this technique but could only see my 3 Chromecast under device. No option to add a Hue in there.

Could you add a screenshot to help me find the correct menu? :-)

harolds commented 7 years ago

If you do see your chromecast then you should see your Home too. I can not help you with that. Maybe its not in the same wifi network?

RiRomain commented 7 years ago

HA-Bridge is on the same network, I can reach it from Remix OS using Chrome. Did you maybe already had some Hue registered before? Screenshot

harolds commented 7 years ago

No I had no Hue registered or linked. That process is something you do after your Google Home is registered in the Google Home App. So you first make sure your Home is registered in the Google Home App.

It should already be linked to your account in the Google Home App before you start the linking process. Are you using the same Google account? You can try to re-add your Home after resetting it.

volcan96 commented 7 years ago

One comment to add here...the remixOS instance I had couldn't find any chromecast or Google Home on my network until I changed the network setting in virtualbox from NAT to bridged. Not sure if this is unique to my set up or not but may be worth adding or having someone else confirm.

harolds commented 7 years ago

Thanks for the info. In my setup it worked with the default NAT netwerk setting. Maybe someone else can check it out and confirm if its working with NAT (or not).

nvuono commented 7 years ago

Is this still working for anyone? I'm setup on port 80 and used an old android device with the specified version of the Google Home app but the pairing step between Home and Hub never acknowledged. I'm worried that a Google Home firmware update may have disabled this workaround.

Noircogi commented 7 years ago

I just did this today (5/23/2017) using the 1.19.29 APK and it worked. I'm actually using the hueemulation binding in OpenHab, but hit this problem after I decided to do a clean-reinstall. My system had been working fine since I installed it in mid January, but the new Google Home app didn't see my server.

jenskastensson commented 7 years ago

I just did a pairing with GH v1.23.35.2, ha-bridge-4.1.2 on a Synology and port 80. It never fails.

Dilepa commented 7 years ago

Does not seem to be working... Its failing on trying to pair on ha-bridge

cherowley commented 7 years ago

Just tried it with the old apk and its not working for me either...

So, does this mean that google home is no longer any use for controlling our stuff? :(

jonohunt commented 7 years ago

I've tried it a few times using this method, and not working for me either.

harolds commented 7 years ago

For me it now also only works when using the network bridged mode in VirtualBox. I uploading the RemixOS (VirtualBox) image that I made with the needed apps to Google Drive. Please try this one when pairing the Google Home with HA-Bridge. And tell us if it worked for you.

Download my image here: https://drive.google.com/file/d/0B3z3kwacN1ljcks3dy1IbVVqQnM/view?usp=sharing

sjhill01 commented 7 years ago

Also not working for me - it fails to find the bridge, but it's accessible via chrome from RemixOS (using bridged networking, meaning the VM is just like any other network device).

cherowley commented 7 years ago

What are the settings for the vm? I can't get it to boot...

harolds commented 7 years ago

Oeps sorry my bad. I removed the virtual drive from the image. You need to add it back to make it work. Its even easier to just create a new virtual machine. Use the following settings:

And then add the virtual disk:

snap 2017-06-06 at 13 05 42

cherowley commented 7 years ago

Many thanks, got further but sticks on black screen for a few minutes then restarts in a loop...

sjhill01 commented 7 years ago

I switched it to NAT and it worked! ... but when I tried to do it a second time, it's back to not working.

harolds commented 7 years ago

So for some its working when NAT is active and for some when the netwerkt interface is in bridged mode. Good to know!

jenskastensson commented 7 years ago

I just verified the tests I did 15 days ago , it still works. The number of devices must not exceed 50 (Philips Hue API limitation)

cherowley commented 7 years ago

The virtual wont even start for me :/

Correct settings?

image

ashug987 commented 7 years ago

I followed all the instructions, but the Home app is not finding any device on the network. I am able to ping the Google Home and Other chromecast on the network. I have tried with both NAT and Bridge mode. Any help would be appreciated.

bwssytems commented 7 years ago

Updated this in the wiki. Closing this as it has been added, but you can keep using this for comments.

bimcio commented 7 years ago

A small hint for those trying to setup ha-brigde with Google Home and having problem with linking: please check the 'UPNP IP Address' parameter in device setting (in ha-brigde web interface) whether it matches your local network settings. I spend lot of time trying to configure pair GH with ha-brigde and it finally started working (even in the most recent Google Home app) when I set 'UPNP IP Address' correctly (in my case it was 192.168.1.0).

evildonkey1 commented 7 years ago

Bimcio, That ip address is that your router ip? Because i tried every thing and it wont pair. Im running HA Bridge on my synology in docker.

bimcio commented 7 years ago

No, I used the address of the machine (ubuntu server) where ha-bridge is running. Both server and google home are connected to the same network (GH via wifi, server via cable).

evildonkey1 commented 7 years ago

Oke, than i got that right. Mu HA Bridge is running on Synology. So i think the problem might be port 80. ill will go and play with that this weekend.

bimcio commented 7 years ago

I have apache on port 80 and I configured virtual host for /api urls, as described in the docu.

evildonkey1 commented 7 years ago

I got it too work, the problem was indeed port 80. my synology was using it. So after change some things. http://tonylawrence.com/post/unix/synology/freeing-port-80/ it paired right away.

mbnn commented 7 years ago

I've got HA Bridge also running on Synology (with the port 8008 > 80 rule as defined here: https://github.com/bwssytems/ha-bridge/issues/349 but when i go to the Google Home app on my iPhone i can only click Philips Hue and it will open the login from Philips?

boudicca99 commented 7 years ago

Link button now missing from hue-adapter.appspot.com/client...was there last weekend.

vasaru commented 7 years ago

Yeah noticed that too. Can't get home app to pair with ha-bridge anymore.

boudicca99 commented 7 years ago

i've timed it brilliantly I was waiting for the weekend to setup a new HA Bridge on port 80....life sucks.

What now brown cow........!!!!! tempted to send my new google home back...no local control no deal. :(

Painfully using IFTTT, hate it

bedo2405 commented 7 years ago

Damn it! I disconnected and now I can't re-connect :( So upset, I have just added more zwave that I can't control it google home :( IFTTT is so slow :( Anyone tried google actions / Dialogflow (aka api.ai) ???

ChutneyMary commented 7 years ago

I'm trying to get my head around how to set this work-around up....

The comments from about 6 days ago (14th October) suggests something has changed that stops the work-around working. I thought the whole point in using an old version of the Google Home app was that the 'Pairing' still worked with the old version. How can Google change the functionality of an 'old' app?

Can anyone add more detail about what has changed that stops the process working?

boudicca99 commented 7 years ago

the google home app uses dynamic content from assistant.google.com including the list of icons within displayed within the app ....they have changed the add hue link icon on their website to go to acccount.meethue.com and api.meethue.com with auth and token. (its just not part of the app but the website).....attempting to dns alias the app to go to hue-adapter.appspoty.com doesn't work either as website no longer has a link button nor code scan locally and to insult to injury. if you attemp to bypass assistant.google.com, the app no longer works. Well and Truly Stuffed!!!

ChutneyMary commented 7 years ago

Thankyou boudicca99! That clarifies things immensely. But bugger.... I'm too late also.

sandervanpelt commented 6 years ago

I was using habridge to control my domoticz lights. I removed my devices from the habridge, it was starting to become a mess. Not a good idea as after deleting the last device it was no longer paired with Google home. I have been looking into Google actions. An easier way is use Tasker with autovoice. The only difference is that I need to start with 'hey Google, ask autovoice to .....' No need to register devices, all devices in domoticz are available automatically :) Still looking into Google actions and natural voice, but at least I can control everything again through Google home

evildonkey1 commented 6 years ago

@sandervanpelt how did you do that. I got Tasker but i cant see how to add Domoticz.

sandervanpelt commented 6 years ago

I exported the XML, you can find it here: https://drive.google.com/folderview?id=1tpkEPfigK-CfWwq158sBjg8LmFlbHKDP

Create two variables: DOMOTICZIP DOMOTICZ PORT

Also you need to have autovoice and autotools plugins installed and link autovoice to your Google home (like you did with Netflix). In autovoice you can add as many phrases it needs to respond to and also different responses it should give.

It will retrieve the devicelist and search for the device you asked to switch on or off It will get the idx from the json returned, build the URL to switch on or off a device and give you an optional voice response. In case the device is not found it will tell it through your phone, but you could also cast it to you Google home (autocast plugin required)

I made some shortcuts in the Google home app so I don't need to say 'ask autovoice to...' I.e. switch on the living room lights -> ask autovoice to switch on the living room lights

Your phone needs to be connected to the same lan as Google home. If you want to use through your Google assistant on your phone when not on your home network just use a VPN (something you should always have on imo) or use a spare phone you always leave at home.

Let me know if that works for you.

On Nov 22, 2017 20:08, "evildonkey1" notifications@github.com wrote:

@sandervanpelt https://github.com/sandervanpelt how did you do that. I got Tasker but i cant see how to add Domoticz.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bwssytems/ha-bridge/issues/626#issuecomment-346446147, or mute the thread https://github.com/notifications/unsubscribe-auth/AYiDp-KPK95m4N7I_JE9WFLSla57QXkUks5s5HE2gaJpZM4NUHYp .

evildonkey1 commented 6 years ago

Oke add the xml to tasker. When i enable it. every thing seems fine. but when i check its tells me No active profiles. did i do some thing wrong. because the profile is enabled.

When i ask some thing, Its tells me oke commend send turn off tv light. And then nothing happens.

boudicca99 commented 6 years ago

Gone about this a different way for Google Home - Smartthings Hue Api (with hub) - HA Bridge - (Domoticz/Harmony/Hue/Other) just works! it also means I keep a common setup for Siri/Alexa/Local as well. All it means is Smartthings is just a broker but hey ho it works

edit: this is cloudy route. so still no local scanning for Google Home. Smartthings Hub/App scans for local devices, finds HA Bridge in Hue Api mode, and you link by the ha link button, Smartthings does the rest, the its a just adding smartthings device on Google Home. Its pretty straight forward, the details of the rest of this out of scope for this thread

kartono24 commented 6 years ago

Hi @boudicca99 can you please share some details? i would be interested in setting this up

evildonkey1 commented 6 years ago

@boudicca99, So you need a real Smartthingshub?

boudicca99 commented 6 years ago

Yah 50 quid or dollars at the moment, cheap as chips

ChutneyMary commented 6 years ago

What's the response speed like? I've been trying the Voxior service, but the response time is very slow.

boudicca99 commented 6 years ago

from google to smartthings.com from smarthings to its hub to ha_bridge and domoticz to hue hub... around a second. with anything cloudy, latency isn't that quantifiable, no doubt some days it will be a bit more sometimes its feels pretty quick...........way faster than IFTTT..thats for sure. to give a good idea, Google Home says "sure (There you go) turning the bedroom lights on"...they are on just around the "on" word.

cw-kid commented 6 years ago

So its now not possible at all to link Google Home to HA Bridge ?

I just got a Google Home Mini today and was hoping to link it to HA Bridge which in turns controls my lights and devices in Micasaverde Vera Z-Wave controller.

Guess I will be sticking with Alexa for now !

speeksel commented 6 years ago

Well there is a new way (other way) to get this done with your Vera controller; http://veraconcierge.appspot.com

Works not the same, but can do even more.

The support forum can be found here: http://forum.micasaverde.com/index.php/board,88.0.html

Let me know if this helps.