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

Add support for Konlen/Rockson WF96L water level controllers.

Issue #381

There seem to be two variants of this being widely sold.
Rockson with Chinese language labels on the buttons.
Konlen with English language labels on the buttons.

I chose to label this with the Konlen branding, but it probably
applies to both, and the original report doesn't specify which.
Jason Rumney 3 лет назад
Родитель
Сommit
5c962420e2

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -180,3 +180,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [spitfire](https://github.com/spitfire) for assistance supporting Gosund P1 powerstrips.
 - [berdahl](https://github.com/bergdahl) for contributing support for Stadler Eva humidifiers.
 - [dezinc57](https://github.com/dezinc57) for assistance supporting Fanco ceiling fan and light.
+- [hasio144](https://github.com/hasio144) for assistance supporting WF96L water level controllers.

+ 1 - 0
DEVICES.md

@@ -262,6 +262,7 @@ generic configurations known to work with multiple brands of device.
 - Bresser smart 7-in-1 weather station
 - Catit Pixi smart fountain
 - Catit pet feeder (experimental)
+- Konlen/Rockson WF96L water level controller
 - Nedis pet feeder
 - Nedis WIFISA10CWT air quality monitor
 - Qoto 03 smart water valve / sprinkler controller

+ 130 - 0
custom_components/tuya_local/devices/konlen_wf96l_waterlevel_controller.yaml

@@ -0,0 +1,130 @@
+name: Water level controller
+primary_entity:
+  entity: switch
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+secondary_entities:
+  - entity: number
+    name: Level Off
+    category: config
+    icon: "mdi:arrow-collapse-up"
+    dps:
+      - id: 2
+        type: integer
+        name: value
+        unit: "%"
+        range:
+          min: 0
+          max: 100
+  - entity: sensor
+    name: Level
+    icon: "mdi:waves-arrow-up"
+    dps:
+      - id: 3
+        type: integer
+        name: sensor
+        unit: "%"
+  - entity: number
+    name: Level on
+    category: config
+    icon: "mdi:arrow-collapse-down"
+    dps:
+      - id: 101
+        type: integer
+        name: value
+        unit: "%"
+        range:
+          min: 0
+          max: 100 
+  - entity: number
+    name: Alarm high level
+    category: config
+    icon: "mdi:water-alert"
+    dps:
+      - id: 103
+        type: integer
+        name: value
+        unit: "%"
+        range:
+          min: 0
+          max: 100
+  - entity: number
+    name: Alarm low level
+    category: config
+    icon: "mdi:water-alert"
+    dps:
+      - id: 104
+        type: integer
+        name: value
+        unit: "%"
+        range:
+          min: 0
+          max: 100
+  - entity: switch
+    name: Alarm
+    category: config
+    icon: "mdi:water-alert"
+    dps:
+      - id: 105
+        type: boolean
+        name: switch
+  - entity: sensor
+    name: Status
+    icon: "mdi:cup-water"
+    category: diagnostic
+    dps:
+      - id: 106
+        type: string
+        name: sensor
+  - entity: switch
+    name: Dry heat protect
+    category: config
+    dps:
+      - id: 108
+        type: boolean
+        name: switch
+  - entity: number
+    name: CH1 time delay
+    category: config
+    icon: "mdi:camera-timer"
+    dps:
+      - id: 109
+        type: integer
+        name: value
+        unit: s
+        range:
+          min: 0
+          max: 60
+  - entity: sensor
+    name: Work mode
+    category: diagnostic
+    dps:
+      - id: 110
+        type: string
+        name: sensor
+  - entity: number
+    name: Running time
+    category: config
+    icon: "mdi:clock"
+    dps:
+      - id: 111
+        type: integer
+        name: value
+        unit: min
+        range:
+          min: 0
+          max: 1440
+
+
+
+
+
+
+
+
+
+
+
+