openHAB and lightwaveRF light dimmer, Philips Hue, node red & ha-bridge

HA-Bridge with Alexa to control Philips Hue bulbs

Here is the less successful part - I’ve not been able to discover (using an Echo Dot gen-2) my ha-bridge.

You might note “Why would you use an HA-Bridge if you already have a Philips Hue Bridge?” - well the original idea was to control a lightwareRF device via MQTT - which was fairly straightforward to setup as a device. I had issues coming up with the right setup to add Philips Hue bulbs to the bridge in an attempt to see if it might prompt the Echo Dot to discover the Lights - turned out that was a completely separate problem (see next post), and if your ha-bridge is working adding an MQTT device is fairly straightforward.

Install instructions are here:https://github.com/openenergymonitor/emonpi-ha-bridge

I’ve upgraded by pulling down later .jar files and updating the /etc/systemd/system/habridge.service file to reference it.

And the bit I found a bit tricky was setting up the devices.

I add the following for how to do it via HTTP (and note the creation of the secret in the post above):

On Items (light 1 - for Off, change the body to {“on”:false}):

Item: HTTP Device
Target Item: http://<bridge-ip>/api/<secret>/lights/1/state
HTTP Verb: PUT
HTTP Body: {"on":true}
Content Type: application/json

Dim Items:

Item: HTTP Device
Target Item: http://<bridge-ip>/api/<secret>/lights/1/state
HTTP Verb: PUT
HTTP Body: {"on":true,"bri":"${intensity.percent}"}
Content Type: application/json

I don’t know the “proper” way of doing it, so any notes gratefully received.