From bd7b4dd78c4f44eddcda460e203971e4b34b28de Mon Sep 17 00:00:00 2001 From: Necroneco Date: Wed, 18 Oct 2023 11:08:41 +0800 Subject: [PATCH] Add power to Xiaomi Mesh Wall Switch (Neutral Wire) --- custom_components/xiaomi_gateway3/core/converters/devices.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/custom_components/xiaomi_gateway3/core/converters/devices.py b/custom_components/xiaomi_gateway3/core/converters/devices.py index cfbe5333..b5a7204f 100644 --- a/custom_components/xiaomi_gateway3/core/converters/devices.py +++ b/custom_components/xiaomi_gateway3/core/converters/devices.py @@ -2332,6 +2332,7 @@ 0: "nofaults", 1: "overtemperature", 2: "overload", 3: "overtemperature-overload" }), + MathConv("power", "sensor", mi="5.p.6", round=1), ], }, { 6380: ["Xiaomi", "Mesh Double Wall Switch (Neutral Wire)", "XMQBKG02LM"], @@ -2352,6 +2353,7 @@ 0: "nofaults", 1: "overtemperature", 2: "overload", 3: "overtemperature-overload" }), + MathConv("power", "sensor", mi="4.p.6", round=1), ], }, { 6381: ["Xiaomi", "Mesh Triple Wall Switch (Neutral Wire)", "XMQBKG03LM"], @@ -2379,6 +2381,7 @@ 0: "nofaults", 1: "overtemperature", 2: "overload", 3: "overtemperature-overload" }), + MathConv("power", "sensor", mi="5.p.6", round=1), ], }, { 5195: ["YKGC", "LS Smart Curtain Motor", "LSCL"],