Skip to content

Commit 9886a42

Browse files
committed
fix giot.plug.v8icm voltage and power_consumption units
1 parent 8d8d47a commit 9886a42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_components/xiaomi_gateway3/core/devices.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5085,9 +5085,9 @@
50855085
21478: ["GranwinIoT", "Gra Electricity Metering Controller V8 (Mesh)", "giot.plug.v8icm"],
50865086
"spec": [
50875087
BaseConv("switch", "switch", mi="2.p.1"),
5088-
MathConv("power_consumption", "sensor", mi="4.p.1", multiply=0.001, round=3, entity={"units": "kWh"}),
5088+
MathConv("power_consumption", "sensor", mi="4.p.1", multiply=0.0001, round=3, entity={"units": "kWh"}),
50895089
MathConv("electric_power", "sensor", mi="4.p.2", round=3, entity={"units": "W"}),
5090-
MathConv("voltage", "sensor", mi="4.p.3", multiply=0.001, round=2, entity={"units": "V"}),
5090+
MathConv("voltage", "sensor", mi="4.p.3", entity={"units": "V"}),
50915091
MathConv("electric_current", "sensor", mi="4.p.4", multiply=0.001, round=3, entity={"units": "A"}),
50925092
# BaseConv("auxiliary_switch", "switch", mi="7.p.1"),
50935093
# BaseConv("voice_disable", "switch", mi="7.p.2"),

0 commit comments

Comments
 (0)