Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add roborock mop washing actions #1730

Merged
merged 2 commits into from
Feb 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions miio/integrations/roborock/vacuum/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,18 @@ def set_mop_dryer_dry_time(self, dry_time_seconds: int) -> bool:
== "ok"
)

@command()
@action(name="Start mop washing", icon="mdi:wiper-wash")
def start_mop_washing(self) -> bool:
"""Start mop washing."""
return self.send("app_start_wash")[0] == "ok"

@command()
@action(name="Stop mop washing", icon="mdi:wiper-wash")
def stop_mop_washing(self) -> bool:
"""Start mop washing."""
return self.send("app_stop_wash")[0] == "ok"

@command()
@action(name="Start mop drying", icon="mdi:tumble-dryer")
def start_mop_drying(self) -> bool:
Expand Down