From 286e8bba05531a54a32c79e3a12e706377b3cbd4 Mon Sep 17 00:00:00 2001 From: ptbsare <496725701@qq.com> Date: Thu, 4 Jan 2024 10:24:51 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B0=20add=20miio2miot=20for=20yunmi.pl?= =?UTF-8?q?machine.mg2=20(#1433)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xiaomi_miot/core/miio2miot_specs.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/custom_components/xiaomi_miot/core/miio2miot_specs.py b/custom_components/xiaomi_miot/core/miio2miot_specs.py index fe2fe3b10c..433b1bd5e2 100644 --- a/custom_components/xiaomi_miot/core/miio2miot_specs.py +++ b/custom_components/xiaomi_miot/core/miio2miot_specs.py @@ -1275,6 +1275,22 @@ def cbk(prop, params, props, **kwargs): 'prop.2.3': {'prop': 'curr_tempe'}, }, }, + 'yunmi.plmachine.mg2': { + 'miio_props': ['fault','run_status', 'water_remain_time', 'custom_tempe1', 'min_set_tempe', 'drink_remind_time', 'water_state', 'water_fetch'], + 'entity_attrs': ['fault','run_status', 'water_remain_time', 'custom_tempe1', 'min_set_tempe', 'drink_remind_time', 'water_state', 'water_fetch'], + 'chunk_properties': 1, + 'miio_specs': { + 'prop.2.4': {'prop': 'work_mode'}, + 'prop.2.5': {'prop': 'curr_tempe'}, + 'prop.2.6': { + 'prop': 'setup_tempe', + 'setter': 'set_tempe_setup', + 'set_template': '{{ [1, value|int(52)] }}', + }, + 'prop.2.7': {'prop': 'uv_state'}, + 'prop.3.1': {'prop': 'tds'}, + }, + }, 'scishare.coffee.s1102': { # set_methods: # "Espresso_Coffee_Set [coffee.coffee, coffee.temp],