Skip to content

Commit

Permalink
Add roborock mop washing actions (#1730)
Browse files Browse the repository at this point in the history
  • Loading branch information
starkillerOG authored Feb 10, 2023
1 parent cd67844 commit 067dc19
Showing 1 changed file with 12 additions and 0 deletions.
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

0 comments on commit 067dc19

Please sign in to comment.