From a57ee2ed1627982a1d8211df799a48d5f1f11464 Mon Sep 17 00:00:00 2001 From: weiting Date: Fri, 3 May 2024 17:35:40 +0800 Subject: [PATCH 1/2] add sub-entities for zimi.waterheater.h01 (#1457) --- custom_components/xiaomi_miot/core/device_customizes.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/custom_components/xiaomi_miot/core/device_customizes.py b/custom_components/xiaomi_miot/core/device_customizes.py index 8255eba91..ce3df8cd9 100644 --- a/custom_components/xiaomi_miot/core/device_customizes.py +++ b/custom_components/xiaomi_miot/core/device_customizes.py @@ -1718,7 +1718,14 @@ 'select_properties': 'link', 'light_services': 'light', }, - + 'zimi.waterheater.h01': { + 'sensor_properties': 'water_heater.status,water_level,temperature_tips,' + 'input_water_temp,water_pump_volt,remaining_time', + 'switch_properties': 'on,hot_water_recirculation,heat_preservation,jog_function,pressure_boost.status,' + 'cloud_preheater,in_cloud_timer,reminder,enhanced', + 'select_properties': 'light_off_time,effective,model', + 'number_properties': 'target_temperature,boost_value', + }, '*.aircondition.*': { 'sensor_properties': 'electricity.electricity', 'switch_properties': 'air_conditioner.on,alarm.alarm,heater', From 5d530e9befcdbe126952ddefd9ad6ff8cd36bd21 Mon Sep 17 00:00:00 2001 From: Alone Date: Sat, 11 May 2024 18:14:20 +0800 Subject: [PATCH 2/2] Update device_customizes.py --- .../xiaomi_miot/core/device_customizes.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/custom_components/xiaomi_miot/core/device_customizes.py b/custom_components/xiaomi_miot/core/device_customizes.py index ce3df8cd9..c10763565 100644 --- a/custom_components/xiaomi_miot/core/device_customizes.py +++ b/custom_components/xiaomi_miot/core/device_customizes.py @@ -1711,6 +1711,15 @@ 'device_class': 'energy', 'unit_of_measurement': 'kWh', }, + 'zimi.waterheater.h01': { + 'sensor_properties': 'water_heater.status,water_level,temperature_tips,' + 'input_water_temp,water_pump_volt,remaining_time', + 'switch_properties': 'on,hot_water_recirculation,heat_preservation,jog_function,pressure_boost.status,' + 'cloud_preheater,in_cloud_timer,water_trigger,reminder,enhanced', + 'select_properties': 'effective,model', + 'number_properties': 'target_temperature,light_off_time,children_mode_temp,comfort_mode_temp,adult_mode_temp,' + 'kitchen_mode_temp,pet_mode_temp,custom_time,boost_value', + }, 'zinguo.switch.b5m': { 'main_miot_services': 'switch-2', 'sensor_properties': 'temperature', @@ -1718,14 +1727,7 @@ 'select_properties': 'link', 'light_services': 'light', }, - 'zimi.waterheater.h01': { - 'sensor_properties': 'water_heater.status,water_level,temperature_tips,' - 'input_water_temp,water_pump_volt,remaining_time', - 'switch_properties': 'on,hot_water_recirculation,heat_preservation,jog_function,pressure_boost.status,' - 'cloud_preheater,in_cloud_timer,reminder,enhanced', - 'select_properties': 'light_off_time,effective,model', - 'number_properties': 'target_temperature,boost_value', - }, + '*.aircondition.*': { 'sensor_properties': 'electricity.electricity', 'switch_properties': 'air_conditioner.on,alarm.alarm,heater',