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

Add support for Haozee water valve

Issue #2852
Jason Rumney 1 год назад
Родитель
Сommit
97551e091b
3 измененных файлов с 143 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 141 0
      custom_components/tuya_local/devices/haozee_watervalve.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -853,3 +853,4 @@ Further device support has been made with the assistance of users. Please consid
 - [nickmcgill](https://github.com/nickmcgill) for contributing support for Devola Intelligent heater.
 - [nickmcgill](https://github.com/nickmcgill) for contributing support for Devola Intelligent heater.
 - [Kappa71](https://github.com/Kappa71) for contributing support for Emerio DH-129238.1 dehumidifier.
 - [Kappa71](https://github.com/Kappa71) for contributing support for Emerio DH-129238.1 dehumidifier.
 - [diviera](https://github.com/diviera) for contributing support for Moes WS-USR-2C double curtain switch
 - [diviera](https://github.com/diviera) for contributing support for Moes WS-USR-2C double curtain switch
+- [Enrica-r](https://github.com/Enrica-r) for assisting with support for Haozee water valve.

+ 1 - 0
DEVICES.md

@@ -906,6 +906,7 @@ port and password.
 - Aubess Rainpoint TTP106W irrigation system
 - Aubess Rainpoint TTP106W irrigation system
 - Becasmart BAF-908 irrigation system
 - Becasmart BAF-908 irrigation system
 - Garza Wi-Fi garden irrigation system (ITV103W with 433MHz WiFi hub)
 - Garza Wi-Fi garden irrigation system (ITV103W with 433MHz WiFi hub)
+- Haozee water valve
 - Hoenyzy DN15 / DN20 / DN25 gas and water valve timers
 - Hoenyzy DN15 / DN20 / DN25 gas and water valve timers
 - Holman WX1 tap timer (sprinkler controller)
 - Holman WX1 tap timer (sprinkler controller)
 - Holman WX2 dual tap timer
 - Holman WX2 dual tap timer

+ 141 - 0
custom_components/tuya_local/devices/haozee_watervalve.yaml

@@ -0,0 +1,141 @@
+name: Water valve
+products:
+  - id: 7lpbjkvri3bnpny2
+    manufacturer: Haozee
+entities:
+  - entity: valve
+    class: water
+    dps:
+      - id: 1
+        type: boolean
+        name: valve
+      - id: 121
+        type: string
+        name: total_state
+        # possible values and their meanings not known
+  - entity: sensor
+    class: volume_flow_rate
+    category: diagnostic
+    dps:
+      - id: 5
+        name: sensor
+        type: integer
+        unit: gal/min
+        class: measurement
+        mapping:
+          - scale: 600
+  - entity: sensor
+    class: water
+    category: diagnostic
+    dps:
+      - id: 6
+        name: sensor
+        type: integer
+        unit: gal
+        class: total_increasing
+        mapping:
+          - scale: 10
+  - entity: sensor
+    name: Last use
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 102
+        name: sensor
+        type: integer
+        unit: min
+        class: duration
+  - entity: number
+    name: Minimum flow rate
+    class: volume_flow_rate
+    category: config
+    dps:
+      - id: 108
+        name: value
+        type: integer
+        unit: gal/min
+        range:
+          min: 0
+          max: 4000
+        mapping:
+          - scale: 60
+  - entity: number
+    name: Maximum flow rate
+    class: volume_flow_rate
+    category: config
+    dps:
+      - id: 109
+        name: value
+        type: integer
+        unit: gal/min
+        range:
+          min: 0
+          max: 4000
+        mapping:
+          - scale: 60
+  - entity: select
+    name: Flow Rate Unit
+    class: water
+    category: config
+    dps:
+      - id: 116
+        name: option
+        type: string
+        mapping:
+          - dps_val: "1"
+            value: gal/h
+          - dps_val: "2"
+            value: m3/h
+          - dps_val: "3"
+            value: L/h
+  - entity: switch
+    name: Flow alarm
+    category: config
+    dps:
+      - id: 123
+        type: boolean
+        name: switch
+  - entity: button
+    name: Reset total flow
+    category: config
+    dps:
+      - id: 124
+        type: boolean
+        name: button
+  - entity: sensor
+    name: Last hour use
+    class: water
+    category: diagnostic
+    dps:
+      - id: 125
+        name: sensor
+        type: integer
+        unit: gal
+        mapping:
+          - scale: 10
+  - entity: binary_sensor
+    name: High flow
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 126
+        name: sensor
+        type: string
+        mapping:
+          - dps_val: "on"
+            value: true
+          - dps_val: "off"
+            value: false
+  - entity: binary_sensor
+    name: Low flow
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 127
+        name: sensor
+        type: string
+        mapping:
+          - dps_val: "on"
+            value: true
+          - dps_val: "off"
+            value: false