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

Add support for Clean Air Optima CA-702 dehumidifier

Issue #2680

- other humidifier devices from the same manufacturer had only part of
  the brand name.
Jason Rumney пре 1 година
родитељ
комит
5e6677d8bc

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -807,3 +807,4 @@ Further device support has been made with the assistance of users. Please consid
 - [City-Zero](https://github.com/City-Zero) for contributing support for airx H8 humidifier.
 - [rackxp](https://github.com/rackxp) for assisting with support for Brilliant Smart twin flood lights with motion detection.
 - [toxacj](https://github.com/toxacj) for assisting with support for C30W gas leak detector.
+- [Ramon-E80](https://github.com/Ramon-E80) for assisting with support for Clean Air Optima CA-702 dehumidifier.

+ 3 - 2
DEVICES.md

@@ -336,6 +336,7 @@
 - AlecoAir D25 Traditio dehumidifier
 - Argo Dry Pury Evo WF dehumidifier
 - Cecotec BigDry 4000 dehumidifier
+- Clean Air Optima CA-702 dehumidifier
 - Cleverio AD100 dehumidifier
 - DH-CSK03W dehumidifier
 - Ebac DJ4000 dehumidifier
@@ -382,8 +383,8 @@
 - BlitzWolf BW-SH2 humidifier
 - BlitzWolf BW-SH5 humidifier
 - Carro VES1011 humidifier
-- CleanAir 604B humidifier
-- CleanAir 605B humidifier
+- Clean Air Optima CA-604B humidifier
+- Clean Air Optima CA-605B humidifier
 - Eanons QT-JS2014 purifying humidifier
 - Inkbird IHC-200 humidity controller
 - Klarta Humea humidifier

+ 2 - 2
custom_components/tuya_local/devices/cleanair_604b_humidifier.yaml

@@ -1,8 +1,8 @@
 name: Humidifier
 products:
   - id: cqoisddoci9i3yer
-    manufacturer: Clean Air
-    model: 604B Smart
+    manufacturer: Clean Air Optima
+    model: CA-604B Smart
 entities:
   - entity: humidifier
     dps:

+ 2 - 2
custom_components/tuya_local/devices/cleanair_605b_humidifier.yaml

@@ -1,8 +1,8 @@
 name: Humidifier
 products:
   - id: 7mijurr4i9e0ewat
-    manufacturer: Clean Air
-    model: 605B Smart
+    manufacturer: Clean Air Optima
+    model: CA-605B Smart
 entities:
   - entity: humidifier
     dps:

+ 87 - 0
custom_components/tuya_local/devices/cleanair_ca702_dehumidifier.yaml

@@ -0,0 +1,87 @@
+name: Dehumidifier
+products:
+  - id: bgo09goklrcdwqg7
+    manufacturer: Clean Air Optima
+    model: CA-702 Smart
+entities:
+  - entity: fan
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+  - entity: humidifier
+    class: dehumidifier
+    dps:
+      - id: 1
+        type: boolean
+        name: available
+      - id: 2
+        type: string
+        name: switch
+        mapping:
+          - dps_val: auto
+            value: true
+          - dps_val: fan
+            value: false
+      - id: 3
+        type: integer
+        name: current_humidity
+      - id: 4
+        type: integer
+        name: humidity
+        range:
+          min: 35
+          max: 80
+        mapping:
+          - step: 5
+  - entity: switch
+    translation_key: ionizer
+    category: config
+    dps:
+      - id: 5
+        type: boolean
+        name: switch
+  - entity: switch
+    translation_key: uv_sterilization
+    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: 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: sensor
+    class: temperature
+    category: diagnostic
+    dps:
+      - id: 103
+        type: integer
+        name: sensor
+        unit: C
+        class: measurement
+  - entity: switch
+    translation_key: sleep
+    category: config
+    dps:
+      - id: 104
+        type: boolean
+        name: switch