From 996747bd2d782b68ff8fda86c088615243344e10 Mon Sep 17 00:00:00 2001 From: Jon Benson Date: Sat, 20 Jan 2018 13:05:37 +1100 Subject: [PATCH] Adding "Go to target" state description for Roborock S50. (#163) * Modified to support zoned cleaning mode of Roborock S50. * Added "Go to target" state description for Roborock S50. --- miio/vacuumcontainers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/miio/vacuumcontainers.py b/miio/vacuumcontainers.py index b7a213c06..7920e5aa5 100644 --- a/miio/vacuumcontainers.py +++ b/miio/vacuumcontainers.py @@ -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)] @@ -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 \