Przeglądaj źródła

feat (devices): add Clean Air Optima 607B humidifier

Issue #4114
Jason Rumney 1 miesiąc temu
rodzic
commit
da36ada7e5

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -1175,3 +1175,4 @@ Further device support has been made with the assistance of users. Please consid
 - [nhojt](https://github.com/nhojt) for contributing support for Inkbird INT-12-BW cooking probe thermometer.
 - [GavinIves](https://github.com/GavinIves) for contributing support for Casdon KG1 water dispenser.
 - [declan-wade](https://github.com/declan-wade) for contributing support for Thermann R290 water heat pump.
+- [lordp1](https://github.com/lordp1) for assisting with support for Clean Air Optima CA-607B humidifier.

+ 1 - 1
DEVICES.md

@@ -461,7 +461,7 @@
 - AlecoAir PU55 Humino humidifier
 - BlitzWolf BW-SH2, BW-SH5 humidifiers
 - Carro VES1011 humidifier
-- Clean Air Optima CA-604B, CA-605B humidifiers
+- Clean Air Optima CA-604B, CA-605B, CA-607B humidifiers
 - Clofte Duo 400 humidifier
 - Eanons QT-JS2014 purifying humidifier
 - Homvana H111S humidifier

+ 166 - 0
custom_components/tuya_local/devices/cleanair_607b_humidifier.yaml

@@ -0,0 +1,166 @@
+name: Humidifier
+products:
+  - id: mbmxoj7lkhfpwk2g
+    manufacturer: Clean Air Optima
+    model: CA-607B
+entities:
+  - entity: humidifier
+    class: humidifier
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+      - id: 3
+        type: string
+        name: humidity
+        mapping:
+          - dps_val: "cancel"
+            value: 0
+          - dps_val: "40"
+            value: 40
+          - dps_val: "45"
+            value: 45
+          - dps_val: "50"
+            value: 50
+          - dps_val: "55"
+            value: 55
+          - dps_val: "60"
+            value: 60
+          - dps_val: "65"
+            value: 65
+          - dps_val: "70"
+            value: 70
+          - dps_val: "75"
+            value: 75
+          - dps_val: "80"
+            value: 80
+      - id: 14
+        type: integer
+        name: current_humidity
+      - id: 24
+        type: string
+        name: mode
+        mapping:
+          - dps_val: cancel
+            value: away
+          - dps_val: baby
+            value: baby
+          - dps_val: health
+            value: comfort
+          - dps_val: AUTO
+            value: auto
+          - dps_val: SLEEP
+            value: sleep
+  - entity: fan
+    name: Spray level
+    icon: "mdi:spray"
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+      - id: 23
+        type: string
+        name: speed
+        mapping:
+          - dps_val: level_1
+            value: 33
+          - dps_val: level_2
+            value: 66
+          - dps_val: level_3
+            value: 100
+  - entity: sensor
+    class: temperature
+    category: diagnostic
+    dps:
+      - id: 10
+        type: integer
+        name: sensor
+        unit: C
+        class: measurement
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 19
+        type: string
+        name: option
+        mapping:
+          - dps_val: cancel
+            value: cancel
+          - dps_val: "1h"
+            value: "1h"
+          - dps_val: "2h"
+            value: "2h"
+          - dps_val: "3h"
+            value: "3h"
+          - dps_val: "4h"
+            value: "4h"
+          - dps_val: "5h"
+            value: "5h"
+          - dps_val: "6h"
+            value: "6h"
+          - dps_val: "7h"
+            value: "7h"
+          - dps_val: "8h"
+            value: "8h"
+          - dps_val: "9h"
+            value: "9h"
+          - dps_val: "10h"
+            value: "10h"
+          - dps_val: "11h"
+            value: "11h"
+          - dps_val: "12h"
+            value: "12h"
+  - entity: switch
+    translation_key: uv_sterilization
+    category: config
+    dps:
+      - id: 21
+        type: boolean
+        name: switch
+  - entity: binary_sensor
+    class: problem
+    translation_key: tank_empty
+    category: diagnostic
+    dps:
+      - id: 22
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 1
+            value: true
+          - value: false
+      - id: 22
+        type: bitfield
+        name: fault_code
+  - entity: switch
+    translation_key: ionizer
+    category: config
+    dps:
+      - id: 25
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Heat
+    icon: "mdi:fire"
+    category: config
+    dps:
+      - id: 26
+        type: boolean
+        name: switch
+  - entity: sensor
+    name: Filter life
+    category: diagnostic
+    dps:
+      - id: 33
+        type: integer
+        name: sensor
+        unit: "%"
+  - entity: binary_sensor
+    name: Cleaning reminder
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 101
+        type: boolean
+        name: sensor