Skip to content

Latest commit

 

History

History
110 lines (99 loc) · 2.59 KB

StatusMessage.md

File metadata and controls

110 lines (99 loc) · 2.59 KB

Status message

Command

Key Value Comment
method get_status
id [Integer] is returned in the response used to link the send message to the response.

Example

{'method': 'get_status', 'id': 2}

Response

Key Example Description
battery 100 Battery level
clean_area 22902500 Total area (in cm2)
clean_time 1468 Total cleaning time in sec
dnd_enabled 0 Is Do Not Disturb enabled (0=disabled)
error_code 0 Error code (0=no error. see list below)
fan_power 60 Fan power
in_cleaning 0 Is device cleaning
in_fresh_state 0 ?
in_returning 1 Is returning to dock (0=no, 1=yes)
lab_status 1 ?
lock_status 0 ?
map_present 0 Is map present
map_status 3 ?
msg_seq 37 Message sequence increments with each request
msg_ver 4 Message version (seems always 4 and 2 for s6)
state 8 Status code (see list below)
water_box_status 1 Is water tank mounted (0=no, 1=yes)

Example Response

{
    "id": 2,
    "result": [
        {
            "battery": 100,
            "clean_area": 22902500,
            "clean_time": 1468,
            "dnd_enabled": 0,
            "error_code": 0,
            "fan_power": 60,
            "in_cleaning": 0,
            "map_present": 0,
            "msg_seq": 37,
            "msg_ver": 4,
            "state": 8
        }
    ]
}

Example Response for s6

{
    "result": [
        {
            "msg_ver": 2,
            "msg_seq": 52,
            "state": 8,
            "battery": 100,
            "clean_time": 15,
            "clean_area": 140000,
            "error_code": 0,
            "map_present": 1,
            "in_cleaning": 0,
            "in_returning": 0,
            "in_fresh_state": 1,
            "lab_status": 1,
            "water_box_status": 1,
            "fan_power": 102,
            "dnd_enabled": 0,
            "map_status": 3,
            "lock_status": 0
        }
    ],
    "id": 96
}

Status Codes

Code Description
0 Unknown
1 Initiating
2 Sleeping
3 Waiting
4 ?
5 Cleaning
6 Returning home
7 Remote control
8 Charging
9 Charging Error
10 Pause
11 Spot Cleaning
12 In Error
13 Shutting down
14 Updating
15 Docking
16 Go To
17 Zone cleaning
18 Room cleaning
100 Full