Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Python SDK for Philips Hue devices

Project description

This library eases the interaction with Philips Hue devices

from zhue import Bridge

# upnp/nupnp discovery
b =

# register a new user on the Hue bridge

# or use a predefined username
b.username = 'MY_USERNAME'

# query lights

# turn light on and off

# query groups

# turn all lights belonging to a group on'living').on()

# query sensors

# get temperature readings
[x.temperature for x in b.temperature_sensors]

# get light level readings
[x.light_level for x in b.light_level_sensors]

# get battery levels
[x.config.battery for x in b.sensors if hasattr(x.config, 'battery')]

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for zhue, version 0.9.5
Filename, size File type Python version Upload date Hashes
Filename, size zhue-0.9.5.tar.gz (10.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page