From c2dfad5a35b8b52eb2f8e500a1d605d87caf07b9 Mon Sep 17 00:00:00 2001 From: Alone Date: Wed, 6 Mar 2024 13:18:11 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8B=20add=20energy=20sensor=20for=20cu?= =?UTF-8?q?co.plug.v2eur=20(#1347)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/xiaomi_miot/core/device_customizes.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/custom_components/xiaomi_miot/core/device_customizes.py b/custom_components/xiaomi_miot/core/device_customizes.py index 1bea311f41..7a1cbe20f7 100644 --- a/custom_components/xiaomi_miot/core/device_customizes.py +++ b/custom_components/xiaomi_miot/core/device_customizes.py @@ -354,6 +354,13 @@ 'main_miot_services': 'switch-2', 'exclude_miot_services': 'custome,physical_controls_locked,indicator_light', }, + 'cuco.plug.v2eur': { + 'sensor_properties': 'electric_power', + 'switch_properties': 'charging_protection.on,max_power_limit.on,cycle.status,delay.delay', + 'number_properties': 'charging_protection.power,protect_time,max_power_limit.power', + 'sensor_attributes': 'power_cost_today,power_cost_month', + 'stat_power_cost_key': '11.1', + }, 'cuco.plug.v3': { 'main_miot_services': 'switch-2', 'sensor_attributes': 'power_cost_today,power_cost_month',