diff --git a/custom_components/xiaomi_miot/core/device_customizes.py b/custom_components/xiaomi_miot/core/device_customizes.py index 67b6d8cff..1660dce9e 100644 --- a/custom_components/xiaomi_miot/core/device_customizes.py +++ b/custom_components/xiaomi_miot/core/device_customizes.py @@ -2113,6 +2113,9 @@ 'select_properties': 'fan_level', 'number_properties': 'target_humidity', 'fan_services': 'air_fresh', + 'chunk_coordinators': [ + {'interval': 10, 'props': 'on,mode,target_temperature,fan_level'}, + ], }, '*.airer.*': { 'position_reverse': True, @@ -2122,16 +2125,25 @@ }, '*.airrtc.*': { 'switch_properties': 'air_conditioner.on', + 'chunk_coordinators': [ + {'interval': 10, 'props': 'on,mode,target_temperature,fan_level'}, + ], }, '*.airpurifier.*': { 'switch_properties': 'air_purifier.on,alarm.alarm,anion,uv', 'sensor_properties': 'relative_humidity,pm2_5_density,temperature,filter_life_level', + 'chunk_coordinators': [ + {'interval': 10, 'props': 'on,mode,fan_level'}, + ], }, '*.bhf_light.*': { 'sensor_properties': 'temperature', 'switch_properties': 'heating,blow,ventilation,dryer', 'select_properties': 'mode', 'number_properties': 'target_temperature,off_delay_time', + 'chunk_coordinators': [ + {'interval': 10, 'props': 'on,mode,target_temperature,fan_level'}, + ], }, '*.blanket.*': { 'sensor_properties': 'temperature', @@ -2158,6 +2170,9 @@ 'switch_properties': 'on,auto_keep_warm', 'button_actions': 'pause,cancel_cooking', 'select_actions': 'start_cook', + 'chunk_coordinators': [ + {'interval': 10, 'props': 'on,status'}, + ], }, '*.curtain.*': { 'switch_properties': 'motor_reverse', @@ -2196,6 +2211,9 @@ 'button_actions': 'turn_left,turn_right', 'number_properties': 'off_delay_time', 'switch_properties': 'fan_init_power_opt', + 'chunk_coordinators': [ + {'interval': 10, 'props': 'on,fan_level'}, + ], }, '*.fishbowl.*': { 'select_actions': 'pet_food_out', @@ -2220,6 +2238,9 @@ '*.heater.*': { 'switch_properties': 'heater.on,horizontal_swing,alarm.alarm,delay.delay', 'number_properties': 'countdown_time,delay_time', + 'chunk_coordinators': [ + {'interval': 10, 'props': 'on,mode,target_temperature,fan_level'}, + ], }, '*.humidifier.*': { 'select_properties': 'fan_level', @@ -2233,6 +2254,9 @@ '*.light.*': { 'number_properties': 'off_delay_time', 'switch_properties': 'init_power_opt,fan_init_power_opt', + 'chunk_coordinators': [ + {'interval': 10, 'props': 'on,brightness,color_temperature,color,mode'}, + ], }, '*.litter_box.*': { 'sensor_properties': 'usage_count,trash_can_status', @@ -2268,9 +2292,6 @@ '*.motion.*:trigger_at': { 'device_class': 'timestamp', }, - '*.sensor_occupy.*': { - 'sensor_properties': 'illumination,has_someone_duration,no_one_duration', - }, '*.oven.*': { 'sensor_properties': 'temperature,left_time,cook_time,working_time', 'number_properties': 'target_temperature', @@ -2279,15 +2300,23 @@ '*.plantmonitor.*': { 'sensor_properties': 'soil_ec,illumination,temperature,relative_humidity', }, - '*.senpres.*': { - 'binary_sensor_properties': 'pressure_present_state', - 'sensor_properties': 'pressure_not_present_duration', + '*.plug.*': { + 'chunk_coordinators': [ + {'interval': 10, 'props': 'on,electric_power'}, + ], }, '*.s_lamp.*': { 'sensor_properties': 'left_time', 'switch_properties': 'uv,radar_on,lighting.on', 'number_properties': 'target_time', }, + '*.senpres.*': { + 'binary_sensor_properties': 'pressure_present_state', + 'sensor_properties': 'pressure_not_present_duration', + }, + '*.sensor_occupy.*': { + 'sensor_properties': 'illumination,has_someone_duration,no_one_duration', + }, '*.sensor_smoke.*': { 'binary_sensor_attributes': 'smoke_status', 'miio_cloud_props': '4117', @@ -2302,6 +2331,11 @@ 'select_properties': 'mode', 'number_properties': 'target_time', }, + '*.switch.*': { + 'chunk_coordinators': [ + {'interval': 10, 'props': 'on'}, + ], + }, '*.toothbrush.*': { 'miio_cloud_props': 'event.16', 'miio_cloud_props_template': 'ble_toothbrush_events',