Skip to content

Commit

Permalink
Add new ble model lemesh.remote.ts4 #1318
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Apr 6, 2024
1 parent abf07e2 commit 9e36ed9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions custom_components/xiaomi_gateway3/core/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1755,6 +1755,16 @@
MapConv("lock", "binary_sensor", mi="2.e.1020.p.3", map={1: STATE_LOCKED, 2: STATE_UNLOCK}),
],
# "ttl": "25h"
}, {
14456: ["LeMesh", "Scenario wireless knob switch K4", "lemesh.remote.ts4"],
"spec": [
BaseConv("battery", "sensor", mi="4.p.1003"), # uint8
BaseConv("action", "sensor"),
MapConv("action", mi="5.e.1012.p.1", map={1: "knob_single", 2: BUTTON_1_SINGLE, 3: BUTTON_2_SINGLE, 4: BUTTON_3_SINGLE, 5: BUTTON_4_SINGLE, 6: "knob_increasing", 7: "knob_reduced", 8: "knob_hold_increasing", 9: "knob_hold_reduced"}),
MapConv("action", mi="5.e.1013.p.1", map={1: "knob_double", 2: BUTTON_1_DOUBLE, 3: BUTTON_2_DOUBLE, 4: BUTTON_3_DOUBLE, 5: BUTTON_4_DOUBLE}),
MapConv("action", mi="5.e.1014.p.1", map={1: "knob_hold", 2: BUTTON_1_HOLD, 3: BUTTON_2_HOLD, 4: BUTTON_3_HOLD, 5: BUTTON_4_HOLD}),
],
# "ttl": "6h" # battery every 6 hours
}, {
14523: ["PTX", "BLE Wireless Switch", "090615.remote.btsw1"],
"spec": [
Expand Down

0 comments on commit 9e36ed9

Please sign in to comment.