From 12b37635ca378c343d0a13e127d3512ddc8ac5c1 Mon Sep 17 00:00:00 2001 From: Brandon Chen Date: Thu, 13 Jun 2024 20:22:25 +0800 Subject: [PATCH] improve for dmaker.fan.p28 Expose more features of dmaker.fan.p28 --- custom_components/xiaomi_miot/core/device_customizes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/xiaomi_miot/core/device_customizes.py b/custom_components/xiaomi_miot/core/device_customizes.py index 6546a428f..7f72643fa 100644 --- a/custom_components/xiaomi_miot/core/device_customizes.py +++ b/custom_components/xiaomi_miot/core/device_customizes.py @@ -513,8 +513,9 @@ 'percentage_property': 'prop.2.6', }, 'dmaker.fan.p28': { + 'switch_properties': 'alarm,horizontal_swing,vertical_swing,swing_all,off_to_center', 'percentage_property': 'speed_level', - 'button_properties': 'swing_updown_manual,swing_lr_manual,back_to_center', + 'button_properties': 'swing_updown_manual,swing_lr_manual,back_to_center,start_left,start_right,start_up,start_down', }, 'dmaker.fan.p33': { 'percentage_property': 'prop.2.6',