From 22f38ca19c8dd371b926c2f17019dfa3ce6b6431 Mon Sep 17 00:00:00 2001 From: hi94740 Date: Sat, 16 Nov 2024 14:58:09 +0800 Subject: [PATCH] Add support for shuse.flood.ss05 --- custom_components/xiaomi_gateway3/core/devices.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/custom_components/xiaomi_gateway3/core/devices.py b/custom_components/xiaomi_gateway3/core/devices.py index a1438603..d4b8e61a 100644 --- a/custom_components/xiaomi_gateway3/core/devices.py +++ b/custom_components/xiaomi_gateway3/core/devices.py @@ -2111,6 +2111,13 @@ BLELock("lock", mi=11), BLEToothbrush("toothbrush", mi=16), ], +}, { + # https://home.miot-spec.com/spec/shuse.flood.ss05 + 19533: ["Shuse", "Water Leak Sensor", "shuse.flood.ss05"], + "spec": [ + BaseConv("water_leak", "binary_sensor", mi="2.p.1006"), + BaseConv("battery", "sensor", mi="3.p.1003"), + ], }] ########################################################################################