Skip to main content

Python Hue V2

Python library to control the Philips Hue lighting system for Hue-V2 API.

Features

  • Design for Hue API 2.0

Usage

High Level Control

Simple Example

import time
from python_hue_v2 import Hue, BridgeFinder

finder = BridgeFinder()
time.sleep(1)  # wait for search
# Get server by mdns
host_name = finder.get_bridge_server_lists()[0]  # Here we use first Hue Bridge

# or hue = Hue('ip address','app-key')
hue = Hue(host_name, 'hue app key')  # create Hue instance

lights = hue.lights

for light in lights:
    print(light.on)
    light.on = True
    light.brightness = 80.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_hue_v2-0.0.1.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_hue_v2-0.0.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file python_hue_v2-0.0.1.tar.gz.

File metadata

  • Download URL: python_hue_v2-0.0.1.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for python_hue_v2-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d528be9b1bb4ea3da74982e214043df29543772a5a22a205499e8b787ad6de13
MD5 a96c0e5e62f07be31d1184e97cf431c7
BLAKE2b-256 27d251ba5d934e76750b97fa4f0024da7cced656cfb98ed2beb85d15ca143c34

See more details on using hashes here.

File details

Details for the file python_hue_v2-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: python_hue_v2-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for python_hue_v2-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0f6faee350bcd4fe18b66dfbf50ab7b5d4434a77e7304a7a815fe370858a63b3
MD5 79384f9dc7301acf5966ce2be3c95bb6
BLAKE2b-256 16c43e37d2ce14a037e96ddc269459285e8bc5f04f39fc7afb0a50a6dc080947

See more details on using hashes here.

Supported by

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