Philips Hue with MLGW / BeoLiving

13 replies

I was curious if any other BeoWorlders are using Philips Hue for their home lighting. I've replaced all of my lights with Philips Hue and absolutely love the system. The light scenes that you can design are really beautiful. Now that I have a MLGW, it would be nice to at least turn off the lights when pressing the CINEMA command or even be able to select from a few light scenes. While Hue is not directly supported by MLGW, I found some instructions on integrating Philips Hue via HTTP with OpenRemote. Perhaps it might be possible to integrate this with MLGW?

http://www.openremote.org/display/docs/OpenRemote+2.0+How+To+-+Philips+Hue

I dont know if you are into it?

For our home I created a KNX-Hue gateway using a rasberry pi, linux and a free software called smarthome.py. Having done that, I am able to control Hue via the mlgw.

 

Hi Msinn,

could you please share how you achieved the KNX-Hue MLGW, I am sure a lot of people would be interested.

thanks and regards

Toby

This sounds very promising!

A short overview of my setup:

smarthome.py is an open source software wriiten in Python. It runs onalmost any kind of hardware (Windows PC, Mac OS X, Linux).

Support: http://knx-user-forum.de/smarthome-py/ Homepage: http://mknx.github.io/smarthome/

I use a small computer with an Arm processor. A ready to go image for the Raspberry Pi is availiable from the authors. This image includes a visualisation (smartVISU). You can use the visualisation or leave it alone an use only smarthome.py.

Smarthome.py on the Raspberry Pi connects to KNX via an KNX-IP interface which can handle multiple tunnels. The mlgw connects through the same KNX-IP interface.

Smarthome.py on the Raspberry Pi connects to the Philps Hue gateway which is part of the Hue starter kits.

 

Smarthome.py comes with a plugin for KNX and a plugin for Hue. To implement the gateway, I had to write a configuration file. There are two ways I use for interfacing:

1. Define scenes, which set the Hue lights to the state (colour, saturation, brightness) I want and define a KNX group adress on which smarthome.py listens.

2. Define KNX group adresses for each (or a couple of) Hue lights, and make smarthome.py act like a KNX dimmer for these Hue lights.

After you have your Raspberry Pi up and running with smarthome.py the configuration for both ways is done through text files on the Raspberry Pi.

For those of you that haven't got lost (in the technical details) and are willing to explore this further, don't hesitate to ask.

 

Greetings

Martin

Hi martin

Thanks for sharing your experience.

I suppose it can be installed on any linux computer with python language not only a rasperri py.
Bespoke Custom rs232 strings, although time consuming to configure, allow the mlgw to communicate with virtually anything in a very reliable way.

Hi olvisab,

 

as I wrote the software can be installed on Windows, Mac OS X or Linux. I went for a small Unit with an ARM processor because it has a small energy footprint. I personally dont use the Raspberry Pi, since I needed more computing power I went for a multi core ARM cpu. I referenced the Raspberry Pi because the authors made an image, which makes the setup quite easy.

When you are installing it from scatch, you need to install python3, eibd (this software implements the interface to KNX), smarthome.py and the smartVISU (if needed).

Greetings

Martin

Hi StUrrock,

I tried it the custom strings way but I was not successful. Since I wanted a further integration into my bus system I abandoned the customs string route and went for a full KNX integration.

 

For the custom strings the string must be something like this:

PUT /api/<hueuser>/lights/3/state HTTP/1.1\0D\0A{\"on\": true, \"bri\": 128, \"ct\": 345}\0D\0A

"<hueuser>" is an user that has been authorized in the Philips Hue Gateway

"3" is the id of the light I want to turn on

{"on": true, "bri": 128, "ct": 345}     is the Json representation of the command: turn on, to 50% brightness and a warm white

 

But I couln't get this one working.

 

Greeings

Martin

Based on the rumours, you may want to wait until after Apples WWDC where it is said they may enter home automation.
or
BeoWorld Gold Membership card
Join BeoWorld

Register to access the forums, reference material, and exclusive member benefits — including our monthly prize draw.

Become a Member

December 2026 Prize Draw

Gold Members Only

As a Gold member you're automatically entered into our exclusive prize draw — your chance to win iconic Bang & Olufsen products. A unique benefit of BeoWorld Gold membership, every draw brings a new opportunity to win something special.