Skip to content

Commit

Permalink
Add support Linptech Wireless Button KS1 #1294
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Mar 24, 2024
1 parent 208ca11 commit a64499e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions custom_components/xiaomi_gateway3/core/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1698,6 +1698,17 @@
ConstConv("action", mi="2.e.1013", value=BUTTON_DOUBLE),
ConstConv("action", mi="2.e.1014", value=BUTTON_HOLD),
]
}, {
# https://github.com/AlexxIT/XiaomiGateway3/pull/1294
14945: ["Linptech", "Wireless Button KS1", "linp.remote.ks1"],
"spec": [
BaseConv("battery", mi="4.p.1003"),
BaseConv("action", "sensor"),
MapConv("action", mi="5.e.1012.p.1", map={1: BUTTON_1_SINGLE, 2: BUTTON_2_SINGLE, 3: BUTTON_3_SINGLE, 4: BUTTON_4_SINGLE}),
MapConv("action", mi="5.e.1013.p.1", map={1: BUTTON_1_DOUBLE, 2: BUTTON_2_DOUBLE, 3: BUTTON_3_DOUBLE, 4: BUTTON_4_DOUBLE}),
MapConv("action", mi="5.e.1014.p.1", map={1: BUTTON_1_HOLD, 2: BUTTON_2_HOLD, 3: BUTTON_3_HOLD, 4: BUTTON_4_HOLD}),
],
"ttl": "6h" # battery every 6 hours
}, {
# https://github.com/AlexxIT/XiaomiGateway3/pull/1303
17825: ["Unknown", "Eight scene knob switch", "cxw.remote.ble006"],
Expand Down

0 comments on commit a64499e

Please sign in to comment.