Skip to content

Commit f050db4

Browse files
authored
Merge pull request #1680 from kei81131/master
Add Xiaomi Water Leak Detector 2 specifications
2 parents fe65814 + ecd1b65 commit f050db4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

custom_components/xiaomi_gateway3/core/devices.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2264,6 +2264,20 @@
22642264
BaseConv("water_leak", "binary_sensor", mi="2.p.1006"),
22652265
BaseConv("battery", "sensor", mi="3.p.1003"),
22662266
],
2267+
}, {
2268+
# https://home.miot-spec.com/spec/xiaomi.flood.oh83w
2269+
25461: ["Xiaomi", "Water Leak Detector 2", "xiaomi.flood.oh83w"],
2270+
"spec": [
2271+
BoolConv("water_leak_bottom", "binary_sensor", mi="2.p.1006", entity={"class": "moisture"}),
2272+
BoolConv("water_leak_top", "binary_sensor", mi="2.p.1123", entity={"class": "moisture"}),
2273+
MapConv("status", "sensor", mi="2.p.1004", map={0: "In Monitoring", 1: "Idle", 2: "Busy", 3: "Delay"}),
2274+
BaseConv("battery", "sensor", mi="3.p.1003"),
2275+
2276+
### below sensors are not very useful and are disabled by default.
2277+
MapConv("event_type", "sensor", mi="2.e.1104.p.4", map={0: "Water Immersion Alarm", 1: "Flood Relief", 2: "Water Alarm", 3: "Water Removal"}, entity={"enabled": False}),
2278+
BaseConv("cus_event_1", "sensor", mi="6.e.1022.p.1", entity={"enabled": False}),
2279+
BaseConv("cus_event_2", "sensor", mi="6.e.1022.p.2", entity={"enabled": False}),
2280+
],
22672281
}, {
22682282
# rhj.sensor_occupy.l730a
22692283
# https://home.miot-spec.com/s/rhj.sensor_occupy.l730a

0 commit comments

Comments
 (0)