Skip to main content

Python tools for controlling Lifx bulbs.

Project description

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)

Project details


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