From b05f86652cc05f8236b579bcfea336bde0f5a336 Mon Sep 17 00:00:00 2001 From: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> Date: Fri, 29 Oct 2021 12:08:44 +0200 Subject: [PATCH 1/3] 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> --- README.rst | 2 +- miio/vacuum.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 137fe81d5..054ebfb30 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, S5, S5 MAX, 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/vacuum.py b/miio/vacuum.py index fbc1cde71..9ec3ace2b 100644 --- a/miio/vacuum.py +++ b/miio/vacuum.py @@ -121,6 +121,7 @@ class CarpetCleaningMode(enum.Enum): ROCKROBO_V1 = "rockrobo.vacuum.v1" +ROCKROBO_S4 = "roborock.vacuum.s4" ROCKROBO_S5 = "roborock.vacuum.s5" ROCKROBO_S5_MAX = "roborock.vacuum.s5e" ROCKROBO_S6 = "roborock.vacuum.s6" @@ -130,6 +131,7 @@ class CarpetCleaningMode(enum.Enum): SUPPORTED_MODELS = [ ROCKROBO_V1, + ROCKROBO_S4, ROCKROBO_S5, ROCKROBO_S5_MAX, ROCKROBO_S6, From 812904760ae02c4adfd02a38db822d8e3a40fdfa Mon Sep 17 00:00:00 2001 From: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> Date: Sun, 31 Oct 2021 17:15:31 +0100 Subject: [PATCH 2/3] 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> --- README.rst | 2 +- miio/vacuum.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 137fe81d5..bb21a06ce 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 MAX, S5, S5 MAX, 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/vacuum.py b/miio/vacuum.py index fbc1cde71..ff3c78468 100644 --- a/miio/vacuum.py +++ b/miio/vacuum.py @@ -121,6 +121,7 @@ class CarpetCleaningMode(enum.Enum): ROCKROBO_V1 = "rockrobo.vacuum.v1" +ROCKROBO_S4_MAX = "roborock.vacuum.a19" ROCKROBO_S5 = "roborock.vacuum.s5" ROCKROBO_S5_MAX = "roborock.vacuum.s5e" ROCKROBO_S6 = "roborock.vacuum.s6" @@ -130,6 +131,7 @@ class CarpetCleaningMode(enum.Enum): SUPPORTED_MODELS = [ ROCKROBO_V1, + ROCKROBO_S4_MAX, ROCKROBO_S5, ROCKROBO_S5_MAX, ROCKROBO_S6, From 11ca4040dd7a5f9d8a7791d7404c6a81863ebcf5 Mon Sep 17 00:00:00 2001 From: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> Date: Mon, 1 Nov 2021 17:15:37 +0100 Subject: [PATCH 3/3] 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/vacuum.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 137fe81d5..97e24e4bb 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, 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/vacuum.py b/miio/vacuum.py index fbc1cde71..2fec39517 100644 --- a/miio/vacuum.py +++ b/miio/vacuum.py @@ -124,6 +124,7 @@ class CarpetCleaningMode(enum.Enum): 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" @@ -133,6 +134,7 @@ class CarpetCleaningMode(enum.Enum): ROCKROBO_S5, ROCKROBO_S5_MAX, ROCKROBO_S6, + ROCKROBO_S6_PURE, ROCKROBO_S7, ROCKROBO_S6_MAXV, ROCKROBO_E2,