Skip to main content

A Python library to control and monitor LIFX bulbs

Project description

A Python library to control and monitor LIFX bulbs. Also provides a workaround for users having issues with controlling LIFX bulbs on their network.

GitHub: https://github.com/derkarnold/pylifx PyPi: https://pypi.python.org/pypi/pylifx

Originally written to allow the LIFX bulb to work in non-standard networks, but it is growing to be much more.

Contributors: Deryck Arnold, Michael Farrell (micolous)

Huge thanks to Kevin Bowman(magicmonkey) and others for the lifxjs project on GitHub:

https://github.com/magicmonkey/lifxjs/

Without their work on the lifxjs project, this one would not have been possible.

Current features:

  • Allows the LIFX bulb smartphone app to work by “faking” a bulb and relaying commands to the real one (see examples/bridge.py).

  • Gives the ability to display the contents of LIFX messages coming through. ** Huge thanks to magicmonkey and the lifxjs project for their hard work on working out the LIFX protocol.

  • The ability to run “scenes” - provide a dictionary of times and colours and the library will do the rest (see examples/sunrise.py).

Upcoming features:

  • Auto-discovery of bulbs (yes, should have been there already).

  • Support for more than one bulb per bridge (waiting on another bulb to arrive).

How to install:

  • Get Python (tested with 2.7, others may work). I use the Python(x, y) distribution.

  • Ensure you have the Python setuptools.

  • Run “easy_install pylifx” from a command prompt or terminal.

  • You’re done.

Two common issues with installing:

  • Linux users - ensure you have python-dev installed (for the netifaces package).

  • Windows users - install the pre-built binaries for your python distribution using the links in the following URL: http://alastairs-place.net/projects/netifaces/ (The section is just above the start of the Changelog section).

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

pylifx-0.0.3.zip (17.5 kB view details)

Uploaded Source

File details

Details for the file pylifx-0.0.3.zip.

File metadata

  • Download URL: pylifx-0.0.3.zip
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pylifx-0.0.3.zip
Algorithm Hash digest
SHA256 1899c1e33caa008908042f2ef1bd4ce8a93f193136a7a1093f7d4c2fe5bd72c9
MD5 00d7888a99c91e995e16e3156f372f67
BLAKE2b-256 368f152a7589914447b0800e87814516c0c66f2b2d674d0bab801b56dffcef06

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page