A Python module for the Philips Hue Lighting System API.
Project description
Installation
Using pip:
pip install beautifulhue
Using setuptools:
easy_install beautifulhue
Using source
python setup.py install
Example
"""Update light #3's state."""
from beautifulhue.api import Bridge
# Connect to a Philips Hue bridge.
bridge = Bridge(device={'ip':'bridge_ip_address'}, user={'name':'your_username'})
# Define the target resource, and its new related states.
resource = {
'which':3,
'data':{
'state':{'on':True, 'ct':222}
}
}
# Signal the bridge to execute your command when appropriate.
bridge.light.update(resource)
Features
Complete Philips Hue API v1.0 coverage.
Consistent method names.
Designed to get things done.
JSON/Pyton dictionary resource representation.
Default response structures are closely aligned with the official Philips Hue API response structures.
Extensible design.
Fine-grained system state control.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
BeautifulHue-0.1.2.tar.gz
(5.7 kB
view details)
File details
Details for the file BeautifulHue-0.1.2.tar.gz.
File metadata
- Download URL: BeautifulHue-0.1.2.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
788b61c28054ae30478154df7116f6884b3bc8ebb77dcd17390d5c04258905da
|
|
| MD5 |
3c423d2c006a16233784f37c7fb457b9
|
|
| BLAKE2b-256 |
4b49af59e127eec2212d991ffc9e78e8283b20b55fe2c9caecafe0d765647938
|