Skip to content

Commit

Permalink
Merge pull request #1499 from anguiao/patch-1
Browse files Browse the repository at this point in the history
Add support for zemi.curtain.zm85
  • Loading branch information
AlexxIT authored Nov 27, 2024
2 parents 94b76af + 5d43f6f commit 2c04ad5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions custom_components/xiaomi_gateway3/core/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -3849,6 +3849,15 @@
ConstConv("action", mi="14.e.2", value=BUTTON_DOUBLE),
ConstConv("action", mi="14.e.3", value=BUTTON_HOLD),
],
}, {
17182: ["Zemismart", "Smart Curtain", "zemi.curtain.zm85"],
"spec": [
MapConv("motor", "cover", mi="2.p.1", map={0: "stop", 1: "open", 2: "close"}),
BaseConv("target_position", mi="2.p.3"),
CurtainPosConv("position", mi="2.p.4"),
MapConv("run_state", mi="2.p.5", map={0: "stop", 1: "opening", 2: "closing"}),
BaseConv("motor_reverse", "switch", mi="2.p.6"),
],
}, {
"default": "mesh", # default Mesh device
"spec": [
Expand Down

0 comments on commit 2c04ad5

Please sign in to comment.