python-roborock
A package to control Roborock vacuums.
Decision gist · record as of 2026-08-14
Yes. The library is actively maintained, has no known vulnerabilities, uses a permissive license, and offers low installation friction. It's well-suited for anyone building home automation integrations with Roborock devices. The async-first design and support for multiple device protocols make it flexible for both simple control and complex multi-device scenarios.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.11 or later; email-based login requires receiving a code sent to the registered email address.
- Low friction installation as a pure-Python wheel.
- Actively maintained with a recent release (12 days old) and steady repository activity.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for integration into proprietary home automation systems.
last release 2026-08-02 (12 days) · last repo commit 2026-08-13 · 222 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 138,155 downloads/mo, #11,341 on PyPI
Alternatives
Verify before relying
pip install python-roborock
import asyncio
from roborock.web_api import RoborockApiClient
from roborock.devices.device_manager import create_device_manager, UserParams
async def main():
web_api = RoborockApiClient(username="user@example.com")
await web_api.request_code()
code = input("Enter code: ")
user_data = await web_api.code_login(code)
device_manager = await create_device_manager(UserParams(username="user@example.com", user_data=user_data))
devices = await device_manager.get_devices()
asyncio.run(main())- Whether all listed supported devices remain compatible with version 6.2.1 or if some require older versions
- Performance characteristics when controlling multiple vacuums simultaneously
- Offline control mode requirements and limitations compared to online mode
What it is and what it does
python-roborock is a Python library for controlling Roborock vacuum cleaners and related appliances through both online (cloud) and offline (local) connections. It abstracts the different communication protocols used by different device generations—V1 for standard vacuums and A01 for wet/dry vacuums and washing machines—into a unified interface. The library handles authentication via email code login, device discovery through a device manager, and provides trait-based access to device capabilities like status queries, cleaning commands, and map data.
The library is built on async/await patterns using aiohttp and aiomqtt for network communication, with protobuf and cryptographic libraries handling protocol encoding and security. It's designed primarily for home automation integration (notably Home Assistant) and targets developers building smart home applications. The library requires Python 3.11 or later and has no known security vulnerabilities.
Use it for
- Integrate Roborock vacuums into a Home Assistant or custom home automation system for scheduled or remote cleaning
- Build a monitoring dashboard that queries vacuum status, battery level, and cleaning history across multiple devices
- Automate vacuum commands based on external triggers (e.g., start cleaning when household leaves, stop when someone returns)
- Extract and process vacuum-generated maps and cleaning data for analysis or visualization
- Control wet/dry vacuums or washing machines via the A01 protocol in multi-device smart home setups
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The library is actively maintained, has no known vulnerabilities, uses a permissive license, and offers low installation friction. It's well-suited for anyone building home automation integrations with Roborock devices. The async-first design and support for multiple device protocols make it flexible for both simple control and complex multi-device scenarios.
Install
python-roborock on PyPI
Before you install
Low friction installation as a pure-Python wheel. Actively maintained with a recent release (12 days old) and steady repository activity. Nine runtime dependencies including aiohttp, aiomqtt, and protobuf are all established packages.
Requires Python 3.11 or later; email-based login requires receiving a code sent to the registered email address.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for integration into proprietary home automation systems.
Quickstart
pip install python-roborock
import asyncio
from roborock.web_api import RoborockApiClient
from roborock.devices.device_manager import create_device_manager, UserParams
async def main():
web_api = RoborockApiClient(username="user@example.com")
await web_api.request_code()
code = input("Enter code: ")
user_data = await web_api.code_login(code)
device_manager = await create_device_manager(UserParams(username="user@example.com", user_data=user_data))
devices = await device_manager.get_devices()
asyncio.run(main())
Verify before relying
- Whether all listed supported devices remain compatible with version 6.2.1 or if some require older versions
- Performance characteristics when controlling multiple vacuums simultaneously
- Offline control mode requirements and limitations compared to online mode
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release <4,>=3.11 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 9 packagesaiohttpaiomqttconstructpaho-mqttprotobufpycryptodomexpycryptodomepyrate-limitervacuum-map-parser-roborock |
| Maintenance | Actively maintained 12 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 138,155 / month, #11,341 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: OS IndependentTopic :: Software Development :: Libraries |
Evidence: python_roborock-6.2.1-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 › “roborock vacuum control python”
- python-roborockControl Roborock vacuum cleaners online and offline through a Python…
- vacuum-map-parser-roborockParses map data generated by Roborock vacuum cleaners, converting raw…
- vacuum-map-parser-baseProvides base classes and utilities for parsing vacuum cleaner map…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also pybotvac · vacuum-map-parser-roborock · deebot-client · vacuum-map-parser-base · python-miio · librouteros · meross-iot · switchbot-api · fjaraskupan · aioairzone-cloud