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.3.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

hue_py-0.3.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hue_py-0.3.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for hue_py-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9fb9d9a18dd5b43ea70a119edda1da288be6958b714806bd2bc04a61755d5f05
MD5 9c50e78824384a123b8f6404c7046dc2
BLAKE2b-256 37b3c1a7cb6ad9de083f7c179dc92df2c58ca0f68fb06a4d2e669ea2efec30d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hue_py-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for hue_py-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f38d2b96c983b628a69f91e76c6468c8354c097947c8e4c98905e05e2bd3864a
MD5 09326bf1df50848c6cfcdd167b54de94
BLAKE2b-256 714da61313e6398565a7034e7b442a7ed6b5b1947b528cd3d3b87ac1f67a0bce

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