HA Bridge use with Google Home ....?

I have emulated_hue that works perfectly with Amazon Echo. Since emulated_hue can only work with either Amazon Echo or Google Home, now I am looking for a solution for using GH.

My goal to have GH work also for switches/scenes/script and lights (that are not Philips Hue lights).

So it seems a route is using HA Bridge.

So I installed it and now in 192.168.1.239:80 I can access HA Bridge consolle.

Sorry newb here I don’t know where to start … I see

  • ON URL
  • OFF URL
  • DIM URL
  • HTTP HEADERS

how to find which values to put there???

Use Home Assistant’s API. Here’s some hints to figure out the correct URLs

Ahh yes thanks now I remember.

Mmhhh but I have errors. Maybe related to letsencrypt? (BTW don’t know where the error log is, its not in habridge directory or subs)

Request Error, Pleae look in your habridge log: error {"type":6,"address":"/lights/3","description":"Error on calling url to change device state","parameter":"/lights/3state"}

Test your URLs in Postman or similar to make sure you’ve got the correct working URL before trying in HA Bridge.

I’ve guessing from your 2 minute response time that you didn’t really experiment. :frowning:

An easy way to handle authentication is to pass it on the URL
https://REDACTED.duckdns.org/api/services/light/turn_on?api_password=PASSWORD

There should be a body field for the JSON.

SO the commands are correct …

still get this error

Request Error, Pleae look in your habridge log: error {“type”:6,“address”:"/lights/1",“description”:“Error on calling url to change device state”,“parameter”:"/lights/1state"}

IIRC, If you call light_on without an entity_id, it turns on all lights.

So that’s a prob with HA Bridge, not with HASS, per se. Find that other thread an do some research.

which?
Had a look at around 10, no luck so far

If you speak about this solution?

But I have Java 1.8.0_65 installes\d

pi@raspberrypi:~ $ java -version
java version “1.8.0_65”
Java™ SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot™ Client VM (build 25.65-b01, mixed mode)
pi@raspberrypi:~ $ javac -version
javac 1.8.0_65
pi@raspberrypi:~ $

Ok trying this.

Now Java has a newer version. Hope I did all alright

root@raspberrypi:/opt# sudo update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_121/bin/javac 1
update-alternatives: using /opt/jdk1.8.0_121/bin/javac to provide /usr/bin/javac (javac) in auto mode
root@raspberrypi:/opt# sudo update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_121/bin/java 1
update-alternatives: using /opt/jdk1.8.0_121/bin/java to provide /usr/bin/java (java) in auto mode
root@raspberrypi:/opt# sudo update-alternatives --config javac
There is only one alternative in link group javac (providing /usr/bin/javac): /opt/jdk1.8.0_121/bin/javac
Nothing to configure.
root@raspberrypi:/opt# sudo update-alternatives --config java
There is only one alternative in link group java (providing /usr/bin/java): /opt/jdk1.8.0_121/bin/java
Nothing to configure.
root@raspberrypi:/opt# java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) Client VM (build 25.121-b13, mixed mode)
root@raspberrypi:/opt# javac -version
javac 1.8.0_121
root@raspberrypi:/opt#

It works!!!

But now in order to put stuff in there and have ONLY Google Home get it, I should put emulated_hue false for any component I put in HA Bridge, and so only GH gets it. Correct?

EDIT GH is not picking it up … I guess it takes some time