armzilla / amazon-echo-ha-bridge

emulates philips hue api to other home automation gateways
Apache License 2.0
721 stars 168 forks source link

Amazon HA bridge setting for working with OpenHAB and Philips Hue #72

Open monajalal opened 8 years ago

monajalal commented 8 years ago

So in the following photo I am unsure what should be the IP in front of On/Off URL, should it be the Hue hub IP?

I am running OpenHAB on port 8082 and Amazon HA Bridge on port 8080 simultaneously and when I browse to localhost:8080/configurator.html I am not sure how to set the setting so that it would work for Philips Hue Color light bulbs.

Any help is really appreciated.

screen shot 2016-03-25 at 7 35 50 pm

Also I am unsure what port should I select for the eVera Request Port? As I said I am using Philips Hue hub.

eschizoid commented 8 years ago

So in the following photo I am unsure what should be the IP in front of On/Off URL, should it be the Hue hub IP?

First, make sure you have Hue binding configure correctly: https://github.com/openhab/openhab/wiki/Hue-Binding

And then you can treat each Hue bulb as a switch, something like the following:

{
  "name": "Hue",
  "deviceType": "switch",
  "onUrl": "http://{openHabIP}:{openHabPort}/CMD?Hue=ON",
  "offUrl": "http://{openHabIP}:{openHabPort}/CMD?Hue=OFF"
}
eschizoid commented 8 years ago

@lamiastella However I don't know how to dim the lights. My guess is that you will have to set up a openHAB virtual switches.

Let me know if you figure out that one :wink: