From 1c93328496fee59c525e880f9e89d17ac1a3a1da Mon Sep 17 00:00:00 2001 From: Necroneco Date: Tue, 24 Oct 2023 21:04:45 +0800 Subject: [PATCH] Fix Linptech Submersion Sensor (RS1BB) --- .../xiaomi_gateway3/core/converters/devices.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/custom_components/xiaomi_gateway3/core/converters/devices.py b/custom_components/xiaomi_gateway3/core/converters/devices.py index e14ef0b0..1f131973 100644 --- a/custom_components/xiaomi_gateway3/core/converters/devices.py +++ b/custom_components/xiaomi_gateway3/core/converters/devices.py @@ -1356,6 +1356,13 @@ EventConv("action", mi="2.e.1025", value="timer1"), EventConv("action", mi="3.e.1025", value="timer2"), ], +}, { + 16143: ["Linptech", "Submersion Sensor", "RS1BB"], + "spec": [ + MiBeacon, BLEWaterLeak, BLEBattery, + Converter("water_leak", mi="2.p.1006"), + Converter("battery", mi="3.p.1003"), + ], }] # Xiaomi BLE MiBeacon only spec @@ -3085,12 +3092,6 @@ "spec": [ Converter("switch", "switch", mi="2.p.1", enabled=None), # bool ], -}, { - 16143: ["Linptech", "Submersion Sensor", "linp.flood.rs1bb"], - "spec": [ - Converter("moisture", "binary_sensor", mi="2.p.1006"), # bool - Converter("battery", "sensor", mi="3.p.1003"), - ], }, { 16204: ["Linptech", "Pressure Sensor", "linp.senpres.ps1bb"], "spec": [