Skip to content

Commit

Permalink
Modified to support zoned cleaning mode of Roborock S50. (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
hastarin authored and rytilahti committed Jan 19, 2018
1 parent 842e4eb commit f5f4bbe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion miio/vacuumcontainers.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ def state(self) -> str:
12: 'Error',
13: 'Unknown 13',
14: 'Updating',
15: 'Unknown 15',
16: 'Unknown 16',
17: 'Zoned cleaning',
}
return states[int(self.state_code)]

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

@property
def got_error(self) -> bool:
Expand Down

0 comments on commit f5f4bbe

Please sign in to comment.