pyswitchbee
SwitchBee Python Integration.
Decision gist · record as of 2026-08-14
Yes, if you own SwitchBee hardware and need Python-based control. The library is straightforward, has low install friction, and carries no known vulnerabilities. However, be aware that maintenance is dormant—no active support or updates are expected. Suitable for personal projects or integrations where you can maintain the code yourself if needed.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; SwitchBee Central Unit must be accessible on the network and credentials must be valid.
- Low install friction with only two runtime dependencies (aiohttp and awesomeversion).
- Maintenance is dormant—last release was 2024-07-27 and the repository shows minimal activity (3 stars), so expect no active support or rapid bug fixes.
License · maintenance · safety
permissive license (permissive) — Licensed under Apache License 2.0 (permissive), which allows commercial and private use with minimal restrictions.
last release 2024-07-27 (748 days) · last repo commit 2024-07-27 · 3 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 73,844 downloads/mo, #14,923 on PyPI
Alternatives
Verify before relying
pip install pyswitchbee
from aiohttp import ClientSession
async with ClientSession() as session:
cu = CentralUnitAPI("192.168.50.2", "user", "pass", session)
await cu.connect()
devices = await cu.devices- Whether the library maintains compatibility with current SwitchBee firmware versions.
- What happens if the Central Unit becomes unreachable during operation.
- Whether the CLI tool is included in the PyPI distribution.
What it is and what it does
pySwitchbee is a Python library that communicates with SwitchBee smart home Central Units over the network to control connected devices. It provides an async API built on aiohttp for discovering and controlling various device types—dimmers, shutters, switches, and timed power devices—by setting their state or brightness levels. The library includes both a programmatic interface and a command-line tool for querying device status and issuing commands.
The package is designed for developers building home automation integrations or scripts that need to interact with SwitchBee hardware. It handles the protocol details of communicating with the Central Unit and abstracts device types into a simple object model. However, the project is dormant (last release 2024-07-27, minimal repository activity), so it receives no active maintenance or updates.
Use it for
- Build a home automation dashboard that queries device states and sends control commands.
- Create scheduled tasks to turn lights on/off or adjust dimmer brightness at specific times.
- Integrate devices into a larger home automation platform or orchestration system.
- Write CLI scripts to manage shutter positions or timed power switches from the command line.
- Monitor and log the state of smart home devices for analytics or troubleshooting.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you own SwitchBee hardware and need Python-based control.
The library is straightforward, has low install friction, and carries no known vulnerabilities. However, be aware that maintenance is dormant—no active support or updates are expected. Suitable for personal projects or integrations where you can maintain the code yourself if needed.
Install
pyswitchbee on PyPI
Before you install
Low install friction with only two runtime dependencies (aiohttp and awesomeversion). Maintenance is dormant—last release was 2024-07-27 and the repository shows minimal activity (3 stars), so expect no active support or rapid bug fixes.
Requires Python 3.9 or later; SwitchBee Central Unit must be accessible on the network and credentials must be valid.
License in practice
Licensed under Apache License 2.0 (permissive), which allows commercial and private use with minimal restrictions.
Quickstart
pip install pyswitchbee
from aiohttp import ClientSession
async with ClientSession() as session:
cu = CentralUnitAPI("192.168.50.2", "user", "pass", session)
await cu.connect()
devices = await cu.devices
Verify before relying
- Whether the library maintains compatibility with current SwitchBee firmware versions.
- What happens if the Central Unit becomes unreachable during operation.
- Whether the CLI tool is included in the PyPI distribution.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesaiohttpawesomeversion |
| Maintenance | Dormant 748 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 73,844 / month, #14,923 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentTopic :: Home AutomationTopic :: Software Development :: Libraries :: Python ModulesTyping :: Typed |
Evidence: pyswitchbee-1.8.3-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 › “switchbee smart home control”
- pyswitchbeeA Python library for controlling SwitchBee smart home devices over…
- python-kasaControl TP-Link Kasa and Tapo smart home devices (plugs, switches,…
- pyhiveapiA Python library for controlling Hive smart home devices (heating,…
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 broadlink · dlipower · pyvesync · pyoverkiz · pyfibaro · pylutron-caseta · aioqsw · pyhiveapi · blinkpy · boschshcpy