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

Add support for Woods WDD90 dehumidifier

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

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -471,7 +471,7 @@ Further device support has been made with the assistance of users. Please consid
 - [ninjajim17](https://github.com/ninjajim17) for assisting with support for Carro humidifiers.
 - [AnthonyBe](https://github.com/AnthonyBe) for assisting with support for Eglo ceiling fans.
 - [spawnax](https://github.com/spawnax) for assisting with support for EVSun EV chargers.
-- [madmalkav](https://github.com/madmalkav) for assisting with support for Mellerware Comfy electric radiators.
+- [madmalkav](https://github.com/madmalkav) for assisting with support for Mellerware Comfy electric radiator and Woods WDD90 dehumidifier.
 - [arhimidis64](https://github.com/arhimidis64) for assisting with support for Inventor Leon air conditioners.
 - [ceinmart](https://github.com/ceinmart) for assisting with support for Moes 4-gang switches.
 - [mihasybn](https://github.com/mihasybn) for assisting with support for Idea Heating Belt air conditioners.

+ 1 - 0
DEVICES.md

@@ -298,6 +298,7 @@
 - Tesla Smart XL dehumidifier
 - VacPlus dehumidifier
 - Vivosun DE0003 dehumidifier
+- Woods WDD90 dehumidifier
 
 ### Humidifiers
 

+ 139 - 0
custom_components/tuya_local/devices/wood_wdd90_dehumidifier.yaml

@@ -0,0 +1,139 @@
+name: Dehumidifier
+products:
+  - id: kiiuovcdvvgxnj0n
+    name: Woods WDD90
+primary_entity:
+  entity: humidifier
+  class: dehumidifier
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 3
+      type: string
+      name: humidity
+      range:
+        min: 35
+        max: 80
+      mapping:
+        - dps_val: "35"
+          value: 35
+          step: 5
+        - dps_val: "40"
+          value: 40
+          step: 5
+        - dps_val: "45"
+          value: 45
+          step: 5
+        - dps_val: "50"
+          value: 50
+          step: 5
+        - dps_val: "55"
+          value: 55
+          step: 5
+        - dps_val: "60"
+          value: 60
+          step: 5
+        - dps_val: "65"
+          value: 65
+          step: 5
+        - dps_val: "70"
+          value: 70
+          step: 5
+        - dps_val: "75"
+          value: 75
+          step: 5
+        - dps_val: "80"
+          value: 80
+          step: 5
+    - id: 6
+      type: integer
+      name: current_humidity
+secondary_entities:
+  - entity: fan
+    translation_key: fan_with_presets
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+      - id: 4
+        type: string
+        name: preset_mode
+        mapping:
+          - dps_val: "1"
+            value: sleep
+          - dps_val: "2"
+            value: normal
+          - dps_val: "3"
+            value: strong
+          - dps_val: "A"
+            value: smart
+      - id: 8
+        type: boolean
+        name: oscillate
+  - entity: switch
+    translation_key: ionizer
+    category: config
+    dps:
+      - id: 10
+        type: boolean
+        name: switch
+  - entity: lock
+    translation_key: child_lock
+    category: config
+    dps:
+      - id: 16
+        type: boolean
+        name: lock
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 17
+        type: string
+        name: option
+        mapping:
+          - dps_val: cancel
+            value: "Off"
+          - dps_val: "1h"
+            value: "1 hour"
+          - dps_val: "2h"
+            value: "2 hours"
+          - dps_val: "3h"
+            value: "3 hours"
+          - dps_val: "4h"
+            value: "4 hours"
+          - dps_val: "5h"
+            value: "5 hours"
+          - dps_val: "6h"
+            value: "6 hours"
+          - dps_val: "7h"
+            value: "7 hours"
+          - dps_val: "8h"
+            value: "8 hours"
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 19
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - dps_val: 16
+            value: false
+          - value: true
+      - id: 19
+        type: bitfield
+        name: fault_code
+  - entity: binary_sensor
+    translation_key: tank_full
+    dps:
+      - id: 19
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 16
+            value: true
+          - value: false