From a5799af5cab28d2e1c3d49a586cbbb4af34896fe Mon Sep 17 00:00:00 2001 From: Ernst Klamer Date: Sat, 6 Jul 2024 15:35:16 +0200 Subject: [PATCH] fix button press KS1 KS1BP --- custom_components/ble_monitor/ble_parser/xiaomi.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/custom_components/ble_monitor/ble_parser/xiaomi.py b/custom_components/ble_monitor/ble_parser/xiaomi.py index 5005744e..f8819fac 100755 --- a/custom_components/ble_monitor/ble_parser/xiaomi.py +++ b/custom_components/ble_monitor/ble_parser/xiaomi.py @@ -1477,7 +1477,19 @@ def parse_xiaomi(self, data: bytes, mac: str): ]: resfunc = xiaomi_dataobject_dict.get(obj_typecode, None) if resfunc: - if hex(obj_typecode) in ["0x8", "0x100e", "0x1001", "0xf", "0xb", "0x4e0c", "0x4e0d", "0x4e0e"]: + if hex(obj_typecode) in [ + "0x8", + "0x100e", + "0x1001", + "0xf", + "0xb", + "0x4e0c", + "0x4e0d", + "0x4e0e", + "0x560c", + "0x560d", + "0x560e" + ]: result.update(resfunc(dobject, device_type)) else: result.update(resfunc(dobject))