Skip to content

python module for interacting with the phillips hue lighting system inspired by https://github.com/quentinsf/qhue

Notifications You must be signed in to change notification settings

whereismyjetpack/hue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
Jan 9, 2016
Jan 10, 2016
Jan 10, 2016
Jan 9, 2016

Repository files navigation

hue

python module for interacting with the phillips hue lighting system

Usage

from hue import Hue

url = 'http://1.2.3.4' # IP address of your HUE base station
api_key = '82022f5631d9435084b0417ead31412a' # user key obtained after registering (http://www.developers.meethue.com/documentation/getting-started)

# create Hue object
h = Hue(url=url, api_key=api_key)

# turn light off/on by name
h.off(light_name='Living room 1')
h.on(light_name='Living room 1')

# turn light off/on by id
h.off(light_id=1)
h.on(light_id=1)

# get a lights id
h.get_light_id(light_name='Living room 1')

# change a lights brightness (value from 1 - 254)
h.on(light_id=1, brightness=200)

# put the light in alert state (flashes for 15seconds)
h.on(light_id=1, alert=True)

About

python module for interacting with the phillips hue lighting system inspired by https://github.com/quentinsf/qhue

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages