Skip to content

Latest commit

 

History

History
80 lines (61 loc) · 2.48 KB

consumable.md

File metadata and controls

80 lines (61 loc) · 2.48 KB

Consumable

Gets / resets the status of the consumables.

Get Consumable

Command

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

Example

{
    "method": "get_consumable",
    "id": 3457
}

Response

Key Example Description
main_brush_work_time 32030 Operating time of the main brush (in s)
side_brush_work_time 32030 Operating time of the side brush (in s)
filter_work_time 32030 Operating time of the filter (in s)
filter_element_work_time 7037 Operating time of the filter element (in s)
sensor_dirty_time 34922 Operating time of the sensors since last cleaning (in s)

Example

{
    "result": [{
            "main_brush_work_time": 32030,
            "side_brush_work_time": 32030,
            "filter_work_time": 32030,
            "filter_element_work_time": 7037,
            "sensor_dirty_time": 34922
        }
    ],
    "id": 3457
}

Reset Consumable

Command

Key Value Comment
method "reset_consumable"
params [consumable] The consumable to be reset, the spelling corresponds to the keys of get_consumable.
id id Random integer which is returned in the response used to link request and response.

Example

{
    "method": "reset_consumable",
    "params": ["filter_work_time"],
    "id": 8756
}

Response

Standard response to succeeded command.

Example

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