Python

Philips Hue

Philips Hue is a system of Zigbee based intelligent lights that can be controlled by the Hue Bridge. Python scripts

Link to Qhue library

#!/usr/bin/python

from os import path
from qhue import Bridge, QhueException, create_new_username

# Connect to the bridge with a particular username from qhue import Bridge
username = "myusername"
b = Bridge("10.10.10.10", username)

# print b.url
lights = b.lights   # Creates a new Resource with its own URL
#print lights.url    # Should have '/lights' on the end
print b.lights[1]()
print b.lights[4]()
# put light on max brightness and color yellow
#b.lights[4].state(on=True,bri=255, hue=9000)
b.lights[4].state(on=True,bri=128, hue=9000)
#b.lights[4].state(on=False)
#print bridge config
#print b.config()