Explorar o código

feat (devices): add NWT WDH-02EM dehumidifier

Issue #4111
Jason Rumney hai 2 meses
pai
achega
ea6d6bbf69

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -1168,3 +1168,4 @@ Further device support has been made with the assistance of users. Please consid
 - [flemmingkok](https://github.com/flemmingkok) for assisting with support for InTec ceiling fan with light.
 - [rsbelo](https://github.com/rsbelo) for contributing support for HTW HTWD020A4 dehumidifier.
 - [UksusoFF](https://github.com/UksusoFF) for contributing support for Zeissler ZSw.1312 water leak detector.
+- [a774969](https://github.com/a774969) for assisting with support for NWT WDH-02EM dehumidifier.

+ 1 - 0
DEVICES.md

@@ -439,6 +439,7 @@
 - Luko dehumidifier
 - MeacoDry Arete Two 10L dehumidifier
 - Morris MDB-12160HIW dehumidifier
+- NWT WDH-02EM dehumidifier
 - Pro Breeze 30L dehumidifier
 - Pro Breeze D-23 dehumidifier
 - Qlima D720, D812 and D820A dehumidifiers

+ 66 - 0
custom_components/tuya_local/devices/nwt_wdh06em_dehumidifier.yaml

@@ -0,0 +1,66 @@
+name: Dehumidifier
+# products:
+#   - id: UNKNOWN
+#     manufacturer: New WideTech
+#     model: WDH-02EM
+entities:
+  - entity: humidifier
+    class: dehumidifier
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+      - id: 2
+        type: integer
+        name: humidity
+        range:
+          min: 40
+          max: 70
+        mapping:
+          - step: 10
+      - id: 5
+        type: string
+        name: mode
+        mapping:
+          - dps_val: dehumidify
+            value: auto
+          - dps_val: continuous
+            value: boost
+          - dps_val: dry
+            value: laundry
+      - id: 6
+        type: integer
+        name: current_humidity
+  - entity: lock
+    translation_key: child_lock
+    category: config
+    dps:
+      - id: 16
+        type: boolean
+        name: lock
+  - 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
+    dps:
+      - id: 102
+        type: boolean
+        name: sensor