Pārlūkot izejas kodu

Add support for WL-898WZ water leak sensor

Issue #1912
Jason Rumney 1 gadu atpakaļ
vecāks
revīzija
97bccc4c21

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -578,3 +578,4 @@ Further device support has been made with the assistance of users. Please consid
 - [pergolafabio](https://github.com/pergolafabio) for contributing support for V330 pet feeders.
 - [contactnat](https://github.com/contactnat) for assistance with Goldair PH-ET07EA heaters.
 - [JackJackattack4](https://github.com/JackJackattack4) for assistance with Deakon EVI air to water heatpumps.
+- [dimasibs92](https://github.com/dimasibs92) for assistance with WL-898WZ water leak sensors.

+ 1 - 0
DEVICES.md

@@ -769,6 +769,7 @@ port and password.
 - Nedis ZBSC10WT temperature and humidity sensor
 - PY321-Z-TY energy meter
 - Temperature and humidity sensor with alarm feature
+- WL-898WZ water leak sensor
 - ZTH08ZTU temperature and humidity sensor
 
 NOTE: this project does not intend to expand the scope to support non-Tuya

+ 23 - 0
custom_components/tuya_local/devices/zigbee_waterleak_sensor.yaml

@@ -0,0 +1,23 @@
+name: Water leak sensor
+products:
+  - id: upgcbody
+    name: Zigbee WL-898WZ
+primary_entity:
+  entity: binary_sensor
+  class: moisture
+  category: diagnostic
+  dps:
+    - id: 1
+      type: boolean
+      name: sensor
+      optional: true
+secondary_entities:
+  - entity: sensor
+    class: battery
+    category: diagnostic
+    dps:
+      - id: 4
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement