Skip to main content

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.

Source Distribution

zhue-0.9.5.tar.gz (10.2 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page