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

feat (devices): add Aktobis DHW-870FW dehumidifier

Issue #3172
Jason Rumney 2 месяцев назад
Родитель
Сommit
22174549d4

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -853,7 +853,7 @@ 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.
 - [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
-- [Enrica-r](https://github.com/Enrica-r) for assisting with support for Haozee water valve.
+- [Enrica-r](https://github.com/Enrica-r) for assisting with support for Haozee water valve and Aktobis DHW-870FW dehumidifier.
 - [istenik](https://github.com/istenik) for assisting with support for Klarstein Bornholm Smart 1500 convection heater and TH05Z temperature humidity sensor.
 - [madrani79](https://github.com/madrani79) for assisting with support for Steigen Solar Pro drying rack.
 - [daanjh](https://github.com/daanjh) for contributing support for Petree Cube litter box.

+ 1 - 1
DEVICES.md

@@ -395,7 +395,7 @@
 
 ### Dehumidifiers
 
-- Aktobis WDH-310EK dehumidifier
+- Aktobis WDH-310EK and WDH-870FW dehumidifiers
 - AlecoAir D12 ECO, D12/D16 Home, D14, D16, D25 Traditio dehumidifiers
 - Argo Dry Pury Evo WF dehumidifier
 - Arida S7L-2 dehumidifier

+ 90 - 0
custom_components/tuya_local/devices/aktobis_wdh870fw_dehumidifier.yaml

@@ -0,0 +1,90 @@
+name: Dehumidifier
+products:
+  - id: 28ts8zanupz0yytl
+    manufacturer: Aktobis
+    model: WDH-870FW
+entities:
+  - entity: humidifier
+    class: dehumidifier
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+      - id: 2
+        type: integer
+        name: humidity
+        range:
+          min: 30
+          max: 70
+        mapping:
+          - step: 5
+      - id: 5
+        type: string
+        name: mode
+        mapping:
+          - dps_val: dry
+            value: laundry
+          - dps_val: continuous
+            value: boost
+          - dps_val: dehumidify
+            value: normal
+      - id: 6
+        type: integer
+        name: current_humidity
+  - entity: fan
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+      - id: 4
+        type: string
+        name: speed
+        mapping:
+          - dps_val: low
+            value: 33
+          - dps_val: med
+            value: 67
+          - dps_val: high
+            value: 100
+  - entity: light
+    translation_key: display
+    category: config
+    dps:
+      - id: 11
+        type: boolean
+        name: switch
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 19
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+      - id: 19
+        type: bitfield
+        name: fault_code
+  - entity: binary_sensor
+    translation_key: tank_full
+    dps:
+      - id: 101
+        type: boolean
+        name: sensor
+  - entity: binary_sensor
+    translation_key: defrost
+    category: diagnostic
+    dps:
+      - id: 102
+        type: boolean
+        name: sensor
+  - entity: binary_sensor
+    name: Filter
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 103
+        type: boolean
+        name: sensor