Skip to main content
See the GitHub repository (http://github.com/mpapi/lazylights) for more details.

Example
-------

.. code:: python
from lazylights import Lifx
import time

lifx = Lifx(num_bulbs=2) # so it knows how many to wait for when connecting

@lifx.on_connected
def _connected():
print "Connected!"

with lifx.run():
lifx.set_power_state(True)
time.sleep(1)
lifx.set_power_state(False)

Release history Release notifications | RSS feed

This release

0.1.0 This release

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page