From 26e7d82d1ca2b43d4334518badf04a2ac865c19d Mon Sep 17 00:00:00 2001 From: Alone Date: Wed, 25 Dec 2024 12:46:48 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20improve=20for=20xiaomi.vacuum.b1?= =?UTF-8?q?08gl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xiaomi_miot/core/device_customizes.py | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/custom_components/xiaomi_miot/core/device_customizes.py b/custom_components/xiaomi_miot/core/device_customizes.py index 47f371509..bdf098f7d 100644 --- a/custom_components/xiaomi_miot/core/device_customizes.py +++ b/custom_components/xiaomi_miot/core/device_customizes.py @@ -1740,11 +1740,25 @@ 'number_properties': 'speaker.volume', }, 'xiaomi.vacuum.b108gl': { - 'sensor_properties': 'status,fault,cleaning_area,cleaning_time,status_extend', + 'interval_seconds': 120, + 'sensor_properties': 'status,fault,cleaning_area,cleaning_time,charging_state,status_extend,' + 'brush_life_level,filter_life_level', 'binary_sensor_properties': 'mop_status', - 'switch_properties': 'edge_swing_tail_sweep,carpet_discriminate,carpet_boost,sweep_break_switch', - 'select_properties': 'sweep_mop_type,sweep_type,clean_times,suction_level,mop_water_output_level,mode,edge_sweep_frequency,carpet_cleaning_method', + 'switch_properties': 'edge_swing_tail_sweep,carpet_discriminate,carpet_boost,alarm,dnd_switch,' + 'carpet_avoidance,carpet_display,sweep_break_switch', + 'select_properties': 'sweep_mop_type,sweep_type,clean_times,suction_level,mop_water_output_level,mode,' + 'edge_sweep_frequency,carpet_cleaning_method', + 'number_properties': 'volume', + 'button_actions': 'start_sweep,stop_sweeping,start_only_sweep,start_mop,start_sweep_mop,stop_and_gocharge,' + 'pause_sweeping,continue_sweep,find_vacuum,start_charge,reset_brush_life,reset_filter_life', 'exclude_miot_services': 'vacuum_map', + 'configuration_entities': 'edge_swing_tail_sweep,carpet_discriminate,carpet_boost,alarm,dnd_switch,' + 'carpet_avoidance,carpet_display,sweep_break_switch,edge_sweep_frequency,' + 'carpet_cleaning_method,reset_brush_life,reset_filter_life', + 'chunk_coordinators': [ + {'interval': 10, 'props': 'status,mop_status,cleaning_area,cleaning_time,charging_state', 'notify': True}, + {'interval': 15, 'props': 'sweep_mop_type,sweep_type,mode,clean_times,suction_level'}, + ], }, 'xiaomi.vacuum.b108gl:cleaning_area': { 'value_ratio': 0.01,