Control Philips Hue (and eventually other stuff) from the command line.
Clone this repo:
$ git clone https://github.com/hunterforsyth/smarthomecontroller.git
config.h to pair Hue Bridge, instructions inside.
$ sudo make install
Retrieve a list of all connected lights by their lightnum:
$ home listlights
To control a single light:
$ home light [lightnum] [r],[g],[b]
$ home light 1 255,0,255
To control multiple lights:
$ home lights 1,2,3 255,0,255
$ home lights all 255,255,255 $ home light 1 red $ home lights all off
$ home help for more info.