From a4c75ba7350ade76c3698f097fd87aab6df06741 Mon Sep 17 00:00:00 2001 From: Alexey Khit Date: Tue, 24 Jan 2023 15:23:09 +0300 Subject: [PATCH] Add battery conv to XMWSDJ04MMC --- custom_components/xiaomi_gateway3/core/converters/devices.py | 1 + 1 file changed, 1 insertion(+) diff --git a/custom_components/xiaomi_gateway3/core/converters/devices.py b/custom_components/xiaomi_gateway3/core/converters/devices.py index b17d24c3..871f90d4 100644 --- a/custom_components/xiaomi_gateway3/core/converters/devices.py +++ b/custom_components/xiaomi_gateway3/core/converters/devices.py @@ -1192,6 +1192,7 @@ # https://github.com/AlexxIT/XiaomiGateway3/issues/929 MathConv("temperature", mi="3.p.1001", min=-30, max=100, round=1), MathConv("humidity", mi="3.p.1008", min=0, max=100, round=1), + Converter("battery", mi="2.p.1003"), Converter("battery", "sensor", enabled=None), # no in new firmwares ], }, {