Skip to content

Commit 9c72ce5

Browse files
committed
add PTX X1 Curtain Motor
1 parent 149ee22 commit 9c72ce5

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

custom_components/xiaomi_gateway3/core/devices.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5326,6 +5326,17 @@
53265326
MapConv("power_on_state", "select", mi="2.p.5", map={0: "memory", 1: "on", 2: "off"}),
53275327
]
53285328
}, {
5329+
# https://home.miot-spec.com/spec/090615.curtain.curx1
5330+
22088: ["PTX", "X1 Curtain Motor", "090615.curtain.curx1"],
5331+
"spec": [
5332+
MapConv("motor", "cover", mi="2.p.1", map={0: "pause", 1: "open", 2: "close", 3: "toggle"}),
5333+
CurtainPosConv("position", mi="2.p.3"),
5334+
BaseConv("target_position", mi="2.p.4"),
5335+
MapConv("status", mi="2.p.2", map={0: "stop", 1: "opening", 2: "closing"}),
5336+
BaseConv("motor_reverse", "switch", mi="2.p.5"),
5337+
MapConv("speed-level", "select", mi="2.p.7", map={0: "high", 1: "medium", 2: "low"}),
5338+
],
5339+
},{
53295340
"default": "mesh", # default Mesh device
53305341
"spec": [
53315342
BaseConv("switch", "switch", mi="2.p.1", entity=ENTITY_LAZY), # bool

0 commit comments

Comments
 (0)