Skip to main content

Hue

HSYCO integrates the Philips Hue wireless bulbs through their bridge device connected to the local network.

HSYCO Configuration

Add a HUE I/O Server in the I/O Servers section of the Settings and set its parameters:

High Availability

  • Shutdown when inactive: defaults to false.

Options

IDDefaultValuesDescription
startupeventsfalsetruegenerate IO events also during the driver’s start-up phase
falsestart generating events only after HSYCO is aligned with the current status of the system
mac<mac_address>if specified, the driver will connect to the bridge device with the corresponding MAC address. If not specified this driver will connect to the first bridge found on the local network
pollinterval10n > 0the data acquisition interval, in seconds
masterfalsetrueHSYCO will force its saved state to the lights, overwriting eventual changes from external causes
falseHSYCO will not force the saved state

Setup

The first time HSYCO connects to the Hue bridge, an authentication procedure is required. Configure the HUE I/O Server as described above and restart HSYCO. After few seconds the datapoint 'authentication' of the I/O Server will be set to '1'. At this point you have 30 seconds to manually press the button on the Hue bridge. From now on, HSYCO is authenticated and this procedure will be no longer needed.

N.B. the authentication is linked to the ID assigned to the HUE I/O Server. Changing the ID will require performing the authentication procedure again.

Datapoints

Each Hue bridge can be connected to up to 50 light bulbs. Each bulb is assigned a numeric ID by the bridge. The driver generates several datapoints for each bulb having the prefix light.<n>, where <n> is the numeric ID of the bulb.

IDValueR/WDescription
connectiononlineRconnection established
offlineRHSYCO can't connect to the device
light.<n>.on1Rthe light <n> is on
Wturn on light <n>
0Rthe light <n> is off
Wturn off light <n>
flipWinvert the state of light <n>
light.<n>.reachable1Rthe light <n> is connected to the bridge
0Rthe light <n> is out of reach
light.<n>.brightness1 ... 254Rthe brightness of light <n> is set to the reported value
Wset the brightness of light <n> to the specified value
light.<n>.saturation(1)0 ... 254Rthe color saturation of light <n> is set to the reported value
Wset the color saturation of light <n> to the specified value
light.<n>.hue(1)0 ... 65535Rthe color hue of light <n> is set to the reported value
Wset the color hue of light <n> to the specified value
light.<n>.rgb(1)<r>;<g>;<b&gtRthe color of light <n> is set to the reported value (expressed as RGB value, e.g. "12;100;255")
Wset the color of light <n> to the specified value (expressed as RGB value, e.g. "12;100;255")
light.<n>.dimmeroffRthe light <n> is off
Wturn off light <n>
1% ... 100%Rthe light <n> is on and its brightness is set to the reported value (in percentage)
Wturn on light <n> and set its brightness to the specified value (in percentage)
onWturn on light <n> and set it to its last state before going off
light.<n>.colorloop(1)1Wset light <n> to change its color in a loop
0Wstop the color loop on light <n>
light.<n>.blinksingleWperform a single blink on light <n>
longWperform approximately 15 blinks on light <n>
0Wstop blinks on light <n>
authentication1Rthe Hue bridge is waiting for the authentication procedure to be performed
0Rdefault value

Note 1

Not available on Hue White devices.

User Interface

To control a Hue light as a dimmer, i.e. to change its brightness without changing color, add a slider or a button object to your project page and set its address field to the corresponding dimmer datapoint:

Hue UI 1

To control a Hue light (not a Hue White) using its RGB channels use a colorpicker object and set its address to the corresponding rgb datapoint:

Hue UI 2

Release Notes

3.7.0

  • added support for Hue White devices

3.6.0

  • added support for Philips Hue bridge 2.0 (Java Hue SDK 1.8.1 API)

3.5.0

  • initial release

Philips and Philips Hue are registered trademarks of Koninklijke Philips N.V.