|
2264 | 2264 | BaseConv("water_leak", "binary_sensor", mi="2.p.1006"), |
2265 | 2265 | BaseConv("battery", "sensor", mi="3.p.1003"), |
2266 | 2266 | ], |
| 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 | + ], |
2267 | 2281 | }, { |
2268 | 2282 | # rhj.sensor_occupy.l730a |
2269 | 2283 | # https://home.miot-spec.com/s/rhj.sensor_occupy.l730a |
|
0 commit comments