Skip to main content

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.

  • Complete Documentation

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

BeautifulHue-0.1.2.tar.gz (5.7 kB view details)

Uploaded Source

File details

Details for the file BeautifulHue-0.1.2.tar.gz.

File metadata

File hashes

Hashes for BeautifulHue-0.1.2.tar.gz
Algorithm Hash digest
SHA256 788b61c28054ae30478154df7116f6884b3bc8ebb77dcd17390d5c04258905da
MD5 3c423d2c006a16233784f37c7fb457b9
BLAKE2b-256 4b49af59e127eec2212d991ffc9e78e8283b20b55fe2c9caecafe0d765647938

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page