Skip to main content

Python client for Philips Hue bulbs

Project description

hue_api

Build Status

This is a simple Python API client for Philips Hue lights.

First time Setup

To use this api client for the first time, use:

from hue_api import HueApi
api = HueApi()
api.create_new_user(bridge_ip_address)

Where the bridge IP address is the addres on the local network of your Philips Hue bridge. For this to succeed, you must first press the link button on the bridge.

The response will be saved to the module's install directory, and you can subsequently call api.load_existing() to access that saved user and IP address the next time you instantiate a HueApi object.

Lights API

This client provides functionality to control lights currently linked to the hue bridge. Calling api.fetch_lights() populates an array of HueLight objects stored in api.lights.

You can then call api.list_lights() to get a list of the lights available on the network.

See documentation for details on what controls are available.

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

hue_py-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

hue_py-0.1.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file hue_py-0.1.0.tar.gz.

File metadata

  • Download URL: hue_py-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

File hashes

Hashes for hue_py-0.1.0.tar.gz
Algorithm Hash digest
SHA256 37c94fd7f16301b1e057f9626e7386ca4fd9be8794a4987734923bde3bc1b07f
MD5 aa5e9cea84060af3016c7d5f18e8dd4c
BLAKE2b-256 8f5fde85814f09dfbc69cfac11ca148adc0a08811391cf6018c243ca2f31e0b5

See more details on using hashes here.

File details

Details for the file hue_py-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hue_py-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

File hashes

Hashes for hue_py-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e13652dfbb51cbf58ba7a62ca4d6f2b89dfa77026e11a7e1ee82cf837473204
MD5 fe2420dfca0a21a829333e87a788c145
BLAKE2b-256 449f7faa3879754b6c9ab19065b10fc36573a4809fee3970e9cc424b09d4f0c5

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