From 2b866fee616aa882d3b51664792e66237d35d666 Mon Sep 17 00:00:00 2001 From: Alone Date: Mon, 28 Oct 2024 16:32:22 +0800 Subject: [PATCH] =?UTF-8?q?=20=F0=9F=8D=83=20add=20support=20for=20xiaomi.?= =?UTF-8?q?airp.cpa4=20(#1674)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xiaomi_miot/core/device_customizes.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/custom_components/xiaomi_miot/core/device_customizes.py b/custom_components/xiaomi_miot/core/device_customizes.py index 76041dfc7..810c59e63 100644 --- a/custom_components/xiaomi_miot/core/device_customizes.py +++ b/custom_components/xiaomi_miot/core/device_customizes.py @@ -1401,6 +1401,16 @@ 'exclude_miot_services': 'iot_linkage,machine_state,flag_bit', 'exclude_miot_properties': 'enhance.timer', }, + 'xiaomi.airp.cpa4': { + 'button_actions': 'toggle,reset_filter_life', + 'sensor_properties': 'filter_life_level', + 'switch_properties': 'alarm', + 'select_properties': 'brightness,aqi_updata_heartbeat', + 'number_properties': 'favorite_level', + 'speed_property': 'favorite_level', + 'exclude_miot_services': None, + 'exclude_miot_properties': 'country_code,filter_used_time_dbg', + }, 'xiaomi.airp.mp4': { 'switch_properties': 'anion,alarm', 'light_services': 'screen',