Skip to content

Commit

Permalink
Merge pull request #1357 from zixiao-bios/fix_yeelink.remote.contrl
Browse files Browse the repository at this point in the history
Add mibeacon2 spec to yeelink.remote.contrl
  • Loading branch information
AlexxIT committed May 14, 2024
2 parents 095cc7b + 9d51820 commit 37b34cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_components/xiaomi_gateway3/core/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1536,6 +1536,10 @@
}, {
6473: ["Yeelight", "Double Button", "XMWXKG01YL", "yeelink.remote.contrl"],
"spec": [
# mibeacon2 spec
MapConv("action", mi=19980, map={"01": BUTTON_1_SINGLE, "02": BUTTON_2_SINGLE, "03": BUTTON_BOTH_SINGLE}),
MapConv("action", mi=19981, map={"01": BUTTON_1_DOUBLE, "02": BUTTON_2_DOUBLE}),
MapConv("action", mi=19982, map={"01": BUTTON_1_HOLD, "02": BUTTON_2_HOLD}),
# miot spec
BaseConv("battery", "sensor", mi="2.p.1003"),
BaseConv("action", "sensor"),
Expand Down

0 comments on commit 37b34cc

Please sign in to comment.