pywemo
Lightweight Python module to discover and control WeMo devices
Decision gist · record as of 2026-08-14
Yes. Active maintenance, no known vulnerabilities, low install friction, and permissive MIT license make this a solid choice for local WeMo control. Particularly valuable for Home Assistant users and anyone needing offline device management before Belkin's January 2026 support end-of-life. Verify that your specific WeMo product model is supported via the project wiki before committing to it.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; automatic discovery may fail on some networks, requiring manual IP-based setup instead.
- Low install friction with five common runtime dependencies (cryptography, ifaddr, lxml, requests, urllib3).
- Active maintenance with recent commits and no known vulnerabilities.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; suitable for most projects including Home Assistant integrations.
last release 2026-02-22 (173 days) · last repo commit 2026-08-05 · 301 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 76,297 downloads/mo, #14,638 on PyPI
Alternatives
Verify before relying
pip install pywemo
import pywemo
devices = pywemo.discover_devices()
if devices:
devices[0].toggle()- Whether all WeMo product models are supported or if some remain unsupported
- Reliability of automatic discovery across different network configurations
- Performance characteristics when controlling multiple devices simultaneously
What it is and what it does
pyWeMo is a Python library for discovering and controlling Belkin WeMo smart home devices on a local network. It handles device discovery, state control (toggling, querying), setup (connecting devices to Wi-Fi), and factory reset—all without relying on Belkin's cloud services. The library works with modern Python versions and depends on cryptography, ifaddr, lxml, requests, and urllib3 for network communication and device XML parsing.
The package is designed for local-only control, making it suitable for Home Assistant and other home automation systems that need reliable offline device management. It includes fallback mechanisms for networks where automatic discovery fails, allowing manual IP-based device connection. The library also provides methods to inspect device capabilities via the explain() method and supports multiple Wi-Fi encryption methods for device setup, with troubleshooting guidance for common connection issues.
Use it for
- Integrate WeMo smart plugs and switches into Home Assistant or other local home automation platforms without cloud dependency.
- Programmatically toggle or query WeMo device state from Python scripts for custom automation workflows.
- Set up and reset WeMo devices locally without the Belkin app, useful when physical access is limited or cloud access is unavailable.
- Discover all WeMo devices on a network and enumerate their capabilities for inventory or monitoring purposes.
- Control WeMo devices on networks where automatic discovery fails by manually specifying device IP addresses.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Active maintenance, no known vulnerabilities, low install friction, and permissive MIT license make this a solid choice for local WeMo control. Particularly valuable for Home Assistant users and anyone needing offline device management before Belkin's January 2026 support end-of-life. Verify that your specific WeMo product model is supported via the project wiki before committing to it.
Install
pywemo on PyPI
Before you install
Low install friction with five common runtime dependencies (cryptography, ifaddr, lxml, requests, urllib3). Active maintenance with recent commits and no known vulnerabilities.
Requires Python 3.10 or later; automatic discovery may fail on some networks, requiring manual IP-based setup instead.
License in practice
MIT license permits commercial and private use with minimal restrictions; suitable for most projects including Home Assistant integrations.
Quickstart
pip install pywemo
import pywemo
devices = pywemo.discover_devices()
if devices:
devices[0].toggle()
Verify before relying
- Whether all WeMo product models are supported or if some remain unsupported
- Reliability of automatic discovery across different network configurations
- Performance characteristics when controlling multiple devices simultaneously
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagescryptographyifaddrlxmlrequestsurllib3 |
| Maintenance | Actively maintained 173 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 76,297 / month, #14,638 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 :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: pywemo-2.1.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 › “wemo device control”
- pywemoDiscovers and controls Belkin WeMo smart home devices over local…
- brainstemProvides Python bindings to control and interact with Acroname…
- async-upnp-clientAsync UPnP client library for discovering, controlling, and eventing…
Give your agent the search over MCP, or paste the wish link into any chat.
More Networking packages
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
psutil retrieves real-time information about running processes and system resources (CPU, memory, disks, network, sensors) across multiple operating systems, enabling system monitoring, process profiling, and resource management.
pyOpenSSL wraps OpenSSL's SSL/TLS functionality for Python, providing high-level connection objects and certificate handling through a Python-friendly interface around OpenSSL's cryptographic operations.
uvloop is a drop-in replacement for Python's built-in asyncio event loop, implemented in Cython and using libuv, that accelerates async I/O operations.
execnet lets you spawn and communicate with Python interpreters across local processes, remote hosts, and different platforms, using a simple API for task distribution and inter-process messaging.
However, the aging maintenance status (275 days since last release) means you should verify it meets your concurrency and performance needs before committing to a…
PyZMQ provides Python bindings for ZeroMQ (ØMQ), a lightweight messaging library that enables fast, asynchronous communication between distributed processes and applications.
See also roombapy · tinytuya · aioruckus · flux-led · pyvesync · broadlink · python-miio · nmcli · python-kasa · devolo-plc-api