Skip to content

Commit 11c9dff

Browse files
committed
Add support lemesh.curtain.cura01 #1617 by @will-huang9531
1 parent 9bf645b commit 11c9dff

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

custom_components/xiaomi_gateway3/core/devices.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4728,6 +4728,15 @@
47284728
BoolConv("sleep_aid_mode", "switch", mi="2.p.8", entity=ENTITY_CONFIG),
47294729
MapConv("flow", "select", mi="2.p.9", map={0: "Auto", 1: "Immediately"}, entity=ENTITY_CONFIG),
47304730
],
4731+
}, {
4732+
7222: ["LeMesh", "Curtain Motor", "lemesh.curtain.cura01"],
4733+
"spec": [
4734+
MapConv("motor", "cover", mi="2.p.1", map={1: "stop", 2: "open", 0: "close"}),
4735+
BaseConv("target_position", mi="2.p.6"),
4736+
CurtainPosConv("position", mi="2.p.5"),
4737+
BaseConv("motor_reverse", "switch", mi="2.p.4"),
4738+
BoolConv("on", "switch", mi="2.p.3"),
4739+
],
47314740
}, {
47324741
"default": "mesh", # default Mesh device
47334742
"spec": [

0 commit comments

Comments
 (0)