Skip to content

Commit

Permalink
[miioemu] roborock templates
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Verpaalen <[email protected]>
  • Loading branch information
marcelrv committed Oct 2, 2023
1 parent 0347277 commit f91ea07
Show file tree
Hide file tree
Showing 2 changed files with 199 additions and 6 deletions.
68 changes: 62 additions & 6 deletions roborock.vacuum.a23.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,72 @@
"param": [
1626292843
],
"fakeresponse": {
"start": "2023-09-15T16:55:19+01:00[Europe/Lisbon]",
"end": "2023-09-15T17:23:42+01:00[Europe/Lisbon]",
"duration": 28,
"area": 21.6925,
"error": 0,
"finished": 1,
"finish_reason": 52
}
},
{
"command": "get_room_mapping",
"param": [],
"fakeresponse": [
[
1497163727,
1497165195,
1468,
22902500,
0,
1
16,
"644001005288"
],
[
17,
"644001009315"
],
[
18,
"516001007151"
],
[
19,
"516001007154"
]
]
},
{
"command": "get_map_status",
"param": [],
"fakeresponse": [1]
},
{
"command": "get_led_status",
"param": [],
"fakeresponse": [1]
},
{
"command": "get_segment_status",
"param": [],
"fakeresponse": [1]
},
{
"command": "get_multi_maps_list",
"param": [],
"fakeresponse": [{"map_info":[{"add_time":1613030910,"bak_maps":[],"length":11,"mapFlag":0,"name":"Erdgeschoss"},{"add_time":1611430630,"bak_maps":[],"length":8,"mapFlag":1,"name":"1. Etage"},{"add_time":1611430708,"bak_maps":[],"length":6,"mapFlag":2,"name":"Keller"},{"add_time":1611430817,"bak_maps":[],"length":8,"mapFlag":3,"name":"2. Etage"}],"max_bak_map":0,"max_multi_map":4,"multi_map_count":4}]
},
{
"command": "get_fw_features",
"param": [],
"fakeresponse": [111,112,113,114,115,116,117,118,119,120,121,122,123,124,125]
},
{
"command": "get_carpet_mode",
"param": [],
"fakeresponse": [{"current_high":500,"current_integral":450,"current_low":400,"enable":1,"stall_time":10}]
},
{
"command": "get_customize_clean_mode",
"param": [],
"fakeresponse": null
}
],
"properties": []
Expand Down
137 changes: 137 additions & 0 deletions roborock.vacuum.a24.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
{
"model": "roborock.vacuum.a23",
"ismiot": false,
"commands": [
{
"command": "get_dnd_timer",
"param": [],
"fakeresponse": [
{
"enabled": 1,
"end_hour": 8,
"end_minute": 0,
"start_hour": 22,
"start_minute": 0
}
]
},
{
"command": "get_clean_summary",
"param": [],
"fakeresponse": {
"clean_time": 38629,
"clean_area": 650425000,
"clean_count": 68,
"dust_collection_count": 0,
"records": [
1626292843,
1626260657,
1626255012,
1626206412,
1626174164,
1626168621,
1626036597,
1626036415,
1626035701,
1626035555,
1626033643,
1626028227,
1626021936,
1626021732,
1626021575,
1626020891,
1626020332,
1626019286,
1626019207,
1626019147
]
}
},
{
"command": "get_status",
"param": [],
"fakeresponse": [
{
"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,
"is_locating": 0,
"lock_status": 0,
"water_box_mode": 204,
"water_box_carriage_status": 0,
"mop_forbidden_enable": 0
}
]
},
{
"command": "get_consumable",
"param": [],
"fakeresponse": [
{
"main_brush_work_time": 32030,
"side_brush_work_time": 32030,
"filter_work_time": 32030,
"filter_element_work_time": 7037,
"sensor_dirty_time": 34922
}
]
},
{
"command": "get_map_v1",
"param": [],
"fakeresponse": null
},
{
"command": "get_clean_record",
"param": [
1626292843
],
"fakeresponse": [
[
1497163727,
1497165195,
1468,
22902500,
0,
1
]
]
},
{
"command": "get_room_mapping",
"param": [],
"fakeresponse": [
[
16,
"644001005288"
],
[
17,
"644001009315"
],
[
18,
"516001007151"
],
[
19,
"516001007154"
]
]
}
],
"properties": []
}

0 comments on commit f91ea07

Please sign in to comment.