Bash scripts that can interact with a philips hue light
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Philips Hue

Philips hue combines brilliant LED light with intuitive technology. Then puts it in the palm of your hand.

Together, the bulbs, the bridge and the app will change the way you use light. Forever. Experiment with shades of white, from invigorating blue/white to cozy yellow/white. Or play with all the colours in the spectrum.

hue can wake you up. Help protect your home. Relive your favourite memories. Improve your mood. Even keep you informed about the weather.

Not just stunning, hue is smart too. And it’s tailored for you.

Philips Hue bash script

With this script you can interact with the Philips Hue lightbulb or Philips Hue LED strip. You can change the brightness, saturation and the hue of the lights, and create every color you desire.

Usage:   <light|group> <number> <action> <value> [<value>]
power usage    : light 1 state <on|off>
saturation     : light 1 sat <0-255>
brightness     : light 1 bri <0-255>
hue            : light 1 hue <0-65535>
xy             : light 1 xy <0.0-1.0> <0.0-1.0>
ct             : light 1 ct <153-500>
color cycle    : light 1 cycle <0-65535> <0-65535>

This script needs some modification to work for you. The only things you need to edit are:

# global variables
hueBridge=''      # this is the ip-address of the hue bridge
hueApiHash='huedeveloper'  # this is you hue api user.

Using the emulator

$ java -jar HueEmulator-v0.7.jar
$ sudo java -jar HueEmulator-v0.7.jar

The script uses default port 80 if you don't change this, you need to run the emulator as root