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

Add support for ElectriQ DESD9LW-V2 dehumidifier

Issue #2169
Jason Rumney 1 год назад
Родитель
Сommit
2f803685ee

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -611,3 +611,4 @@ Further device support has been made with the assistance of users. Please consid
 - [cw-cdz](https://github.com/cw-cdz) for contributing support for Heatstorm HS-1500 heater.
 - [sveos](https://github.com/sveos) for assisting with support for Nedis ZBRC10WT remote contol.
 - [RoadkillUK](https://github.com/RoadkillUK) for contributing support for Els Pet Spaceship litter box.
+- [dphuk](https://github.com/dphuk) for assisting with ElectriQ DESD8LW V2 dehumidifier.

+ 1 - 1
DEVICES.md

@@ -275,7 +275,7 @@
 - ElectriQ CD12PWv2 dehumidifier
 - ElectriQ CD20PRO-LE-V2 dehumidifier
 - ElectriQ CD25PRO-LE-V2 dehumidifier
-- ElectriQ DESD9LW dehumidifier
+- ElectriQ DESD9LW dehumidifier (two variants)
 - Electriq PD45E dehumidifier
 - Eeese Adam dehumidifier
 - Eeese Anna dehumidifier

+ 84 - 0
custom_components/tuya_local/devices/electriq_desd9lwv2_dehumidifier.yaml

@@ -0,0 +1,84 @@
+name: Dehumidifier
+products:
+  - id: g2hl04s82mgtkpec
+    name: ElectriQ DESD9LW-V2
+primary_entity:
+  entity: climate
+  dps:
+    - id: 1
+      name: hvac_mode
+      type: boolean
+      mapping:
+        - dps_val: false
+          value: "off"
+        - dps_val: true
+          constraint: mode
+          conditions:
+            - dps_val: "Auto"
+              value: "auto"
+            - dps_val: "Heater"
+              value: "heat"
+            - dps_val: "Dehumidity"
+              value: "dry"
+            - dps_val: "Fan"
+              value: "fan_only"
+    - id: 2
+      type: integer
+      name: humidity
+      range:
+        min: 35
+        max: 80
+      mapping:
+        - step: 5
+    - id: 4
+      type: string
+      name: fan_mode
+      mapping:
+        - dps_val: Low
+          value: low
+        - dps_val: Medium
+          value: medium
+        - dps_val: High
+          value: high
+        - dps_val: auto
+          value: auto
+    - id: 5
+      name: mode
+      type: string
+      hidden: true
+    - id: 6
+      type: integer
+      name: current_humidity
+    - id: 7
+      type: integer
+      name: current_temperature
+    - id: 102
+      type: string
+      name: swing_mode
+      mapping:
+        - dps_val: "90"
+          value: "off"
+        - dps_val: "45"
+          value: "middle"
+        - dps_val: "0_90"
+          value: "vertical"
+    - id: 101
+      type: integer
+      name: temperature
+      unit: C
+      range:
+        min: 16
+        max: 30
+secondary_entities:
+  - entity: light
+    translation_key: uv_sterilization
+    dps:
+      - id: 15
+        name: switch
+        type: boolean
+  - entity: switch
+    translation_key: "ionizer"
+    dps:
+      - id: 12
+        name: switch
+        type: boolean