From ab615e500d1ec6c4673c68fa1f37c2130ee56fb9 Mon Sep 17 00:00:00 2001 From: Alex X Date: Sun, 15 Oct 2023 16:11:55 +0300 Subject: [PATCH] Add button lumi.remote.b1acn02 WXKG13LM #1146 --- .../xiaomi_gateway3/core/converters/devices.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/custom_components/xiaomi_gateway3/core/converters/devices.py b/custom_components/xiaomi_gateway3/core/converters/devices.py index 1959a090..44903c2a 100644 --- a/custom_components/xiaomi_gateway3/core/converters/devices.py +++ b/custom_components/xiaomi_gateway3/core/converters/devices.py @@ -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) + ] }] ########################################################################################