From c08d324aa815545cf752cfd96ed9154ea71a5bd7 Mon Sep 17 00:00:00 2001 From: Alone Date: Fri, 20 May 2022 12:58:12 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A6=20add=20sub=20entities=20for=20les?= =?UTF-8?q?how.humidifier.jsq1=20(#556)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xiaomi_miot/core/device_customizes.py | 3 +++ .../xiaomi_miot/core/miot_specs_extend.json | 20 +++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/custom_components/xiaomi_miot/core/device_customizes.py b/custom_components/xiaomi_miot/core/device_customizes.py index 68cbe89f7..fc39c9635 100644 --- a/custom_components/xiaomi_miot/core/device_customizes.py +++ b/custom_components/xiaomi_miot/core/device_customizes.py @@ -236,6 +236,9 @@ }, 'leshow.humidifier.jsq1': { 'miot_type': 'urn:miot-spec-v2:device:humidifier:0000A00E:leshow-jsq1:2', + 'sensor_properties': 'humidifier.water_level', + 'switch_properties': 'alarm,warm_wind_turn,turn_ovp,dry_turn,turn_off_dry_turn', + 'number_properties': 'screen_brightness,tsms_turn_off', }, 'lumi.acpartner.mcn02:electric_power': { 'value_ratio': 1, diff --git a/custom_components/xiaomi_miot/core/miot_specs_extend.json b/custom_components/xiaomi_miot/core/miot_specs_extend.json index fe9ae3d0c..10e37c32e 100644 --- a/custom_components/xiaomi_miot/core/miot_specs_extend.json +++ b/custom_components/xiaomi_miot/core/miot_specs_extend.json @@ -85,6 +85,26 @@ } ], + "leshow.humidifier.jsq1": [ + { + "iid": 8, + "properties": [ + { + "iid": 5, + "access": ["read"] + }, + { + "iid": 6, + "access": ["read", "write"] + }, + { + "iid": 7, + "access": ["read"] + } + ] + } + ], + "lumi.airer.acn01": [ { "iid": 2,