--- id: flux-led version: "1.2.0" license: LGPL-3.0-or-later license_treatment: copyleft maintenance: active --- # flux-led — A Python library to communicate with the flux_led smart bulbs License: copyleft · Maintenance: active · Downloads: 82.6K/mo ## 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 above — verify before relying. Controls Magic Home and Surp Life WiFi LED bulbs and controllers via reverse-engineered network protocol, supporting color modes, patterns, timers, and device discovery on local networks. 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 pip install flux-led uv add flux-led poetry add flux-led ## Installing flux-led 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. 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) Requires Python 3.9 or later; network access to bulbs on local LAN for discovery and control. 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_current - Install friction: low - Maintenance: active - Downloads: 82.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags wifi led bulb control, magic home bulb library, smart light automation, rgb led controller, flux led bulbs, lan light discovery, color pattern scheduling, home-automation, iot-devices, led-control [View on SkillFed](https://skillfed.io/packages/flux-led) · [View on PyPI](https://pypi.org/project/flux-led/)