Skip to main content

zhue

This library eases the interaction with Philips Hue devices

from zhue import Bridge

# upnp/nupnp discovery
b = Bridge.discover()

# register a new user on the Hue bridge
b.create_user()

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

# query lights
b.lights

# turn light on and off
b.light('outdoor').on()
b.light('outdoor').off()

# query groups
b.groups

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

# query sensors
b.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')]

Metadata

Release files for zhue 0.9.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zhue 0.9.5
File Size Uploaded Provenance Actions
zhue-0.9.5.tar.gz 10.2 kB Without provenance Details for zhue-0.9.5.tar.gz

Release files / zhue-0.9.5.tar.gz

Download URL zhue-0.9.5.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
40493c60821dac9f1a37619bffa600494abcbd865e7d3ed55dfe1cd21b5bf687
BLAKE2b-256 checksum
How to use checksums
428ce5838b6605b6779d9d303f431a4d8f57e0eedb2d75ffc44cf1e148a42808
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for zhue 0.9.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page