Bash scripts that can interact with a philips hue light
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
HueEmulator-v0.7.jar
hue.sh
readme.md

readme.md

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:            hue.sh <light|group> <number> <action> <value> [<value>]
==========================================================================
power usage    :  hue.sh light 1 state <on|off>
saturation     :  hue.sh light 1 sat <0-255>
brightness     :  hue.sh light 1 bri <0-255>
hue            :  hue.sh light 1 hue <0-65535>
xy             :  hue.sh light 1 xy <0.0-1.0> <0.0-1.0>
ct             :  hue.sh light 1 ct <153-500>
color cycle    :  hue.sh 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='10.0.20.2'      # 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