From f0af6b23a961500008664488e800bde3525afd2f Mon Sep 17 00:00:00 2001 From: Alone Date: Tue, 31 Dec 2024 11:42:29 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=A0=20improve=20for=20germicidal=20lam?= =?UTF-8?q?p=20(#2257)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/xiaomi_miot/core/device_customizes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/custom_components/xiaomi_miot/core/device_customizes.py b/custom_components/xiaomi_miot/core/device_customizes.py index a00687089..2609bfb19 100644 --- a/custom_components/xiaomi_miot/core/device_customizes.py +++ b/custom_components/xiaomi_miot/core/device_customizes.py @@ -2414,8 +2414,11 @@ }, '*.s_lamp.*': { 'sensor_properties': 'left_time', - 'switch_properties': 'uv,radar_on,lighting.on', + 'switch_properties': 'on,uv,radar_on', 'number_properties': 'target_time', + 'chunk_coordinators': [ + {'interval': 20, 'props': 'on,uv,target_time,left_time'}, + ], }, '*.senpres.*': { 'binary_sensor_properties': 'pressure_present_state',