We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76605ac commit e24004eCopy full SHA for e24004e
1 file changed
roborock/devices/traits/b01/q10/vacuum.py
@@ -1,6 +1,6 @@
1
"""Traits for Q10 B01 devices."""
2
3
-from roborock.data.b01_q10.b01_q10_code_mappings import B01_Q10_DP
+from roborock.data.b01_q10.b01_q10_code_mappings import B01_Q10_DP, YXCleanType
4
5
from .command import CommandTrait
6
@@ -54,3 +54,17 @@ async def return_to_dock(self) -> None:
54
command=B01_Q10_DP.START_DOCK_TASK,
55
params={},
56
)
57
+
58
+ async def empty_dustbin(self) -> None:
59
+ """Empty the dustbin at the dock."""
60
+ await self._command.send(
61
+ command=B01_Q10_DP.START_DOCK_TASK,
62
+ params=2,
63
+ )
64
65
+ async def set_clean_mode(self, mode: YXCleanType) -> None:
66
+ """Set the cleaning mode (vacuum, mop, or both)."""
67
68
+ command=B01_Q10_DP.CLEAN_MODE,
69
+ params=mode.code,
70
0 commit comments