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.2.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.2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_hue_v2-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 e7a635dba03674a5c9b9abbbe05f09eca6c0e1084522e712626b1066184c5048
MD5 351396b156d8b28765c9c6178a4f5493
BLAKE2b-256 08d8bb5e28c65960f39a1731fb3cff017605c733535268815a6d7c3b1389b432

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_hue_v2-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2554bd7510a881fd59dd279a1af8cbc64bf513748ac1822434e70ef3019d4027
MD5 b7c9dc61e5cac5bb2608b156c0a6ce0e
BLAKE2b-256 a6f01af61a0f64bce621b4a61cd1d3d6583a621fdae0a7bd6541fb1627e3424b

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