Skip to content

Commit f77c8fe

Browse files
chrisvellafabaff
authored andcommitted
Added instructions for magisk based root (home-assistant#4843)
* Added instructions for magisk based root AFAIK Magisk does not integrate with Android to provide an option for shell over adb. However it does allow you to escalate privileges once in a shell. * Minor changes
1 parent 98da394 commit f77c8fe

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

source/_components/vacuum.xiaomi_miio.markdown

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ ha_release: 0.51
1313
ha_iot_class: "Local Polling"
1414
---
1515

16-
The `xiaomi miio` vacuum platform allows you to control the state of your
17-
[Xiaomi Mi Robot Vacuum](http://www.mi.com/roomrobot/).
16+
The `xiaomi miio` vacuum platform allows you to control the state of your [Xiaomi Mi Robot Vacuum](http://www.mi.com/roomrobot/).
1817

1918
Currently supported features are:
2019

@@ -50,10 +49,7 @@ Configuration variables:
5049
5150
## {% linkable_title Platform Services %}
5251
53-
In addition to [all of the services provided by the `vacuum` component]
54-
]) (`turn_on`, `turn_off`, `start_pause`, `stop`, `return_to_home`, `locate`,
55-
`set_fan_speed` and `send_command`), the `xiaomi` platform introduces specific
56-
services to access the remote control mode of the robot. These are:
52+
In addition to all of the services provided by the `vacuum` component (`turn_on`, `turn_off`, `start_pause`, `stop`, `return_to_home`, `locate`, `set_fan_speed` and `send_command`), the `xiaomi` platform introduces specific services to access the remote control mode of the robot. These are:
5753

5854
- `xiaomi_remote_control_start`
5955
- `xiaomi_remote_control_stop`
@@ -62,8 +58,7 @@ services to access the remote control mode of the robot. These are:
6258

6359
### {% linkable_title Service `vacuum/xiaomi_remote_control_start` %}
6460

65-
Start the remote control mode of the robot. You can then move it with
66-
`remote_control_move`; when done, call `remote_control_stop`.
61+
Start the remote control mode of the robot. You can then move it with `remote_control_move`; when done, call `remote_control_stop`.
6762

6863
| Service data attribute | Optional | Description |
6964
|---------------------------|----------|-------------------------------------------------------|
@@ -79,8 +74,7 @@ Exit the remote control mode of the robot.
7974

8075
### {% linkable_title Service `vacuum/xiaomi_remote_control_move` %}
8176

82-
Remote control the robot. Please ensure you first set it in remote control
83-
mode with `remote_control_start`.
77+
Remote control the robot. Please ensure you first set it in remote control mode with `remote_control_start`.
8478

8579
| Service data attribute | Optional | Description |
8680
|---------------------------|----------|-------------------------------------------------------|
@@ -103,9 +97,8 @@ Enter remote control mode, make one move, stop, and exit remote control mode.
10397

10498
## {% linkable_title Attributes %}
10599

106-
In addition to [all of the attributes provided by the `vacuum` component](https://home-assistant.io/components/vacuum/#attributes),
107-
(`battery_icon`, `cleaned_area`, `fan_speed`, `fan_speed_list`, `status`, and
108-
`params`), the `xiaomi` platform introduces specific attributes. These are:
100+
In addition to [all of the attributes provided by the `vacuum` component](/components/vacuum/#attributes),
101+
(`battery_icon`, `cleaned_area`, `fan_speed`, `fan_speed_list`, `status`, and `params`), the `xiaomi` platform introduces specific attributes. These are:
109102

110103
- `cleaning_time`
111104
- `do_not_disturb`
@@ -236,7 +229,7 @@ To fetch the token follow these instructions depending on your mobile phone plat
236229
3. Get ADB f.e. `apt-get install android-tools-adb`
237230
4. `adb devices` should list your device
238231
5. `adb root` (does work for development builds only: ones with `ro.debuggable=1`)
239-
6. `adb shell`
232+
6. `adb shell` (for those using Magisk based root the previous command won't work. After entering a shell, type `su` to enter the root shell)
240233
7. `echo "select name,localIP,token from devicerecord;" | sqlite3 /data/data/com.xiaomi.smarthome/databases/miio2.db` returns a list of all registered devices including IP address and token.
241234

242235
#### {% linkable_title iOS %}

0 commit comments

Comments
 (0)