Просмотр исходного кода

Add Tuya W-2839 pool monitor config (#5058)

Thomas König 23 часов назад
Родитель
Сommit
61e4b41fa9
2 измененных файлов с 122 добавлено и 0 удалено
  1. 1 0
      DEVICES.md
  2. 121 0
      custom_components/tuya_local/devices/w2839_pool_monitor.yaml

+ 1 - 0
DEVICES.md

@@ -1291,6 +1291,7 @@ port and password.
 - PGST PA-010 indoor temperature and humidity sensor
 - PH-W218 water quality monitor
 - Pinjia PJ3101A presence sensor
+- W-2839 water quality monitor
 - PlantsIO Ivy and Ivy Gen2 smart planters
 - PNI Sofe House Smart Gas 300 alarm
 - Prodotec PT02 air quality monitor

+ 121 - 0
custom_components/tuya_local/devices/w2839_pool_monitor.yaml

@@ -0,0 +1,121 @@
+name: Water quality monitor
+products:
+  - id: muwcszgae41ccndk
+    model: W-2839
+entities:
+  - entity: sensor
+    class: temperature
+    icon: "mdi:water-thermometer"
+    dps:
+      - id: 8
+        type: integer
+        name: sensor
+        unit: C
+        class: measurement
+        mapping:
+          - scale: 10
+  - entity: sensor
+    class: ph
+    dps:
+      - id: 106
+        type: integer
+        name: sensor
+        class: measurement
+        mapping:
+          - scale: 100
+          - dps_val: 1500
+            value: null
+  - entity: sensor
+    name: Oxidation reduction potential
+    icon: "mdi:virus-off"
+    dps:
+      - id: 131
+        type: integer
+        name: sensor
+        unit: mV
+        class: measurement
+        optional: true
+  - entity: number
+    translation_key: maximum_temperature
+    class: temperature
+    category: config
+    dps:
+      - id: 102
+        type: integer
+        name: value
+        unit: C
+        optional: true
+        range:
+          min: -100
+          max: 1100
+        mapping:
+          - scale: 10
+  - entity: number
+    translation_key: minimum_temperature
+    class: temperature
+    category: config
+    dps:
+      - id: 103
+        type: integer
+        name: value
+        unit: C
+        optional: true
+        range:
+          min: -100
+          max: 1100
+        mapping:
+          - scale: 10
+  - entity: number
+    name: Maximum pH
+    class: ph
+    category: config
+    dps:
+      - id: 107
+        type: integer
+        name: value
+        optional: true
+        range:
+          min: 0
+          max: 1500
+        mapping:
+          - scale: 100
+  - entity: number
+    name: Minimum pH
+    class: ph
+    category: config
+    dps:
+      - id: 108
+        type: integer
+        name: value
+        optional: true
+        range:
+          min: 0
+          max: 1500
+        mapping:
+          - scale: 100
+  - entity: number
+    name: Maximum ORP
+    category: config
+    icon: "mdi:virus-off"
+    dps:
+      - id: 132
+        type: integer
+        name: value
+        unit: mV
+        optional: true
+        range:
+          min: -2000
+          max: 2000
+  - entity: number
+    name: Minimum ORP
+    category: config
+    icon: "mdi:virus-off"
+    dps:
+      - id: 133
+        type: integer
+        name: value
+        unit: mV
+        optional: true
+        range:
+          min: -2000
+          max: 2000