From bd52d3199ed9e6ae5224f1add2efe907ff25e3ce Mon Sep 17 00:00:00 2001 From: Alone Date: Mon, 18 Nov 2024 21:59:03 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A1=20improve=20for=20devcea.light.ls2?= =?UTF-8?q?307=20(#1933)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/xiaomi_miot/core/device_customizes.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/custom_components/xiaomi_miot/core/device_customizes.py b/custom_components/xiaomi_miot/core/device_customizes.py index 2d3eab964..43399b1ff 100644 --- a/custom_components/xiaomi_miot/core/device_customizes.py +++ b/custom_components/xiaomi_miot/core/device_customizes.py @@ -520,6 +520,14 @@ 'sensor_properties': 'realtime_heart_rate,realtime_breath_rate,realtime_sleepstage', 'switch_properties': 'fast_update_switch', }, + 'devcea.light.ls2307': { + 'interval_seconds': 60, + 'exclude_miot_properties': 'update,colorful_set', + 'switch_properties': 'flex_switch,ac_status,power_on_state,custom_sleep_aid,custom_weak_up', + 'select_properties': 'ambient_light.mode', + 'number_properties': 'default_brightness,default_temperature,sleep_aid_time,wake_up_time,' + 'gradient_duration_on,gradient_duration_of,gradient_duration_aj,ambient_light.color', + }, 'deye.derh.u20a3': { 'target_humidity_ratio': 9.0909, },