Browse Source

feat (devices): add Meian water leak detector

Add the actual file this time, not just the docs

Issue #4394
Jason Rumney 1 day ago
parent
commit
96db827d67
1 changed files with 23 additions and 0 deletions
  1. 23 0
      custom_components/tuya_local/devices/meian_sw02_leakdetector.yaml

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

@@ -0,0 +1,23 @@
+name: Water leak detector
+products:
+  - id: kyb656no
+    manufacturer: Meian
+    model: SW02
+entities:
+  - entity: binary_sensor
+    class: moisture
+    dps:
+      - id: 1
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: alarm
+            value: true
+          - value: false
+  - entity: sensor
+    class: battery
+    dps:
+      - id: 4
+        type: integer
+        name: sensor
+        unit: "%"