Skip to main content

Library to remote control Philips Hue Lights

Project description

This README is a work in progress.

Highlight Build StatusCoverage Status

(Yet another) Philips Hue SDK (Python).

Sample Code

from pyhuelights.discovery import DefaultDiscovery
from pyhuelights.core import *
from pyhuelights.manager import *
from pyhuelights.animations import *
from pyhuelights.registration import *

store = {}
conn = DefaultDiscovery().discover()
conn = register(conn, HueApp("test", ""), store)   # Remember to push the button on the hub within
                                                   # the last 30 sec of executing this line.

lm = LightsManager(conn)
lights = lm.get_all_lights()
lm.run_effect(lights['1'], ColorLoopEffect())

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

pyhuelights-0.8.2.tar.gz (11.4 kB view hashes)

Uploaded Source

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