From a329f7d0aad1ded3effb45b8aae07cd802e8b0ec Mon Sep 17 00:00:00 2001 From: Alone Date: Sun, 7 Jul 2024 20:04:04 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20add=20support=20for=20lxzn.switch.c?= =?UTF-8?q?bcsmj=20(#1727)?= 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 fcdad3f4e..616dc2201 100644 --- a/custom_components/xiaomi_miot/core/device_customizes.py +++ b/custom_components/xiaomi_miot/core/device_customizes.py @@ -964,6 +964,12 @@ 'lumi.switch.*': { 'cloud_delay_update': 10, }, + 'lxzn.switch.cbcsmj': { + 'sensor_properties': 'temperature,electric_power', + 'select_properties': 'default_power_on_state', + 'switch_properties': 'electric_alarm_set,heat_alert_set,overcurrent_set,overvoltage_set,undervoltage_set', + 'number_properties': 'electric_alarm,heat_alert,overcurrent_alarm,overvoltage_alarm,undervoltage_alarm', + }, 'madv.cateye.mi3iot': { 'binary_sensor_properties': 'madv_doorbell.motion_detection',