python-roborock-4.9.1
4.9.1
4.9.0
4.8.0
4.7.2
4.7.1
4.7.0
4.6.0
4.5.0
4.4.0
4.3.0
4.2.2
4.2.1
4.2.0
4.17.1
4.17.0
4.16.0
4.15.0
4.14.0
4.13.0
4.12.0
4.11.0
4.10.1
4.10.0
4.1.1
4.1.0
4.0.2
4.0.1
4.0.0
3.9.3
3.9.2
3.9.1
3.9.0
3.8.5
3.8.4
3.8.3
3.8.2
3.8.1
3.8.0
3.7.4
3.7.2
3.7.1
3.7.0
3.6.0
3.5.0
3.4.0
3.3.3
3.3.2
3.3.1
3.3.0
3.21.1
3.21.0
3.20.1
3.20.0
3.2.0
3.19.1
3.19.0
3.18.0
3.17.0
3.16.1
3.16.0
3.15.0
3.14.3
3.14.2
3.14.1
3.14.0
3.13.1
3.13.0
3.12.2
3.12.1
3.12.0
3.11.1
3.11.0
3.10.9
3.10.8
3.10.7
3.10.6
3.10.5
3.10.4
3.10.3
3.10.2
3.10.10
3.10.1
3.10.0
3.1.2
3.0.0
2.9.8
2.9.7
2.9.6
2.9.5
2.9.4
2.9.3
2.9.2
2.9.1
2.9.0rc1
2.9.0
2.8.5
2.8.4
2.8.3
2.8.2
2.8.1rc1
2.8.1
2.7.2
2.7.1
2.7.0
2.61.0
2.6.1
2.6.0
2.59.0
2.58.1
2.58.0
2.54.0
2.53.1
2.53.0
2.52.0
2.51.0
2.50.4
2.50.3
2.50.2
2.50.1
2.50.0
2.5.0
2.49.1
2.49.0
2.48.0
2.47.1
2.47.0
2.46.0
2.45.0
2.44.1
2.44.0
2.43.0
2.42.0
2.41.1
2.41.0
2.40.1
2.40.0
2.4.0
2.39.2
2.39.1
2.39.0
2.38.0
2.37.0
2.36.0
2.35.0
2.34.2
2.34.1
2.34.0
2.33.0
2.32.0
2.31.0
2.30.0
2.3.0
2.29.1
2.29.0
2.28.0
2.27.0
2.26.0
2.25.1
2.25.0
2.24.0
2.23.0
2.22.0
2.21.0
2.20.0
2.2.3
2.2.2
2.2.1
2.2.0
2.19.0
2.18.2
2.18.1
2.18.0
2.17.0
2.16.1
2.16.0
2.15.0
2.14.0
2.13.0
2.12.2
2.12.1
2.12.0
2.11.3
2.11.2
2.11.1
2.11.0
2.10.1
2.10.0
2.1.1
2.1.0
2.0.0
1.0.0
0.9.0rc0
0.9.0
0.8.3
0.8.2
0.8.1
0.8.0
0.7.8
0.7.7
0.7.6
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.9
0.6.8
0.6.7
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.17
0.6.16
0.6.15
0.6.14
0.6.13
0.6.12
0.6.11
0.6.10
0.6.1
0.6.0
0.5.9
0.5.8
0.5.7
0.5.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.41.0
0.40.0
0.4.9
0.4.8
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.16
0.4.15
0.4.14
0.4.13
0.4.12
0.4.11
0.4.10
0.4.1
0.4.0
0.39.2
0.39.1
0.39.0
0.38.0
0.37.0
0.36.2
0.36.1
0.36.0
0.35.4
0.35.3
0.35.2
0.35.1
0.35.0
0.34.6
0.34.5
0.34.4
0.34.3
0.34.2
0.34.1
0.34.0
0.33.2
0.33.1
0.33.0
0.32.4
0.32.3
0.32.2
0.32.1
0.32.0
0.31.1
0.31.0
0.30.3
0.30.2
0.30.1
0.30.0
0.3.1
0.3.0
0.29.2
0.29.1
0.29.0
0.28.0
0.27.2
0.27.1
0.27.0
0.26.2
0.26.1
0.26.0
0.25.2
0.24.1
0.24.0
0.23.6
0.23.5
0.23.4
0.23.3
0.23.2
0.23.1
0.23.0
0.22.0
0.21.1
0.21.0
0.20.2
0.20.1
0.20.0
0.2.3
0.2.2
0.19.0
0.18.9
0.18.8
0.18.7
0.18.6
0.18.5
0.18.4
0.18.3
0.18.2
0.18.10
0.18.1
0.18.0
0.17.8
0.17.7
0.17.6
0.17.5
0.17.4
0.17.3
0.17.1
0.17.0
0.16.1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
2.37.0
2.36.0
2.35.0
2.34.2
2.34.1
2.34.0
2.33.0
2.32.0
2.31.0
2.30.0
2.3.0
2.29.1
2.29.0
2.28.0
2.27.0
2.26.0
2.25.1
2.25.0
2.24.0
2.23.0
2.22.0
2.21.0
2.20.0
2.2.3
2.2.2
2.2.1
2.2.0
2.19.0
2.18.2
2.18.1
2.18.0
2.17.0
2.16.1
2.16.0
2.15.0
2.14.0
2.13.0
2.12.2
2.12.1
2.12.0
2.11.3
2.11.2
2.11.1
2.11.0
2.10.1
2.10.0
2.1.1
2.1.0
2.0.0
1.0.0
0.9.0rc0
0.9.0
0.8.3
0.8.2
0.8.1
0.8.0
0.7.8
0.7.7
0.7.6
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.9
0.6.8
0.6.7
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.17
0.6.16
0.6.15
0.6.14
0.6.13
0.6.12
0.6.11
0.6.10
0.6.1
0.6.0
0.5.9
0.5.8
0.5.7
0.5.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.41.0
0.40.0
0.4.9
0.4.8
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.16
0.4.15
0.4.14
0.4.13
0.4.12
0.4.11
0.4.10
0.4.1
0.4.0
0.39.2
0.39.1
0.39.0
0.38.0
0.37.0
0.36.2
0.36.1
0.36.0
0.35.4
0.35.3
0.35.2
0.35.1
0.35.0
0.34.6
0.34.5
0.34.4
0.34.3
0.34.2
0.34.1
0.34.0
0.33.2
0.33.1
0.33.0
0.32.4
0.32.3
0.32.2
0.32.1
0.32.0
0.31.1
0.31.0
0.30.3
0.30.2
0.30.1
0.30.0
0.3.1
0.3.0
0.29.2
0.29.1
0.29.0
0.28.0
0.27.2
0.27.1
0.27.0
0.26.2
0.26.1
0.26.0
0.25.2
0.24.1
0.24.0
0.23.6
0.23.5
0.23.4
0.23.3
0.23.2
0.23.1
0.23.0
0.22.0
0.21.1
0.21.0
0.20.2
0.20.1
0.20.0
0.2.3
0.2.2
0.19.0
0.18.9
0.18.8
0.18.7
0.18.6
0.18.5
0.18.4
0.18.3
0.18.2
0.18.10
0.18.1
0.18.0
0.17.8
0.17.7
0.17.6
0.17.5
0.17.4
0.17.1
0.17.0
0.16.1
0.16.0
0.15.0
0.14.1
0.14.0
0.13.4
0.13.3
0.13.2
0.13.1
0.13.0
0.12.1
0.12.0
0.11.0
0.10.3
0.10.2
0.10.1
0.10.0
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.11.dev0
0.1.10
0.1.1
0.1.0
توضیحات
A package to control Roborock vacuums.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | python-roborock-4.9.1 |
| نام | python-roborock |
| نسخه کتابخانه | 4.9.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Lash-L, allenporter |
| ایمیل نویسنده | humbertogontijo <humbertogontijo@users.noreply.github.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/python-roborock/ |
| مجوز | - |
# Roborock
<p align="center">
<a href="https://pypi.org/project/python-roborock/">
<img src="https://img.shields.io/pypi/v/python-roborock.svg?logo=python&logoColor=fff&style=flat-square" alt="PyPI Version">
</a>
<img src="https://img.shields.io/pypi/pyversions/python-roborock.svg?style=flat-square&logo=python&logoColor=fff" alt="Supported Python versions">
<img src="https://img.shields.io/pypi/l/python-roborock.svg?style=flat-square" alt="License">
<a href="https://codecov.io/github/Python-roborock/python-roborock" >
<img src="https://codecov.io/github/Python-roborock/python-roborock/graph/badge.svg?token=KEK4S3FPSZ" alt="Code Coverage"/>
</a>
</p>
Roborock library for online and offline control of your vacuums.
## Installation
Install this via pip (or your favourite package manager):
`pip install python-roborock`
## Example Usage
See [examples/example.py](examples/example.py) for a more full featured example,
or the [API documentation](https://python-roborock.github.io/python-roborock/)
for more details.
Here is a basic example:
```python
import asyncio
from roborock.web_api import RoborockApiClient
from roborock.devices.device_manager import create_device_manager, UserParams
async def main():
email_address = "youremailhere@example.com"
web_api = RoborockApiClient(username=email_address)
# Send a login code to the above email address
await web_api.request_code()
# Prompt the user to enter the code
code = input("What is the code?")
user_data = await web_api.code_login(code)
# Create a device manager that can discover devices.
user_params = UserParams(username=email_address, user_data=user_data)
device_manager = await create_device_manager(user_params)
devices = await device_manager.get_devices()
# Get all vacuum devices. Each device generation has different capabilities
# and APIs available so to find vacuums we filter by the v1 PropertiesApi.
for device in devices:
if not device.v1_properties:
continue
# The PropertiesAPI has traits different device commands such as getting
# status, sending clean commands, etc. For this example we send a
# command to refresh the current device status.
status_trait = device.v1_properties.status
await status_trait.refresh()
print(status_trait)
asyncio.run(main())
```
## Functionality
The library interacts with devices through specific API properties based on the device protocol:
* **Standard Vacuums (V1 Protocol)**: Most robot vacuums use this. Interaction is done through `device.v1_properties`, which contains traits like `status`, `consumables`, and `maps`. Use the `command` trait for actions like starting or stopping cleaning.
* **Wet/Dry Vacuums & Washing Machines (A01 Protocol)**: Devices like the Dyad and Zeo use this. Interaction is done through `device.a01_properties` using `query_values()` and `set_value()`.
You can find detailed documentation for [Devices](https://python-roborock.github.io/python-roborock/roborock/devices/device.html) and [Traits](https://python-roborock.github.io/python-roborock/roborock/devices/traits.html).
## Supported devices
You can find what devices are supported
[here](https://python-roborock.readthedocs.io/en/latest/supported_devices.html).
Please note this may not immediately contain the latest devices.
## Acknowledgements
* Thanks to [@rovo89](https://github.com/rovo89) for [Login APIs gist](https://gist.github.com/rovo89/dff47ed19fca0dfdda77503e66c2b7c7).
* Thanks to [@PiotrMachowski](https://github.com/PiotrMachowski) for [Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor](https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor).
نیازمندی
| مقدار | نام |
|---|---|
| - | aiohttp<4,>=3.8.2 |
| - | aiomqtt<3,>=2.5.0 |
| - | click-shell~=2.1 |
| - | click>=8 |
| - | construct<3,>=2.10.57 |
| - | paho-mqtt<3.0.0,>=1.6.1 |
| ys_platfor | pycryptodomex~=3.18; |
| - | pycryptodome~=3.18 |
| - | pyrate-limiter<4,>=3.7.0 |
| - | vacuum-map-parser-roborock |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| <4,>=3.11 | Python |
نحوه نصب
نصب پکیج whl python-roborock-4.9.1:
pip install python-roborock-4.9.1.whl
نصب پکیج tar.gz python-roborock-4.9.1:
pip install python-roborock-4.9.1.tar.gz