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 Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page