aiolifx
API for local communication with LIFX devices over a LAN with asyncio.
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and offers low install friction. It solves a real problem—local LIFX control without cloud dependency—with a clean asyncio API. The main caveat is limited testing against bulb models beyond the Original 1000; verify compatibility with your hardware before relying on it in production.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.4 or later.
- Bulbs must be on the same LAN and reachable via UDP broadcast and unicast.
- Low install friction with a pure-Python wheel distribution.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions, making it straightforward to integrate into most projects.
last release 2026-05-26 (80 days) · last repo commit 2026-05-26 · 26 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 78,097 downloads/mo, #14,470 on PyPI
Alternatives
Verify before relying
pip install aiolifx
import asyncio
from aiolifx import LifxDiscovery
class BulbRegistry:
def __init__(self):
self.bulbs = []
def register(self, bulb):
self.bulbs.append(bulb)
def unregister(self, bulb):
self.bulbs = [b for b in self.bulbs if b.mac_addr != bulb.mac_addr]
loop = asyncio.get_event_loop()
registry = BulbRegistry()
discovery = LifxDiscovery(loop, registry)
discovery.start()
loop.run_forever()- Whether IPv6 support with /48 prefixes is production-ready (documentation notes this is untested)
- Compatibility with LIFX bulb models beyond the Original 1000 (author only tested with one model)
- Current state of the callback-based response handling and whether it covers all bulb commands
What it is and what it does
aiolifx wraps the LIFX LAN protocol in an asyncio-friendly Python library, letting you discover and control LIFX lightbulbs on your local network without relying on cloud services. It uses UDP broadcast to find bulbs and then communicates with each via unicast UDP sockets, keeping connections open for the lifetime of the bulb to avoid repeated connection overhead.
The library is built around a discovery task that registers new bulbs as it finds them and an event-driven callback model where you supply methods to handle registration and unregistration. It includes a command-line utility for testing and basic control, and supports both IPv4 and IPv6 connections to bulbs. Dependencies are minimal: async_timeout, bitstring, ifaddr, click, and InquirerPy.
Use it for
- Build a home automation dashboard that discovers and controls LIFX bulbs on startup without polling
- Create a command-line tool to batch-control lights across your LAN using the included aiolifx CLI
- Integrate LIFX bulbs into an asyncio-based smart home application with callback-driven state updates
- Monitor bulb uptime and WiFi status by passing callback functions to bulb methods
- Implement custom lighting scenes by chaining set_waveform calls with dictionary-based parameters
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and offers low install friction. It solves a real problem—local LIFX control without cloud dependency—with a clean asyncio API. The main caveat is limited testing against bulb models beyond the Original 1000; verify compatibility with your hardware before relying on it in production.
Install
aiolifx on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. The package is actively maintained with a recent release (80 days ago) and no known vulnerabilities. Dependencies are lightweight and stable.
Requires Python 3.4 or later. Bulbs must be on the same LAN and reachable via UDP broadcast and unicast.
License in practice
MIT license permits commercial and private use with minimal restrictions, making it straightforward to integrate into most projects.
Quickstart
pip install aiolifx
import asyncio
from aiolifx import LifxDiscovery
class BulbRegistry:
def __init__(self):
self.bulbs = []
def register(self, bulb):
self.bulbs.append(bulb)
def unregister(self, bulb):
self.bulbs = [b for b in self.bulbs if b.mac_addr != bulb.mac_addr]
loop = asyncio.get_event_loop()
registry = BulbRegistry()
discovery = LifxDiscovery(loop, registry)
discovery.start()
loop.run_forever()
Verify before relying
- Whether IPv6 support with /48 prefixes is production-ready (documentation notes this is untested)
- Compatibility with LIFX bulb models beyond the Original 1000 (author only tested with one model)
- Current state of the callback-based response handling and whether it covers all bulb commands
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.4 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesasync_timeoutbitstringifaddrclickInquirerPy |
| Maintenance | Actively maintained 80 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 78,097 / month, #14,470 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3 |
Evidence: aiolifx-1.2.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “lifx bulb control python”
- aiolifxaiolifx is an asyncio-based Python library for discovering and…
- aiolifx-effectsProvides light effects for LIFX smart bulbs via the aiolifx async…
- aiolifx-themesApplies color themes to LIFX smart lights using async Python,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also aiolifx-effects · govee-api-laggat · yeelight · pywizlight · aiolifx-themes · flux-led · aiohue · elgato · pyvesync · devolo-plc-api