Skip to content

Commit

Permalink
Adding "Go to target" state description for Roborock S50. (#163)
Browse files Browse the repository at this point in the history
* Modified to support zoned cleaning mode of Roborock S50.

* Added "Go to target" state description for Roborock S50.
  • Loading branch information
hastarin authored and rytilahti committed Jan 20, 2018
1 parent c7d9a67 commit 996747b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions miio/vacuumcontainers.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def state(self) -> str:
13: 'Unknown 13',
14: 'Updating',
15: 'Unknown 15',
16: 'Unknown 16',
16: 'Going to target',
17: 'Zoned cleaning',
}
return states[int(self.state_code)]
Expand Down Expand Up @@ -208,7 +208,8 @@ def in_cleaning(self) -> bool:

@property
def is_on(self) -> bool:
"""True if device is currently cleaning (either automatic, manual or spot)."""
"""True if device is currently cleaning (either automatic, manual,
spot, or zone)."""
return self.state_code == 5 or \
self.state_code == 7 or \
self.state_code == 11 or \
Expand Down

0 comments on commit 996747b

Please sign in to comment.