From 12a11c0a2a5468050023756ecf269507c8abf7b2 Mon Sep 17 00:00:00 2001 From: Mick Vleeshouwer Date: Sat, 13 Aug 2022 19:23:38 +0000 Subject: [PATCH 1/3] Fix supported angles for mapped fans --- miio/integrations/fan/dmaker/fan_miot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/miio/integrations/fan/dmaker/fan_miot.py b/miio/integrations/fan/dmaker/fan_miot.py index 191010198..bdaa1de0c 100644 --- a/miio/integrations/fan/dmaker/fan_miot.py +++ b/miio/integrations/fan/dmaker/fan_miot.py @@ -101,6 +101,8 @@ MODEL_FAN_P9: [30, 60, 90, 120, 150], MODEL_FAN_P10: [30, 60, 90, 120, 140], MODEL_FAN_P11: [30, 60, 90, 120, 140], + MODEL_FAN_P15: [30, 60, 90, 120, 140], # mapped to P11 + MODEL_FAN_P18: [30, 60, 90, 120, 140], # mapped to P10 MODEL_FAN_P33: [30, 60, 90, 120, 140], } From 8b4d675668b84555fe9d6a95a9891db3cf93149f Mon Sep 17 00:00:00 2001 From: Mick Vleeshouwer Date: Sat, 13 Aug 2022 19:33:59 +0000 Subject: [PATCH 2/3] Run pre-commit hooks --- miio/integrations/fan/dmaker/fan_miot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miio/integrations/fan/dmaker/fan_miot.py b/miio/integrations/fan/dmaker/fan_miot.py index bdaa1de0c..24612ed5e 100644 --- a/miio/integrations/fan/dmaker/fan_miot.py +++ b/miio/integrations/fan/dmaker/fan_miot.py @@ -101,8 +101,8 @@ MODEL_FAN_P9: [30, 60, 90, 120, 150], MODEL_FAN_P10: [30, 60, 90, 120, 140], MODEL_FAN_P11: [30, 60, 90, 120, 140], - MODEL_FAN_P15: [30, 60, 90, 120, 140], # mapped to P11 - MODEL_FAN_P18: [30, 60, 90, 120, 140], # mapped to P10 + MODEL_FAN_P15: [30, 60, 90, 120, 140], # mapped to P11 + MODEL_FAN_P18: [30, 60, 90, 120, 140], # mapped to P10 MODEL_FAN_P33: [30, 60, 90, 120, 140], } From 6bb8bc719325516b10c3976f807e17cffe3a40f6 Mon Sep 17 00:00:00 2001 From: Mick Vleeshouwer Date: Sat, 13 Aug 2022 19:49:20 +0000 Subject: [PATCH 3/3] Add P15, P18 to the docs --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 0dd1678bc..ba5a3fe03 100644 --- a/README.rst +++ b/README.rst @@ -129,7 +129,7 @@ Supported devices - Xiaomi Philips Zhirui Bedroom Smart Lamp - Huayi Huizuo Lamps - Xiaomi Universal IR Remote Controller (Chuangmi IR) -- Xiaomi Mi Smart Pedestal Fan V2, V3, SA1, ZA1, ZA3, ZA4, ZA5 1C, P5, P9, P10, P11, P33 +- Xiaomi Mi Smart Pedestal Fan V2, V3, SA1, ZA1, ZA3, ZA4, ZA5 1C, P5, P9, P10, P11, P15, P18, P33 - Xiaomi Rosou SS4 Ventilator (leshow.fan.ss4) - Xiaomi Mi Air Humidifier V1, CA1, CA4, CB1, MJJSQ, JSQ, JSQ1, JSQ001 - Xiaomi Mi Water Purifier (Basic support: Turn on & off)