From 17663215bd14e79acf058a9692a5942c2e7ee154 Mon Sep 17 00:00:00 2001 From: pbtsrc Date: Fri, 17 Nov 2023 14:52:14 +0300 Subject: [PATCH] set numeric format for water-level and actual-speed --- .../xiaomi_miot/core/miot_specs_extend.json | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/custom_components/xiaomi_miot/core/miot_specs_extend.json b/custom_components/xiaomi_miot/core/miot_specs_extend.json index f5e5f289a..d0a10c0d1 100644 --- a/custom_components/xiaomi_miot/core/miot_specs_extend.json +++ b/custom_components/xiaomi_miot/core/miot_specs_extend.json @@ -1600,6 +1600,34 @@ } ] } + ], + + "zhimi.humidifier.ca4": [ + { + "iid": 2, + "properties": [ + { + "iid": 7, + "type": "urn:miot-spec-v2:property:water-level", + "format": "uint8", + "access": ["read", "notify"], + "unit": "percentage", + "value-range": [0, 100, 1] + } + ] + }, + { + "iid": 7, + "properties": [ + { + "iid": 1, + "type": "urn:zhimi-spec:property:actual-speed", + "format": "uint32", + "access": ["read"], + "unit": "rpm", + "value-range": [0, 2000, 1] + } + ] + } ] - }