Skip to content

Commit

Permalink
Merge pull request #1526 from chenvd/master
Browse files Browse the repository at this point in the history
Add support for linp.remote.k9b1
  • Loading branch information
AlexxIT authored Dec 27, 2024
2 parents acf7b9e + cd41782 commit 4ca3b0c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions custom_components/xiaomi_gateway3/core/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1540,6 +1540,20 @@
MathConv("humidity", mi="3.p.1008", round=1),
BaseConv("battery", mi="2.p.1003"),
],
}, {
# linp.remote.k9b1
5480: ["Linptech", "Wireless Button", "k9b1"],
"spec": [
# mibeacon2 spec
BLEMapConv("action", "sensor", mi=4097, map={"000000": BUTTON_1_SINGLE, "000001": BUTTON_1_HOLD, "000002": BUTTON_1_DOUBLE}),
BLEByteConv("battery", "sensor", mi=18435, entity=ENTITY_LAZY), # uint8
# miot spec
ConstConv("action", mi="2.e.1", value=BUTTON_1_SINGLE),
ConstConv("action", mi="2.e.2", value=BUTTON_1_DOUBLE),
ConstConv("action", mi="2.e.3", value=BUTTON_1_HOLD),
BaseConv("battery", mi="3.p.1003"),
],
# "ttl": "6h" # battery every 6 hours
}, {
# linp.remote.k9b11
5481: ["Linptech", "Wireless Button", "k9b11"],
Expand Down

0 comments on commit 4ca3b0c

Please sign in to comment.