From cb8ea877f83b24595ef39f6b01fbbac28a2dc50a Mon Sep 17 00:00:00 2001 From: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> Date: Mon, 29 Nov 2021 01:49:58 +0100 Subject: [PATCH] Add more supported vacuum models (#1173) * Add S4 to the list of supported models. for referecne: https://github.com/home-assistant/core/issues/58550#issuecomment-953785985 Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> * Add s4 max to supported vacuum models https://github.com/home-assistant/core/issues/57474#issuecomment-955740462 Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> * Add Roborock S6 Pure to support vacuum models. https://github.com/home-assistant/core/issues/58550#issuecomment-956351910 Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> --- README.rst | 2 +- miio/integrations/vacuum/roborock/vacuum.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index ec9a5c1c4..af80c26d1 100644 --- a/README.rst +++ b/README.rst @@ -100,7 +100,7 @@ To ease the process of setting up a development environment we have prepared `a Supported devices ----------------- -- Xiaomi Mi Robot Vacuum V1, S5, S5 MAX, M1S, S7 +- Xiaomi Mi Robot Vacuum V1, S4, S4 MAX, S5, S5 MAX, S6 Pure, M1S, S7 - Xiaomi Mi Home Air Conditioner Companion - Xiaomi Mi Smart Air Conditioner A (xiaomi.aircondition.mc1, mc2, mc4, mc5) - Xiaomi Mi Air Purifier 2, 3H, 3C, Pro (zhimi.airpurifier.m2, mb3, mb4, v7) diff --git a/miio/integrations/vacuum/roborock/vacuum.py b/miio/integrations/vacuum/roborock/vacuum.py index 519f95653..37ca770aa 100644 --- a/miio/integrations/vacuum/roborock/vacuum.py +++ b/miio/integrations/vacuum/roborock/vacuum.py @@ -122,18 +122,24 @@ class CarpetCleaningMode(enum.Enum): ROCKROBO_V1 = "rockrobo.vacuum.v1" +ROCKROBO_S4 = "roborock.vacuum.s4" +ROCKROBO_S4_MAX = "roborock.vacuum.a19" ROCKROBO_S5 = "roborock.vacuum.s5" ROCKROBO_S5_MAX = "roborock.vacuum.s5e" ROCKROBO_S6 = "roborock.vacuum.s6" +ROCKROBO_S6_PURE = "roborock.vacuum.a08" ROCKROBO_S7 = "roborock.vacuum.a15" ROCKROBO_S6_MAXV = "roborock.vacuum.a10" ROCKROBO_E2 = "roborock.vacuum.e2" SUPPORTED_MODELS = [ ROCKROBO_V1, + ROCKROBO_S4, + ROCKROBO_S4_MAX, ROCKROBO_S5, ROCKROBO_S5_MAX, ROCKROBO_S6, + ROCKROBO_S6_PURE, ROCKROBO_S7, ROCKROBO_S6_MAXV, ROCKROBO_E2,