Kaynağa Gözat

Add support for Yieryi YY-W9909 / unbranded pH-W3988 pH meters

Issue #555, #562
Jason Rumney 2 yıl önce
ebeveyn
işleme
9e1c90887c

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -223,5 +223,5 @@ Further device support has been made with the assistance of users.  Please consi
 - [M4R7IN5](https://github.com/M4R7IN5) for assisting with support for Lenovo E1 vacuum cleaners.
 - [pmazz](https://github.com/pmazz) for contributing Italian translations.
 - [thewolf-oz](https://github.com/thewolf-oz) for assisting with support for Arlec 12-speed tower fans, 6-speed floor fans and 19-speed wall fans, and contributing support for Arlec/Deta dimming lightbulbs.
-- [dhuddle](https://github.com/dhuddle) for assisting with support for Chanfok ceiling fan with light, Inkbird BBQ thermometer and Lepro lights (variant of RGBCW light without timer).
+- [dhuddle](https://github.com/dhuddle) for assisting with support for Chanfok ceiling fan with light, Inkbird BBQ thermometer, Lepro lights (variant of RGBCW light without timer) and Yieryi pH meter.
 - [theshop35](https://github.com/theshop35) for assisting with support for CC curtains.

+ 1 - 0
DEVICES.md

@@ -340,4 +340,5 @@ of device.
 - Qoto 03 smart water valve / sprinkler controller
 - SD123 HPR01 human presence radar
 - Universal remote control (supports sensors only)
+- Yieryi pH meter (also matches unbranded pH-W3988 device)
 - ZX-G30 alarm system (not as an alarm_control_panel, as individual inputs and sensors)

+ 71 - 0
custom_components/tuya_local/devices/yieryi_ph_meter.yaml

@@ -0,0 +1,71 @@
+name: pH meter
+products:
+  - id: 5ok0wq7drlqyo2hb
+    name: Yieryi YY-9909
+primary_entity:
+  entity: sensor
+  name: pH
+  dps:
+    - id: 102
+      type: integer
+      name: sensor
+      unit: pH
+      class: measurement
+      mapping:
+        - scale: 100
+        - dps_val: 1500
+          value: null
+secondary_entities:
+  - entity: sensor
+    name: Temperature
+    class: temperature
+    dps:
+      - id: 8
+        type: integer
+        name: sensor
+        unit: C
+        class: measurement
+        mapping:
+          - scale: 10
+  - entity: sensor
+    name: Total disolved solids
+    dps:
+      - id: 107
+        type: integer
+        name: sensor
+        unit: ppm
+        class: measurement
+  - entity: sensor
+    name: Electrical conductivity
+    dps:
+      - id: 110
+        type: integer
+        name: sensor
+        unit: µS/cm
+        class: measurement
+  - entity: sensor
+    name: Salinity
+    dps:
+      - id: 113
+        type: integer
+        name: sensor
+        unit: ppm
+        class: measurement
+  - entity: sensor
+    name: Specific gravity
+    dps:
+      - id: 116
+        type: integer
+        name: sensor
+        class: measurement
+        unit: g/ml
+        mapping:
+          - scale: 1000
+  - entity: sensor
+    name: Oxidation reduction potential
+    dps:
+      - id: 119
+        type: integer
+        name: sensor
+        unit: mV
+        class: measurement