Skip to content

Commit

Permalink
Add button lumi.remote.b1acn02 WXKG13LM #1146
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Oct 15, 2023
1 parent aae8465 commit ab615e5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions custom_components/xiaomi_gateway3/core/converters/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,16 @@
ZXiaomiBrightnessConv("brightness", mi="2.p.2", parent="light"),
ZXiaomiColorTempConv("color_temp", mi="2.p.3", parent="light"),
],
}, {
"lumi.remote.b1acn02": ["Aqara", "Button", "WXKG13LM"],
"spec": [
Action,
ButtonMIConv("button", mi="3.e.1", value=1), # single
ButtonMIConv("button", mi="3.e.2", value=2), # double
ButtonMIConv("button", mi="3.e.3", value=16), # long
BatteryConv("battery", "sensor", mi="2.p.1"), # voltage
MapConv("battery_low", "binary_sensor", mi="4.p.1", map=BATTERY_LOW, enabled=False)
]
}]

########################################################################################
Expand Down

0 comments on commit ab615e5

Please sign in to comment.