Skip to content

Commit

Permalink
Merge pull request #1347 from EddieLi97/xiaomi_plug_mcn003
Browse files Browse the repository at this point in the history
update converter for XMZNCZ01LM
  • Loading branch information
AlexxIT authored May 6, 2024
2 parents 1180982 + 552228e commit 095cc7b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_components/xiaomi_gateway3/core/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -3116,12 +3116,16 @@
],
}, {
13521: ["Xiaomi", "Xiaomi Smart Wall Outlet Pro", "XMZNCZ01LM", "xiaomi.plug.mcn001"],
17885: ["Xiaomi", "Xiaomi Smart Wall Outlet Pro", "XMZNCZ01LM", "xiaomi.plug.mcn003"],
"spec": [
BaseConv("outlet", "switch", mi="2.p.1"),
MapConv("power_on_state", "select", mi="2.p.2", map={0: "default", 1: "off", 2: "on"}),
MapConv("fault", "sensor", mi="2.p.3", map={0: "No Faults", 1: "Over Temperature", 2: "Overload", 3: "Overload And Overheat"}),
MathConv("energy", "sensor", mi="3.p.1", round=2, step=0.01),
MathConv("power", "sensor", mi="3.p.6", round=1),
BaseConv("power_consumption_accumulation_way", "binary_sensor", mi="3.p.7", entity=ENTITY_DIAGNOSTIC),
BaseConv("led", "switch", mi="4.p.1"),
BaseConv("child_lock", "switch", mi="5.p.1"), # config
],
}, {
7082: ["pmfbj", "Panasonic Ceiling Light", "pmfbj.light.xsx340"],
Expand Down

0 comments on commit 095cc7b

Please sign in to comment.