Skip to content

Commit

Permalink
🔄 improve for update status
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Dec 24, 2024
1 parent 28c8fa2 commit db443ed
Showing 1 changed file with 40 additions and 6 deletions.
46 changes: 40 additions & 6 deletions custom_components/xiaomi_miot/core/device_customizes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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',
Expand All @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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',
Expand All @@ -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',
Expand All @@ -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',
Expand Down

0 comments on commit db443ed

Please sign in to comment.