Skip to content

Commit

Permalink
Merge pull request #1178 from Necroneco/power
Browse files Browse the repository at this point in the history
Add power to Xiaomi Mesh Wall Switch (Neutral Wire)
  • Loading branch information
AlexxIT authored Oct 18, 2023
2 parents 0610f0b + bd7b4dd commit f689177
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/xiaomi_gateway3/core/converters/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand All @@ -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"],
Expand Down Expand Up @@ -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"],
Expand Down

0 comments on commit f689177

Please sign in to comment.