Extra Vegetables Philips Hue Driver V8
Extra Vegetables Philips Hue Driver V8
Sidlesham
Chichester PO20 7LX
United Kingdom
UK Tel: +44 (0)20 8144 9354
US Tel +1 (801) 285 9354
www.extravegetables.com
This driver is for the Philips Hue LED lighting system. The Hue system consists of
individual LED lamps that are direct replacements for standard lamps. The Hue lamps are
color changing and each lamp is individually addressable.
Although the Hue system uses a Zigbee mesh this is not directly compatible with
Control4. However by using the Hue bridge included with the Hue Starter pack and this
driver it is possible to control the Hue system from Control4.
We have provided different drivers in the package. These enable different levels of UI
control and enable you to choose the driver that best meets your customers’
requirements.
The Hue system is different from other color changing lighting systems that you may be
familiar with and it is important that you understand these differences and follow the
best practice integration methodology.
• It can be subtle
Many color changing lighting
systems such as RGB lighting
strips are good at producing
vibrant and dramatic colors.
The Hue system is designed for
more subtle lighting.
• It is not RGB
Most color changing strips use Red, Green and Blue LEDs (sometimes augmented
with white); Hue does not. It uses LEDs that are designed to mix the range
shown. Although our driver provides RGB sliders these are then converted to the
color space shown above.
• Ensure the Hue Bridge is installed within range of the Hue lamps.
Although the lamps form a Zigbee mesh the bridge must be in range of the lamps.
Bathe in Blue™
A subtle mix of cool blue colors. Ideal for pools and other water areas.
Graceful Greens™
An ideal way to start the day. Graceful greens to sooth the soul and provide a gentle
awakening.
Raging Reds™
A fireside companion. Hot, reds oranges and yellows.
Purple Parade™
Girls may not always like pink; they usually prefer purple! A selection of the finest
purples a set of LEDs can produce.
Mellow Yellow™
Especially for the Hue system to make use of its subtle warm pallet of yellows.
Lighting Groups
Previously Hue lamps could either be controlled individually or all the lamps on a bridge
could be controlled together. Now it is possible to create groups of Hue lamps and
control these together without a popcorn effect. So if you have lamps in different rooms
then this enables you to control them together. The previous All Lamps drivers now
enable you to select a group or use 0 as the All Lamps group.
Predefined Colors
We have introduced the ability to quickly set some basic colors and white light presets.
This enables some colors to be set without needing to define co-ordinates.
Presets
This is the real time saver. Presets make it easy to save and recall Hue scenes defined
on the Hue app. Now you set the Hue scene, press Store Preset and all the lamps will
save their current state. No more writing down numbers and transcribing them. This
also enables you to provide custom save buttons so if the customer edits a Hue scene on
the App they can save the changes to the Control4 system themselves.
Limitations
1. Color Limitations
The Hue system is capable of over 65,000 different colors. Control4 lighting
enables 0-100% variability and on the touch panels this is only available in 5%
steps. In order to provide the widest choice of colors from the UI we provide RGB
faders together with brightness. However this can only ever provide a more
limited selection of colors. The drivers however do enable an exact color to be
selected via custom programming.
Interface
This driver has been tested with the standard Philips Hue Bridge. It is not designed,
tested or supported with any other interface.
Consequently these lamps will not react to the color temperature drivers either. These
can be controlled either using the full color driver or the brightness driver. For simplicity
we would recommend the brightness driver with colors being set via lighting scenes.
These lamps always set light color via the xy method and the drivers will report these co-
ordinates via the Action in the same way as the Hue lamps.
Bridge Driver
There are a number of drivers included in the zip
package. Copy all of these to your My Documents
– Control4 – Drivers folder.
Please note that from Version 8 onwards you will not see Activation Key fields as there is
no longer a requirement for an Activation Key.
Automatic Updates is set to Off by default. However we recommend that you turn this
On so that your drivers automatically update if a new version is available.
You should then type in the IP address that you set for your Philips Hue Bridge. You can
find this from your routers DHCP table or by typing www.meethue.com/api/nupnp when
your computer is connected to the same network as the Hue. It is important that you set
up a MAC address based reservation on the router for your Hue Bridge. This will ensure
it always receives the same IP address if the router is rebooted or there is a power
outage.
Debug mode is only used if we request you to switch this on when diagnosing any
problems you may be having.
When you first type in the IP address of the bridge you will receive a message in the
Driver Information box that the bridge has been found but not linked. If you don’t see
this message then the IP address you have entered for the Bridge is incorrect.
IF NOT REPEAT THE PROCESS. THE DRIVER WILL NOT WORK UNTIL IT IS LINKED
WITH THE BRIDGE.
Select the Actions tab again and press the Show Lights Available button. Now switch to
the Lua tab and you will see all the available lamps and their addresses. Copy and paste
this to a text editor as you will need this information to set up the lighting drivers.
There are 13 groups that you can define. There is also a Group 0 which will control all of
the lights attached to a bridge.
To define a group, type the addresses of the lights into the property for each group
separated by a comma. You can then use these groups in the Lamp Group Brightness
and Lamp Group White Warmth drivers.
For ‘White Light’ applications you can use the color temperature drivers which have the
same attributes as the Lamp Brightness except they provide color temperature rather than
brightness control.
This driver also enables any lighting scenes that have been
set up on the Hue App to be re-created exactly in Control4
with simple custom programming.
You now need to provide the address for this Hue lamp in the
box provided.
Once you have pressed ‘Set’ to confirm the address then you
should see the name of the Lamp shown below the address.
Check that the name of the lamp is what you expect – otherwise you may have typed
and incorrect address.
The Switch Off at Zero function enables you to decide if you want the Hue lamp to
switch off when it is at Zero Brightness. With the Hue system 0% brightness does not
mean Off, however by setting this option to Yes the driver will turn the lamp off at 0%
Brightness which is what many customers will expect.
There are also standard Control4 properties for the initial Preset Level of the lamp and the
Ramp Up and Down rates associated with On and Off.
Extra Vegetables Philips Hue Lighting Driver V8 Page 10 of 24
Now when you refresh the Navigators you will see the light on your Control4 UIs. You
should test by setting a scene using the Philips App and then using the Control4 fader to
adjust the brightness of the light.
Scene setting is discussed in the next section and this driver can be used in advanced
lighting scenes.
You can ramp this light up or down from a keypad or remote control. If can also be
ramped in a Lighting Group. Hue does not have a dedicated ramp command so these are
sent as a series of commands to the Hue system. Ramping may not be as smooth as you
might like. Setting a level for a group from a touch panel or mobile app sends the new
level in turn to each lamp.
We suggest that this driver is only used for customers who insist they need color control
on their C4 interfaces. Even so be prepared to swap to the Single Lamp Brightness
Driver if they get confused.
This driver is also found under Light, Manufacturer Philips and is the Philips Hue Lamp
driver.
Extra Vegetables Philips Hue Lighting Driver V8 Page 11 of 24
When you add it to your project it will appear as four items as shown below.
You will find this under Light V2, manufacturer Philips and will come into the project as a
single lamp.
You need to set the number of the group that this driver will control. 0 is All Lights and
the other numbers refer to the groups defined on the main driver.
Custom Programming commands are available to set the exact color in all possible ways
and to start the auto color changing programs. See the Single Lamp Brightness Driver for
more details on how these work.
This driver doesn’t turn the light On or Off it just adjusts the white ‘color’. To control the
brightness of the light and to turn it on or off then add the Single Lamp Brightness Driver
to the project.
You can add this driver and the Lamp Group Brightness driver to provide full simultaneous
control of the color temperature and brightness of all or a group of lamps connected to
the bridge.
You must provide the group address, 0 is all lights and other numbers refer to the groups
you define on the master driver.
Scene setting
As the Hue system is all about different colors, lighting scenes are an important part of
the integration.
Lighting Presets
The most common use of scenes with the Hue drivers is
to copy the scenes defined using the Hue App. In
version 7.1 we have introduced the Lighting Preset
concept into the driver which makes this process very
simple.
All Hue drivers in the project will now store their current
levels in the preset you have selected.
These Store preset actions are also available on the individual light drivers in case you
only want to store the levels of selected lights in the preset.
Note these lighting presets do not automatically appear on the Control4 UI as lighting
scenes.
You can link a preset to a Control4 scene by adding in some programming when the
Control4 scene is invoked.
In the example above we have created a macro that would stop any color changing that
was running on the Hue system and then recalled a Hue preset.
The customer needs to set the revised Hue scene using the Hue App and then press the
custom button you provide.
If you set the scene using the standard faders you can use the standard Control4 Lighting
Scenes Agent. If you want to include channels in an Advanced Lighting Scene you
should first create the scene as a normal Lighting Scene and then convert it to an
advanced lighting scene. Note you cannot use advanced properties like delays or
repeats.
You also have the opportunity to set and exact color for each channel using the xy co-
ordinates.
To then set an exact scene you can set the scene up on the Control4 agent so that it
only includes the Brightness channel of the Hue lamp. Then add in additional
programming when the scene is activated/executed.
With this driver you have three different ways to set the color on the Hue lamp which
enables you to mimic any of the scenes set up on the Hue Apps.
xy co-ordinates
This is as per the setting on the Single Lamp Full Color Driver.
Hue, Saturation and Brightness
The Hue is a setting between 0 and
65535. Both 0 and 65535 are Red,
25500 is the purest Green the lamp can
produce and 46920 is Blue.
Color Temperature
This setting is for setting a white color
from cool to warm (effectively blueish,
white and yellowish). This is the Mired
Color temperature of the light. 2012
Hue lights are capable of 153 (6500K)
to 500 (2000K).
The logic is to add this programming when the variable Scene Step changes. Then check
which step of the scene is active and from there select the exact color you require by any
one of the methods available.
For the Single Lamp Full Color Driver the color can only be displayed if the scene was set
as an xy co-ordinate. In this case it will show the exact co-ordinates and brightness and
the closest possible 4 Fader percentages. You can then use these figures to set the
Control4 scene using the Lighting agent and then the exact color using custom
programming.
If using the Single Lamp Brightness Driver then if the setting was via xy you will see the
exact co-ordiantes and brightness figures.
If the setting was made using Color Temperature then that will be shown along with the
Brightness
You can then use the appropriate custom programming command to match the colors.
The Hue system lends itself to this application and on this system running automatic
color changing from Control4 has a very slow system overhead. You can run long slow
fades between colors as all the fade processing is handled by each lamp.
These random color changing programs are available on both the 4 Fader and Single
Lamp Brightness Drivers. The Mellow Yellow effect is only available on the Single Lamp
Brightness Driver.
As an example we will use a Control4 three button keypad and will use the top button to
switch the Relatively Random color changing on and off. We will also need a Control4
Boolean variable that we have called ‘Random Colors’. So the basic programming of the
button when it is pressed would be as shown below.
Now we need to add the auto color fading commands to the program. If you select one
of the RGB fittings on the right hand side in the Actions pane you will see the usual
commands associated with a light plus some specific commands for this device. Note it
doesn’t matter whether you select the Red, Green, Blue or Master Channel.
The Style drop down box allows you to choose one of the available effects.
Once you have chosen the fade and hold times for the effect add this to the
programming. Then add the Stop Random Colors code to the ‘off’ click of the switch.
You will then need to make sure these lighting scenes are ‘visible’ in the room on the
Navigators. By default Control4 will hide these as they have no real lights in them.
Consider a Living Room which has a single circuit of light for table lamps which are
controlled by a wall switch. If you simply replaced the lamps in the table lights with Hue
lights you would still need to make sure that the master wall switch was on. Horror of
horrors this may involve getting off the couch!
Integrating with Control4 enables you to replace that wall switch with a Control4 wall
switch as well as changing the lamps to Hue Lamps. This now enables complete control
whilst retaining the ability to manually switch the circuit On and Off at the wall.
When setting up any of the lighting scenes for the room make sure that you include the
master wall switch in them and set it On. This means that whenever the scene is set the
table lamp circuit is energized. You can include the master wall switch in any ‘Room Off’
scene too.
You need to remember that the Hue lamps do not retain their color state when they are
power cycled; they will power as white.
Alternatively you could get more involved and depending on the time of day set one of
the lighting scenes. So if the customer switches on the lamps in the morning they get a
bright wake up scene, whilst if they switch it on in the evening they get a relaxing warm
lighting scene – all from their Control4 switch.
Remember you must NEVER connect the Hue lamps to a dimmer or dimmer switch.
Connections
Check also you connected the driver both physically and in Composer to the correct IP
address.
Can you control the lights using the Philips Hue software? If not check your Hue bridge
and installation.
Now check by double clicking on one of the Lights in system design to see if it can be
switched on and off.
If the lights switch On and Off from the Composer interface the problem lies with the
programming of the keypad. Work through the examples again.