Ver Fonte

Add the ElectriQ CD12PRO-LE dehumidifier

Adam Cooper há 3 anos atrás
pai
commit
865a7c05ef

+ 2 - 1
ACKNOWLEDGEMENTS.md

@@ -102,7 +102,7 @@ Further device support has been made with the assistance of users.  Please consi
 - [pretoriano80](https://github.com/pretoriano80) for assistance supporting AlecoAir dehumidifiers.
 - [JanekSMC](https://github.com/JanekSMC) for assistance supporting Orion Smart Locks.
 - [RichardMawdsley](https://github.com/RichardMawdsley) for assistance supporting ElectriQ Airflex 15W heatpumps.
-- [fwelvering](https://github.com/fwelvering) for assistance supporting a second variant of W'eau pool heatpumps. 
+- [fwelvering](https://github.com/fwelvering) for assistance supporting a second variant of W'eau pool heatpumps.
 - [illuzn](https://github.com/illuzn) for contributing support for Kogan Tower Heaters and Arlec PB88UHA power strips.
 - [vnkorol](https://github.com/vnkorol) for assistance supporting 4-way power monitoring strip and Avatto roller blinds.
 - [OmegaKill](https://github.com/OmegaKill) for assistance supporting Be Cool heatpumps.
@@ -123,3 +123,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [fsevilla3](https://github.com/fsevilla3) for contributing support for water_heater entities and Hydrotherm Dynamix/X8 water heaters.
 - [allistermaguire](https://github.com/allistermaguire) for contributing improvements to Saswell C16 thermostats.
 - [karnas99](https://github.com/karnas99) for assistance in improving Hysen thermostat support.
+- [cooperaj](https://github.com/cooperaj) for contributing support for ElectriQ CD12PRO-LE dehumidifiers.

+ 2 - 1
DEVICES.md

@@ -104,6 +104,7 @@
 - Goldair GPDH420 dehumidifier
 - ElectriQ CD12PW dehumidifier
 - ElectriQ CD12PWv2 dehumidifier
+- ElectriQ CD12PRO-LE dehumidifier
 - ElectriQ CD20PRO-LE-V2 dehumidifier
 - ElectriQ CD25PRO-LE-V2 dehumidifier
 - ElectriQ DESD9LW dehumidifier
@@ -162,7 +163,7 @@ Other brands may work with the above configurations
 
 - Simple switch - a switch only, can be a fallback for many other unsupported devices, to allow just power to be switched on/off.
 - Simple switch with timer - a single switch and timer, will probably work for a lot of smart switches that are not covered by the more advanced configs above.
-- Simple switch with timer v2 - the above with timer moved from dp 11 to 9, confirmed with a Nexxt 220V smart switch. 
+- Simple switch with timer v2 - the above with timer moved from dp 11 to 9, confirmed with a Nexxt 220V smart switch.
 - Simple triple switch - three switches in a single device, tested with Somgam 3 gang wall switches.
 - Simple quad switch - four switches in a single device, tested with Somgam 4 gang wall switches.
 

+ 134 - 0
custom_components/tuya_local/devices/electriq_cd12pro_dehumidifier.yaml

@@ -0,0 +1,134 @@
+name: "Electriq CD12PRO-LE dehumidifier"
+primary_entity:
+  entity: humidifier
+  class: dehumidifier
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+      mapping:
+        - dps_val: false
+          icon: "mdi:air-humidifier-off"
+          icon_priority: 1
+        - dps_val: true
+          icon: "mdi:air-humidifier"
+          icon_priority: 3
+    - id: 5
+      name: mode
+      type: string
+      mapping:
+        - dps_val: "Smart"
+          value: "Smart"
+        - dps_val: "Dehumidify"
+          value: "Dehumidify"
+        - dps_val: "Laundry"
+          value: "Laundry"
+          icon: "mdi:tshirt-crew-outline"
+          icon_priority: 2
+        - dps_val: "Fan"
+          value: "Air clean"
+          icon: "mdi:air-purifier"
+          icon_priority: 2
+    - id: 6
+      type: integer
+      name: current_humidity
+      class: humidity
+      readonly: true
+    - id: 2
+      type: integer
+      name: humidity
+      class: humidity
+      range:
+        min: 35
+        max: 80
+      mapping:
+        - step: 5
+secondary_entities:
+  - entity: select
+    name: "Fan Speed"
+    category: config
+    dps:
+      - id: 4
+        name: option
+        type: string
+        mapping:
+          - dps_val: "high"
+            value: "High"
+          - dps_val: "low"
+            value: "Low"
+  - entity: select
+    name: "Fan Oscillation"
+    category: config
+    dps:
+      - id: 102
+        name: option
+        type: string
+        mapping:
+          - dps_val: "45"
+            value: "Half open"
+          - dps_val: "90"
+            value: "Fully open"
+          - dps_val: "45_90"
+            value: "Oscillate"
+  - entity: switch
+    name: "UV sterilization"
+    icon: "mdi:solar-power"
+    dps:
+      - id: 13
+        name: switch
+        type: boolean
+  - entity: light
+    name: Light
+    category: config
+    dps:
+      - id: 101
+        type: boolean
+        name: switch
+        mapping:
+          - dps_val: true
+            icon: "mdi:led-on"
+          - dps_val: false
+            icon: "mdi:led-off"
+  - entity: switch
+    name: Ionizer
+    icon: mdi:creation
+    dps:
+      - id: 10
+        name: switch
+        type: boolean
+  - entity: sensor
+    class: humidity
+    name: "Current humidity"
+    dps:
+      - id: 6
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement
+        readonly: true
+  - entity: switch
+    name: Sleep
+    category: config
+    dps:
+      - id: 104
+        type: boolean
+        name: switch
+        mapping:
+          - dps_val: true
+            icon: "mdi:sleep"
+          - dps_val: false
+            icon: "mdi:sleep-off"
+  - entity: binary_sensor
+    name: Tank
+    category: diagnostic
+    dps:
+      - id: 19
+        name: sensor
+        type: integer
+        mapping:
+          - dps_val: 1
+            value: true
+            icon: "mdi:flask-empty"
+          - dps_val: 0
+            value: false
+            icon: "mdi:flask-empty-outline"