Преглед изворни кода

Add support for Qlima D812 dehumidifier

Issue #2477
Jason Rumney пре 1 година
родитељ
комит
d1e987fe3b
3 измењених фајлова са 59 додато и 0 уклоњено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 57 0
      custom_components/tuya_local/devices/qlima_d812_dehumidifier.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -779,3 +779,4 @@ Further device support has been made with the assistance of users. Please consid
 - [janouskovec](https://github.com/janouskovec) for contributing support for EZAIoT R9Lite thermostat.
 - [janouskovec](https://github.com/janouskovec) for contributing support for EZAIoT R9Lite thermostat.
 - [Flo0008](https://github.com/Flo0008) for assisting with support for Sboard III mini Weigand access control interface.
 - [Flo0008](https://github.com/Flo0008) for assisting with support for Sboard III mini Weigand access control interface.
 - [Kenneth-Audenaert](https://github.com/Kenneth-Audenaert) for contributing support for Aygrochy ventilation duct fan.
 - [Kenneth-Audenaert](https://github.com/Kenneth-Audenaert) for contributing support for Aygrochy ventilation duct fan.
+- [DutchKillerBee](https://github.com/DutchKillerBee) for assisting with support for Qlima D812 dehumidifier.

+ 1 - 0
DEVICES.md

@@ -357,6 +357,7 @@
 - Luko dehumidifier
 - Luko dehumidifier
 - MeacoDry Arete Two 10L dehumidifier
 - MeacoDry Arete Two 10L dehumidifier
 - Pro Breeze 30L dehumidifier
 - Pro Breeze 30L dehumidifier
+- Qlima D812 and D820A dehumidifiers
 - Shinco 30D dehumidifier (also matches Klarstein DryFy Connect)
 - Shinco 30D dehumidifier (also matches Klarstein DryFy Connect)
 - Siguro SGR DH-F300W dehumidifier
 - Siguro SGR DH-F300W dehumidifier
 - Sygonix Smarter dehumidifier
 - Sygonix Smarter dehumidifier

+ 57 - 0
custom_components/tuya_local/devices/qlima_d812_dehumidifier.yaml

@@ -0,0 +1,57 @@
+name: Dehumidifier
+# products:
+#   - id: UNKNOWN
+#     name: Qlima D812
+primary_entity:
+  entity: humidifier
+  class: dehumidifier
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 3
+      type: string
+      name: humidity
+      mapping:
+        - dps_val: "30"
+          value: 30
+        - dps_val: "40"
+          value: 40
+        - dps_val: "50"
+          value: 50
+secondary_entities:
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 17
+        type: string
+        name: option
+        mapping:
+          - dps_val: cancel
+            value: cancel
+          - dps_val: "2h"
+            value: "2h"
+  - entity: sensor
+    translation_key: time_remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 18
+        type: integer
+        name: sensor
+        unit: min
+  - 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