Skip to content

Commit

Permalink
🍃 add sub-entities for xiaomi.airp.va4 (#1601)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Mar 27, 2024
1 parent 480b551 commit 01c2ed8
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion custom_components/xiaomi_miot/core/device_customizes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1344,6 +1344,17 @@
'brightness_for_off': 2,
'exclude_miot_services': 'rfid',
},
'xiaomi.airp.va4': {
'sensor_properties': 'relative_humidity,air_quality,pm2_5_density,temperature,hcho_density,filter_life_level',
'switch_properties': 'on,anion,uv,alarm',
'select_properties': 'air_purifier_favorite.fan_level',
'number_properties': 'aqi_updata_heartbeat',
'button_actions': 'reset_filter_life',
'light_services': 'screen',
'brightness_for_on': 0,
'brightness_for_off': 2,
'exclude_miot_services': 'rfid,custom_service,filter_debug',
},
'xiaomi.airp.*': {
'exclude_miot_services': 'custom_service',
},
Expand Down Expand Up @@ -1678,7 +1689,7 @@
},
'*.airpurifier.*': {
'main_miot_services': 'air_purifier',
'switch_properties': 'air_purifier.on,alarm.alarm',
'switch_properties': 'air_purifier.on,alarm.alarm,anion,uv',
'sensor_properties': 'relative_humidity,pm2_5_density,temperature,filter_life_level',
},
'*.bhf_light.*': {
Expand Down Expand Up @@ -1854,6 +1865,7 @@
}

DEVICE_CUSTOMIZES.update({
'*.airp.*': DEVICE_CUSTOMIZES.get('*.airpurifier.*') or {},
'*.door.*': DEVICE_CUSTOMIZES.get('*.lock.*') or {},
'*.dryer.*': DEVICE_CUSTOMIZES.get('*.dry.*') or {},
})

0 comments on commit 01c2ed8

Please sign in to comment.