From c08bfc96943ee2720f22d481ec18fa322c3a1ed9 Mon Sep 17 00:00:00 2001 From: Alone Date: Fri, 13 Dec 2024 18:55:57 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=88=20improve=20for=20mmgg=20feeder=20?= =?UTF-8?q?(#2003)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xiaomi_miot/core/device_customizes.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/custom_components/xiaomi_miot/core/device_customizes.py b/custom_components/xiaomi_miot/core/device_customizes.py index ad67d5700..ec0f3fb7f 100644 --- a/custom_components/xiaomi_miot/core/device_customizes.py +++ b/custom_components/xiaomi_miot/core/device_customizes.py @@ -1098,25 +1098,31 @@ 'binary_sensor_properties': 'outletstatus,doorstatus', 'sensor_properties': 'fault,pet_food_left_level,outfood_num,cleantime,desiccant_left_time', 'number_properties': 'key_stat,indicator_light.on', - 'select_actions': 'pet_food_out', 'exclude_miot_properties': 'outfood_id,contrycode,feddplan_string,factory_result,phon_time_zone' 'feedplan_hour,feedplan_min,feedplan_unit,feedplan_stat,feedplan_id,getfeedplan_num', }, + 'mmgg.feeder.fi1:pet_food_out': { + 'action_params': 1, + }, 'mmgg.feeder.inland': { 'chunk_properties': 1, 'button_actions': 'pet_food_out,resetclean,reset_desiccant_life', 'binary_sensor_properties': 'outletstatus,doorstatus', 'sensor_properties': 'pet_food_left_level,outfood_num,foodstatus,desiccant_left_time,cleantime', 'switch_properties': 'key_stat,indicator_light.on', - 'select_actions': 'pet_food_out', 'exclude_miot_properties': 'fault,outfood_id,contrycode,feddplan_string,factory_result,phon_time_zone,' 'feedplan_hour,feedplan_min,feedplan_unit,feedplan_stat,feedplan_id,getfeedplan_num', }, + 'mmgg.feeder.inland:pet_food_out': { + 'action_params': 1, + }, 'mmgg.feeder.petfeeder': { - 'button_actions': 'reset_desiccant_life', + 'button_actions': 'pet_food_out,reset_desiccant_life', 'sensor_properties': 'pet_food_left_level,feed_today,desiccant_left_time,cleantime', 'switch_properties': 'feedstatus', - 'select_actions': 'pet_food_out', + }, + 'mmgg.feeder.petfeeder:pet_food_out': { + 'action_params': 1, }, 'mmgg.litter_box.lbc1': { 'binary_sensor_properties': 'warehouse_uninstall,cover_open,roller_uninstall,device_dump,'