Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PTX mesh curtain motor #1144

Merged
merged 2 commits into from
Sep 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions custom_components/xiaomi_gateway3/core/converters/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -2408,6 +2408,17 @@
enabled=False), # Tested
BoolConv("flex_switch", "switch", mi="3.p.4", enabled=False), # uint8 # Tested
],
},{
# https://home.miot-spec.com/spec/090615.curtain.s2mesh
# run_state attribute is not available according to the spec
6461: ["PTX", "Smart Curtain Motor", "090615.curtain.s2mesh"],
"spec": [
MapConv("motor", "cover", mi="2.p.1", map={0: "stop", 1: "open", 2: "close"}),
Converter("target_position", mi="2.p.2"),
CurtainPosConv("position", mi="2.p.3", parent="motor"),
Converter("motor_reverse", "switch", mi="2.p.4", enabled=False),

],
}, {
"default": "mesh", # default Mesh device
"spec": [
Expand Down
Loading