4
0
Эх сурвалжийг харах

Add support for ZPMeter 214C-Z ultrasonic valve water meter

Issue #2412
Jason Rumney 1 жил өмнө
parent
commit
351e576371

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -727,3 +727,4 @@ Further device support has been made with the assistance of users. Please consid
 - [Jon811](https://github.com/Jon811) for contributing improvements to door peephole camera.
 - [tazkirap](https://github.com/tazkirap) for assisting with support for Modena ES-15-SKY water heater.
 - [IamGimli](https://github.com/IamGimli) for contributing support for CE Smart Home LQ-2-W3 wall outlet.
+- [Thommav](https://github.com/Thommav) for assisting with support for ZPmeter 214C water meter.

+ 2 - 0
DEVICES.md

@@ -919,6 +919,8 @@ entity types as sub devices.
 - PY321-Z-TY energy meter
 - Temperature and humidity sensor with alarm feature
 - WL-898WZ water leak sensor
+- ZPmeter 214C-Z water meter
+
 - ZTH08ZTU temperature and humidity sensor
 
 NOTE: this project does not intend to expand the scope to support non-Tuya

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

@@ -0,0 +1,121 @@
+name: Water meter
+products:
+  - id: vuwtqx0t
+    name: ZPMeter 214C-Z
+primary_entity:
+  entity: sensor
+  class: water
+  dps:
+    - id: 1
+      type: integer
+      name: sensor
+      unit: m³
+      class: total_increasing
+      mapping:
+        - scale: 1000
+    - id: 2
+      type: string
+      optional: true
+      name: monthly
+    - id: 3
+      type: string
+      optional: true
+      name: daily
+    - id: 6
+      type: string
+      optional: true
+      name: frozen_time_set
+    - id: 16
+      type: string
+      name: meter_id
+    - id: 18
+      type: hex
+      optional: true
+      name: reverse_use
+secondary_entities:
+  - entity: select
+    name: Reporting period
+    icon: "mdi:update"
+    translation_key: timer
+    category: config
+    dps:
+      - id: 4
+        type: string
+        name: option
+        mapping:
+          - dps_val: 1h
+            value: 1h
+          - dps_val: 2h
+            value: 2h
+          - dps_val: 3h
+            value: 3h
+          - dps_val: 4h
+            value: 4h
+          - dps_val: 6h
+            value: 6h
+          - dps_val: 8h
+            value: 8h
+          - dps_val: 12h
+            value: 12h
+          - dps_val: 24h
+            value: 24h
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 5
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+      - id: 5
+        type: bitfield
+        name: fault_code
+  - entity: valve
+    class: water
+    dps:
+      - id: 13
+        type: boolean
+        name: valve
+  - entity: switch
+    name: Auto clean
+    icon: "mdi:shimmer"
+    category: config
+    dps:
+      - id: 14
+        type: boolean
+        name: switch
+  - entity: sensor
+    class: volume_flow_rate
+    dps:
+      - id: 21
+        type: hex
+        optional: true
+        name: sensor
+        unit: m³/h
+        class: measurement
+        mapping:
+          - scale: 1000
+  - entity: sensor
+    class: temperature
+    dps:
+      - id: 22
+        type: integer
+        name: sensor
+        unit: C
+        class: measurement
+        mapping:
+          - scale: 100
+  - entity: sensor
+    class: voltage
+    category: diagnostic
+    dps:
+      - id: 26
+        type: integer
+        name: sensor
+        unit: V
+        class: measurement
+        mapping:
+          - scale: 100