File: usage.rst

package info (click to toggle)
python-roborock 2.47.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,260 kB
  • sloc: python: 11,349; makefile: 17
file content (41 lines) | stat: -rwxr-xr-x 701 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Usage
=====

Installation
------------

To use Python-Roborock, first install it using pip:

.. code-block:: console

   (.venv) $ pip install python-roborock

Login
-----

.. code-block:: console

      (.venv) $ roborock login --email username --password password

List devices
------------

This will list all devices associated with the account:

.. code-block:: console

   (.venv) $ roborock list-devices

   Known devices MyRobot: 7kI9d66UoPXd6sd9gfd75W


The deviceId 7kI9d66UoPXd6sd9gfd75W can be used to run commands on the device.

Run a command
-------------

To run a command:

.. code-block:: console

   (.venv) $ roborock -d command --device_id 7kI9d66UoPXd6sd9gfd75W --cmd get_status