Skip to content

Commit ac0c93b

Browse files
committed
🦎 q7: add clean_segments helper for room-based cleaning
1 parent df84567 commit ac0c93b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

roborock/devices/traits/b01/q7/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,17 @@ async def start_clean(self) -> None:
8787
},
8888
)
8989

90+
async def clean_segments(self, room_ids: list[int]) -> None:
91+
"""Start segment/room cleaning for the given room ids."""
92+
await self.send(
93+
command=RoborockB01Q7Methods.SET_ROOM_CLEAN,
94+
params={
95+
"clean_type": CleanTaskTypeMapping.ROOM.code,
96+
"ctrl_value": SCDeviceCleanParam.START.code,
97+
"room_ids": room_ids,
98+
},
99+
)
100+
90101
async def pause_clean(self) -> None:
91102
"""Pause cleaning."""
92103
await self.send(

0 commit comments

Comments
 (0)