Skip to content

Commit

Permalink
Merge pull request #1389 from flyibeat/master
Browse files Browse the repository at this point in the history
Add support for PTX Wireless Switch
  • Loading branch information
AlexxIT authored Jul 13, 2024
2 parents e18302f + 217cdb5 commit 666dfcb
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion custom_components/xiaomi_gateway3/core/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1823,7 +1823,37 @@
ConstConv("action", mi="2.e.1012", value=BUTTON_SINGLE),
ConstConv("action", mi="2.e.1013", value=BUTTON_DOUBLE),
ConstConv("action", mi="2.e.1014", value=BUTTON_HOLD),
]
],
}, {
14608: ["PTX", "Mesh Wireless Switch", "PTX-AK1-QMIMC", "090615.remote.akswr1"],
"spec": [
BaseConv("action", "sensor"),
ConstConv("action", mi="2.e.1012", value=BUTTON_SINGLE),
ConstConv("action", mi="2.e.1014", value=BUTTON_HOLD),
ConstConv("action", mi="3.e.1001", value="low_battery"),
],
}, {
14609: ["PTX", "Mesh Double Wireless Switch", "PTX-AK2-QMIMB", "090615.remote.akswr2"],
"spec": [
BaseConv("action", "sensor"),
ConstConv("action", mi="2.e.1012", value=BUTTON_1_SINGLE),
ConstConv("action", mi="2.e.1014", value=BUTTON_1_HOLD),
ConstConv("action", mi="3.e.1001", value="low_battery"),
ConstConv("action", mi="4.e.1012", value=BUTTON_2_SINGLE),
ConstConv("action", mi="4.e.1014", value=BUTTON_2_HOLD),
],
}, {
14610: ["PTX", "Mesh Triple Wireless Switch", "PTX-AK3-QMIMB", "090615.remote.akswr3"],
"spec": [
BaseConv("action", "sensor"),
ConstConv("action", mi="2.e.1012", value=BUTTON_1_SINGLE),
ConstConv("action", mi="2.e.1014", value=BUTTON_1_HOLD),
ConstConv("action", mi="3.e.1001", value="low_battery"),
ConstConv("action", mi="4.e.1012", value=BUTTON_2_SINGLE),
ConstConv("action", mi="4.e.1014", value=BUTTON_2_HOLD),
ConstConv("action", mi="5.e.1012", value=BUTTON_3_SINGLE),
ConstConv("action", mi="5.e.1014", value=BUTTON_3_HOLD),
],
}, {
# https://github.com/AlexxIT/XiaomiGateway3/pull/1294
14945: ["Linptech", "Wireless Button KS1", "linp.remote.ks1"],
Expand Down

0 comments on commit 666dfcb

Please sign in to comment.