Bläddra i källkod

feat (devices): add Sunlary indoor watering system

Issue #4125

Same dps layout as aubess_rainpoint_irrigation_system, but different
ranges for several of the dps and some not reported by the device.
Jason Rumney 1 månad sedan
förälder
incheckning
a92157edff

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -1178,3 +1178,4 @@ Further device support has been made with the assistance of users. Please consid
 - [lordp1](https://github.com/lordp1) for assisting with support for Clean Air Optima CA-607B humidifier.
 - [aureli169](https://github.com/aureli169) for contributing support for Auchsiag fireplace.
 - [zhen-zen](https://github.com/zhen-zen) for contributing support for Rovsun oil column heater.
+- [notz](https://github.com/notz) for assisting with support for Sunlary indoor plant watering system.

+ 1 - 0
DEVICES.md

@@ -1082,6 +1082,7 @@ port and password.
 - Qoto 03 smart water valve / sprinkler controller
 - Qoto 05 smart water valve / sprinkler controller
 - SH07-8 / SH07S-TY smart sprinkler controller (sold as Aquarobo, Leictory LK06 and other brands)
+- Sunlary indoor plant watering system
 - Wasserstein AquaPal water monitor
 - Zemismart DP-WBS01 8-zone sprinkler controller (also sold as Benexmart and other brands)
 

+ 119 - 0
custom_components/tuya_local/devices/sunlary_indoorwateringsystem.yaml

@@ -0,0 +1,119 @@
+name: Irrigation system
+products:
+  - id: r3stdie1u7vswo38
+    manufacturer: Sunlary
+entities:
+  - entity: valve
+    class: water
+    dps:
+      - id: 1
+        name: valve
+        type: boolean
+  - entity: sensor
+    translation_key: status
+    class: enum
+    category: diagnostic
+    dps:
+      - id: 106
+        name: sensor
+        type: string
+        mapping:
+          - dps_val: "0"
+            value: idle
+          - dps_val: "1"
+            value: auto
+          - dps_val: "2"
+            value: manual
+  - entity: switch
+    name: Auto run
+    icon: "mdi:timer"
+    category: config
+    dps:
+      - id: 109
+        name: switch
+        type: boolean
+        optional: true
+  - entity: number
+    class: duration
+    category: config
+    dps:
+      - id: 102
+        type: integer
+        name: value
+        unit: s
+        range:
+          min: 20
+          max: 1800
+  - entity: number
+    name: Interval
+    icon: "mdi:clock-outline"
+    category: config
+    dps:
+      - id: 103
+        type: integer
+        optional: true
+        name: value
+        unit: h
+        range:
+          min: 1
+          max: 168
+  - entity: sensor
+    name: Next irrigation
+    icon: "mdi:clock-outline"
+    category: diagnostic
+    class: duration
+    dps:
+      - id: 107
+        type: integer
+        optional: true
+        name: sensor
+        unit: min
+  - entity: sensor
+    category: diagnostic
+    class: duration
+    translation_key: time_remaining
+    dps:
+      - id: 104
+        type: integer
+        name: sensor
+        unit: s
+  - entity: sensor
+    class: battery
+    category: diagnostic
+    dps:
+      - id: 108
+        type: string
+        name: sensor
+        unit: "%"
+        mapping:
+          - dps_val: "1"
+            value: 100
+          - dps_val: "2"
+            value: 75
+          - dps_val: "3"
+            value: 50
+          - dps_val: "4"
+            value: 25
+          - dps_val: "5"
+            value: null
+      - id: 108
+        type: string
+        name: available
+        mapping:
+          - dps_val: "5"
+            value: false
+          - value: true
+  - entity: binary_sensor
+    category: diagnostic
+    class: problem
+    dps:
+      - id: 105
+        name: sensor
+        type: bitfield
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+      - id: 105
+        type: bitfield
+        name: fault_code