flux-led
A Python library to communicate with the flux_led smart bulbs
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has low install friction, carries no known vulnerabilities, and provides solid coverage of Magic Home/Surp Life device control. The copyleft license is standard for this use case. Install if you own compatible Zengge bulbs and want programmatic or CLI control; skip if you only use the official app or have incompatible hardware.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; network access to bulbs on local LAN for discovery and control.
- Low install friction with three lightweight runtime dependencies.
- Actively maintained with recent commits and a stable release history since 2017.
License · maintenance · safety
LGPL-3.0-or-later (copyleft) — Licensed under LGPL-3.0-or-later (copyleft). You may use and modify the library freely, but any derivative works must also be distributed under a compatible copyleft license.
last release 2025-04-05 (496 days) · last repo commit 2026-08-10 · 167 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 82,626 downloads/mo, #14,151 on PyPI
Alternatives
Verify before relying
pip install flux_led
from flux_led import BulbScanner
scanner = BulbScanner()
scanner.scan()
for bulb in scanner.found_bulbs:
print(bulb)- Exact API surface and whether all documented CLI features are available programmatically
- Whether asyncio-only features (Music Mode, remote access, device configuration) are documented in the library API
- Performance characteristics when controlling multiple bulbs simultaneously
What it is and what it does
flux_led is a Python library for controlling Zengge-manufactured WiFi LED bulbs and controllers (Magic Home and Surp Life brands) via a reverse-engineered protocol. It provides both a command-line interface and programmatic API for discovering bulbs on a local network, turning them on/off, setting colors (by name or hex), applying preset or custom patterns, managing timers, and syncing device clocks. The library supports a range of device types from simple RGB controllers to ceiling lights and Christmas lights, with some models offering microphone-based music mode and remote administration.
The package depends on webcolors for named color support, typing_extensions for type hints, and async_timeout for asyncio operations. It is actively maintained, supports Python 3.9 and later, and carries no known security vulnerabilities. The codebase acknowledges that the protocol implementation contains magic numbers and reverse-engineered logic, but reports functional coverage of most app features.
Use it for
- Automate home lighting by discovering and controlling multiple WiFi bulbs programmatically in a smart home system
- Build a custom dashboard or GUI application to manage Zengge LED devices without relying on the official mobile app
- Schedule lighting changes via timers (e.g., turn on red at 5:30pm on weekdays) using the library's timer API
- Integrate color-changing bulbs into music or event-driven applications using pattern and color modes
- Batch control all bulbs on a LAN (e.g., turn on/off, set color, sync clocks) via CLI or script
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has low install friction, carries no known vulnerabilities, and provides solid coverage of Magic Home/Surp Life device control. The copyleft license is standard for this use case. Install if you own compatible Zengge bulbs and want programmatic or CLI control; skip if you only use the official app or have incompatible hardware.
Install
flux-led on PyPI
Before you install
Low install friction with three lightweight runtime dependencies. Actively maintained with recent commits and a stable release history since 2017. Requires Python 3.9 or later.
Requires Python 3.9 or later; network access to bulbs on local LAN for discovery and control.
License in practice
Licensed under LGPL-3.0-or-later (copyleft). You may use and modify the library freely, but any derivative works must also be distributed under a compatible copyleft license.
Quickstart
pip install flux_led
from flux_led import BulbScanner
scanner = BulbScanner()
scanner.scan()
for bulb in scanner.found_bulbs:
print(bulb)
Verify before relying
- Exact API surface and whether all documented CLI features are available programmatically
- Whether asyncio-only features (Music Mode, remote access, device configuration) are documented in the library API
- Performance characteristics when controlling multiple bulbs simultaneously
Package facts
| License | LGPL-3.0-or-later copyleft |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packageswebcolorstyping_extensionsasync_timeout |
| Maintenance | Actively maintained 496 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 82,626 / month, #14,151 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaEnvironment :: Other EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)Operating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Home AutomationTopic :: Software Development :: Libraries :: Python Modules |
Evidence: flux_led-1.2.0-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 › “wifi led bulb control”
- flux-ledControls Magic Home and Surp Life WiFi LED bulbs and controllers via…
- yeelightControl YeeLight WiFi RGB LED bulbs over LAN using synchronous or…
- aiolifxaiolifx is an asyncio-based Python library for discovering and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also pywizlight · wakeonlan · yeelight · govee-api-laggat · dlipower · pywemo · aiolifx-effects · aiolifx · python-kasa · nmcli