From 658ee2e82e54233372f19e4f67bbf055b60eaee4 Mon Sep 17 00:00:00 2001 From: paranerd Date: Thu, 7 Dec 2023 00:55:04 +0100 Subject: [PATCH] Added support for Xiaomi Smart Space Heater 1S (zhimi.heater.mc2a) (#1868) This PR adds support for Xiaomi Smart Space Heater 1S (zhimi.heater.mc2a). Changes are minimal as the mc2a is basically identical to the mc2. --- miio/integrations/zhimi/heater/heater_miot.py | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/miio/integrations/zhimi/heater/heater_miot.py b/miio/integrations/zhimi/heater/heater_miot.py index eba021e8b..445aa1d1a 100644 --- a/miio/integrations/zhimi/heater/heater_miot.py +++ b/miio/integrations/zhimi/heater/heater_miot.py @@ -25,6 +25,22 @@ # Indicator light (siid=7) "led_brightness": {"siid": 7, "piid": 3}, }, + "zhimi.heater.mc2a": { + # Source https://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:heater:0000A01A:zhimi-mc2a:1 + # Heater (siid=2) + "power": {"siid": 2, "piid": 1}, + "target_temperature": {"siid": 2, "piid": 5}, + # Countdown (siid=3) + "countdown_time": {"siid": 3, "piid": 1}, + # Environment (siid=4) + "temperature": {"siid": 4, "piid": 7}, + # Physical Control Locked (siid=5) + "child_lock": {"siid": 5, "piid": 1}, + # Alarm (siid=6) + "buzzer": {"siid": 6, "piid": 1}, + # Indicator light (siid=7) + "led_brightness": {"siid": 7, "piid": 3}, + }, "zhimi.heater.za2": { # Source https://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:heater:0000A01A:zhimi-za2:1 # Heater (siid=2) @@ -65,6 +81,10 @@ "temperature_range": (18, 28), "delay_off_range": (0, 12 * 3600), }, + "zhimi.heater.mc2a": { + "temperature_range": (18, 28), + "delay_off_range": (0, 12 * 3600), + }, "zhimi.heater.za2": { "temperature_range": (16, 28), "delay_off_range": (0, 8 * 3600),