pywizlight
A python connector for WiZ light bulbs (e.g SLV Play)
What it is and what it does
pywizlight is a Python connector for WiZ smart light bulbs that provides both a programmatic API and a command-line interface for controlling networked lighting devices. It handles device discovery via UDP broadcast, state queries, and commands to adjust brightness, color temperature, RGB colors, and predefined scenes. The library is async-first, designed to work with asyncio for concurrent control of multiple bulbs.
The package wraps the WiZ Light API with higher-level abstractions like PilotBuilder for constructing control commands and bulb type detection for querying device capabilities (supported features, kelvin range, module name). It supports both direct IP-based control and network-wide discovery, making it suitable for home automation integrations and standalone smart-home tooling.
Use it for:
- Integrate WiZ bulbs into a home automation system or dashboard that needs programmatic control.
- Build a CLI tool or script to discover and manage WiZ lights across a home network.
- Automate lighting scenes and color changes based on time of day, events, or sensor input.
- Query bulb capabilities and state to adapt control logic to device features.
- Control multiple bulbs in parallel using asyncio for responsive multi-light orchestration.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Python library and CLI tool for discovering and controlling WiZ smart light bulbs over a network, supporting brightness, color, color temperature, scenes, and effects.
Yes. The package is actively maintained, has low install friction, carries a permissive MIT license, and provides a clean async API for a well-defined use case (WiZ bulb control). Install it if you own WiZ bulbs and need programmatic or CLI control; skip it if you have no WiZ devices or prefer a vendor app.
Install
pywizlight on PyPI
pip
pip install pywizlightuv
uv add pywizlightpoetry
poetry add pywizlightInstalling pywizlight
Before you install
Low friction install with a single runtime dependency (click). Actively maintained with a recent release (9 days old) and 547 repository stars. Requires Python >=3.11.
License in practice
MIT license permits commercial and private use, modification, and distribution with minimal restrictions—suitable for most projects.
Quickstart
pip install pywizlight
import asyncio
from pywizlight import wizlight, PilotBuilder
async def main():
light = wizlight("192.168.1.27")
await light.turn_on(PilotBuilder(brightness=255))
asyncio.run(main())
Requires Python >=3.11; WiZ bulbs must be on the same network and reachable by IP address.
Verify before relying
- Whether the library supports all WiZ device models or only specific bulb types.
- Latency and timeout behavior when bulbs are offline or unreachable.
- Whether UDP broadcast discovery works reliably across different network configurations.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — click |
| Maintenance | actively maintained — 9 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 78,590/month — #14,424 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pywizlight-0.6.6-py3-none-any.whl
Tags
More Networking packages
h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
psutilpsutil retrieves real-time information about…
permissive · top 1,000 on PyPI
pyOpenSSLpyOpenSSL wraps OpenSSL's SSL/TLS functionality…
permissive · top 1,000 on PyPI
uvloopuvloop is a drop-in replacement for Python's…
permissive · top 1,000 on PyPI
execnetexecnet lets you spawn and communicate with…
permissive · top 1,000 on PyPI
pyzmqPyZMQ provides Python bindings for ZeroMQ…
permissive · top 1,000 on PyPI
flux-ledControls Magic Home and Surp Life WiFi LED…
copyleft · top 15,000 on PyPI
yeelightControl YeeLight WiFi RGB LED bulbs over LAN…
permissive · top 15,000 on PyPI
aiolifxaiolifx is an asyncio-based Python library for…
permissive · top 15,000 on PyPI
python-kasaControl TP-Link Kasa and Tapo smart home…
copyleft · top 15,000 on PyPI
aiolifx-effectsProvides light effects for LIFX smart bulbs via…
permissive · top 15,000 on PyPI
pyswitchbeeA Python library for controlling SwitchBee…
permissive · top 15,000 on PyPI
pyvesyncAsynchronous Python library to discover,…
permissive · top 15,000 on PyPI
plugp100A Python library for controlling and…
copyleft · top 15,000 on PyPI
hyperion-pyA Python async client library for controlling…
permissive · top 15,000 on PyPI
aiohueAsynchronous Python library for controlling…
permissive · top 15,000 on PyPI