Skip to content

Commit cb999b4

Browse files
authored
Merge pull request #1681 from w101723/sixwgh
Add support for sixwgh.plug.v8icm1
2 parents c642604 + e66cbeb commit cb999b4

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

custom_components/xiaomi_gateway3/core/devices.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5228,6 +5228,36 @@
52285228
# ConstConv("action", mi="7.e.15", value="overcharging_off"),
52295229
# ConstConv("action", mi="7.e.16", value="mixed_mode"),
52305230
],
5231+
}, {
5232+
# https://home.miot-spec.com/spec/sixwgh.plug.v8icm1
5233+
26435: ["SIXWGH", "Wenguanghui Smart Socket (Mesh Power Meter)", "sixwgh.plug.v8icm1"],
5234+
"spec": [
5235+
BaseConv("switch", "switch", mi="2.p.1"),
5236+
MathConv("energy", "sensor", mi="4.p.1", multiply=0.0001, round=3),
5237+
MathConv("power", "sensor", mi="4.p.2", round=3),
5238+
MathConv("voltage", "sensor", mi="4.p.3"),
5239+
MathConv("current", "sensor", mi="4.p.4", multiply=0.001, round=3),
5240+
# BaseConv("auxiliary_switch", "switch", mi="7.p.1"),
5241+
# BaseConv("voice_disable", "switch", mi="7.p.2"),
5242+
# BaseConv("button_type", "sensor", mi="8.p.1"),
5243+
# BaseConv("action", "sensor"),
5244+
# ConstConv("action", mi="7.e.1", value="normal_mode"),
5245+
# ConstConv("action", mi="7.e.2", value="wireless_mode"),
5246+
# ConstConv("action", mi="7.e.3", value="jog_mode"),
5247+
# ConstConv("action", mi="7.e.4", value="follow_led"),
5248+
# ConstConv("action", mi="7.e.5", value="opposition_led"),
5249+
# ConstConv("action", mi="7.e.6", value="on_led"),
5250+
# ConstConv("action", mi="7.e.7", value="off_led"),
5251+
# ConstConv("action", mi="7.e.8", value="local_timing_on"),
5252+
# ConstConv("action", mi="7.e.9", value="local_timing_off"),
5253+
# ConstConv("action", mi="7.e.10", value="cycle_timing_on"),
5254+
# ConstConv("action", mi="7.e.11", value="cycle_timing_off"),
5255+
# ConstConv("action", mi="7.e.12", value="led_config_on"),
5256+
# ConstConv("action", mi="7.e.13", value="led_config_off"),
5257+
# ConstConv("action", mi="7.e.14", value="overcharging_on"),
5258+
# ConstConv("action", mi="7.e.15", value="overcharging_off"),
5259+
# ConstConv("action", mi="7.e.16", value="mixed_mode"),
5260+
],
52315261
}, {
52325262
21145: ["PTX", "AK4 Pro Mesh2.0", "090615.switch.akpro4"],
52335263
"spec": [

0 commit comments

Comments
 (0)