Skip to content

Latest commit

 

History

History
93 lines (69 loc) · 2.7 KB

custom_mode.md

File metadata and controls

93 lines (69 loc) · 2.7 KB

Custom Mode

Gets / sets the fan level during the cleaning process. Fan level is also used to set the Mop mode of the Xiaomi Robot Vacuum 2.

Get Custom Mode

Command

Key Value Comment
method "get_custom_mode"
id id Random integer which is returned in the response used to link request and response.

Example

{
    "method": "get_custom_mode",
    "id": 17735
}

Response

Key Example Description
- 40 Fan level, <100: value in %, >100: see values of Extended Modes

Example

{
    "result": [40],
    "id": 17735
}

Set Custom Mode

Command

Key Value Comment
method "set_custom_mode"
params [fan_level] Desired fan_level, see Regular Modes or Extended Modes (for s5e)
id id Random integer which is returned in the response used to link request and response.

Regular Modes

Mode Level
Quiet 38
Balanced 60
Turbo 75
Max 100
Mop Mode 105

Extended Modes

Mode Level
Silent 101
Balanced 102
Turbo 103
Max 104
Gentle 105
Customize (Auto) 106

The "Customize" switch in the Xiaomi app only shows on when both the Custom Mode is set to Auto=106 and the Water Box Custom Mode is set to Auto=204.

Example

{
    "method": "set_custom_mode",
    "params": [40],
    "id": 17694
}

Response

Standard response to succeeded command.

Example

{
    "result": ["ok"],
    "id": 17694
}