Skip to content

Commit

Permalink
[miio-emu] added files for Q7Max
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Verpaalen <[email protected]>
  • Loading branch information
marcelrv committed Nov 21, 2023
1 parent f91ea07 commit da02a63
Show file tree
Hide file tree
Showing 5 changed files with 252 additions and 36 deletions.
4 changes: 2 additions & 2 deletions .classpath
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src">
<classpathentry including="**/*.java" kind="src" output="target/classes" path="src">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="include"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
<attributes>
<attribute name="module" value="true"/>
<attribute name="maven.pomderived" value="true"/>
Expand Down
8 changes: 4 additions & 4 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.compliance=17
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
Expand All @@ -12,5 +12,5 @@ org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.8
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=17
4 changes: 2 additions & 2 deletions miio-default.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"model": "roborock.vacuum.a23",
"model": "roborock.vacuum.a38",
"token": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"did": "AABBCCDD"
}
}
30 changes: 2 additions & 28 deletions roborock.vacuum.a23.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,34 +18,8 @@
{
"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
]
}
"fakeresponse": {"clean_time":109968,"clean_area":1694875000,"clean_count":51,"dust_collection_count":48,"records":[1699081963,1698999875,1698126572,1697463736,1697031817,1696486642,1696320557,1696253060,1695833343,1695821201,1695619374,1695476013,1695457865,1695274110,1695014622,1694876238,1694860994,1694755927,1694526730,1694237806]}

},
{
"command": "get_status",
Expand Down
242 changes: 242 additions & 0 deletions roborock.vacuum.a38.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,242 @@
{
"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": 109968,
"clean_area": 1694875000,
"clean_count": 51,
"dust_collection_count": 48,
"records": [
1699081963,
1698999875,
1698126572,
1697463736,
1697031817,
1696486642,
1696320557,
1696253060,
1695833343,
1695821201,
1695619374,
1695476013,
1695457865,
1695274110,
1695014622,
1694876238,
1694860994,
1694755927,
1694526730,
1694237806
]
}
},
{
"command": "get_status",
"param": [],
"fakeresponse": [
{
"msg_ver": 2,
"msg_seq": 7924,
"state": 8,
"battery": 100,
"clean_time": 2957,
"clean_area": 45990000,
"error_code": 0,
"map_present": 1,
"in_cleaning": 0,
"in_returning": 0,
"in_fresh_state": 1,
"lab_status": 3,
"water_box_status": 1,
"fan_power": 104,
"dnd_enabled": 0,
"map_status": 3,
"is_locating": 0,
"lock_status": 0,
"water_box_mode": 203,
"distance_off": 60,
"water_box_carriage_status": 0,
"mop_forbidden_enable": 0,
"adbumper_status": [
0,
0,
0
],
"dock_type": 5,
"dust_collection_status": 0,
"auto_dust_collection": 1,
"debug_mode": 0,
"switch_map_mode": 0,
"dock_error_status": 0,
"charge_status": 1
}
]
},
{
"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": [
{
"begin": 1699081963,
"end": 1699084920,
"duration": 2957,
"area": 45990000,
"error": 0,
"complete": 1,
"start_type": 1,
"clean_type": 1,
"finish_reason": 52,
"dust_collection_status": 1,
"map_flag": 0
}
]
},
{
"command": "get_room_mapping",
"param": [],
"fakeresponse": [
[
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": [
{
"max_multi_map": 4,
"max_bak_map": 0,
"multi_map_count": 2,
"map_info": [
{
"mapFlag": 0,
"add_time": 1699084990,
"length": 12,
"name": "Erdgeschoss ",
"bak_maps": []
},
{
"mapFlag": 1,
"add_time": 1690381278,
"length": 12,
"name": "Obergeschoss",
"bak_maps": []
}
]
}
]
},
{
"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": []
}

0 comments on commit da02a63

Please sign in to comment.