From d4d4f25415de080acebf0f12a2b670088784a208 Mon Sep 17 00:00:00 2001 From: Alone Date: Wed, 6 Mar 2024 13:25:17 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A4=20improve=20for=20xiaomi.blanket.m?= =?UTF-8?q?j2=20(#1547)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/xiaomi_miot/core/device_customizes.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/custom_components/xiaomi_miot/core/device_customizes.py b/custom_components/xiaomi_miot/core/device_customizes.py index 7a1cbe20f..110f01259 100644 --- a/custom_components/xiaomi_miot/core/device_customizes.py +++ b/custom_components/xiaomi_miot/core/device_customizes.py @@ -1295,6 +1295,12 @@ 'xiaomi.airp.*': { 'exclude_miot_services': 'custom_service', }, + 'xiaomi.blanket.mj2': { + 'exclude_miot_properties': 'fault,sleep_setting', + 'switch_properties': 'alarm,indicator_light.on,antifreezing_switch,anti_scald_switch', + 'number_properties': 'target_temperature,countdown_time', + 'select_properties': 'water_level', + }, 'xiaomi.controller.86v1': { 'switch_properties': 'mute,sleep_mode,auto_screen_off,auto_screen_brightness,touch_sound,key_name_display', 'select_properties': 'mode,mibrain_level,mico_level,display_state,wallpaper',