Răsfoiți Sursa

Add AlecoAir PU55 HUMINO device configuration (#4016)

* Add AlecoAir PU55 HUMINO device configuration

Added configuration for AlecoAir PU55 HUMINO humidifier including entities for humidifier, fan, and various sensors.

* Fix lynt and fix incorrect keys

* Change name to more specific

* Added name keys for humidfier and purifier to diferenciate in automations

* Fix mapping step for humidifier

* Removed incorect icon key

* feat (alecoair_pu55_humino): changes from review

- naming and translation changes
- remove duplication

PR #4016

* Remove unnecessary blank line in YAML file

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
George Oniceag 3 luni în urmă
părinte
comite
0cc83864d7

+ 157 - 0
custom_components/tuya_local/devices/alecoair_pu55_humino.yaml

@@ -0,0 +1,157 @@
+name: Humidifier
+products:
+  - id: rjhsz1vaxpp4gih3
+    manufacturer: AlecoAir
+    model: PU55 Humino
+
+entities:
+  - entity: humidifier
+    class: humidifier
+    dps:
+      - id: 105
+        name: switch
+        type: boolean
+      - id: 101
+        name: humidity
+        type: integer
+        range:
+          min: 30
+          max: 70
+        mapping:
+          - step: 5
+      - id: 13
+        name: current_humidity
+        type: integer
+
+  - entity: fan
+    translation_key: fan_with_presets
+    name: Purifier
+    dps:
+      - id: 1
+        name: switch
+        type: boolean
+      - id: 4
+        name: speed
+        type: string
+        mapping:
+          - dps_val: low
+            value: 25
+          - dps_val: mid
+            value: 50
+          - dps_val: high
+            value: 75
+          - dps_val: max
+            value: 100
+      - id: 3
+        name: preset_mode
+        type: string
+        mapping:
+          - dps_val: normal
+            value: normal
+          - dps_val: ai_clean
+            value: AI Clean
+          - dps_val: sleep
+            value: sleep
+
+  - entity: sensor
+    name: Filter Life
+    dps:
+      - id: 5
+        name: sensor
+        type: integer
+        unit: "%"
+        class: measurement
+
+  - entity: sensor
+    class: humidity
+    dps:
+      - id: 13
+        name: sensor
+        type: integer
+        unit: "%"
+        class: measurement
+
+  - entity: sensor
+    translation_key: air_quality
+    dps:
+      - id: 21
+        name: sensor
+        type: string
+
+  - entity: sensor
+    name: Clean water tank
+    dps:
+      - id: 106
+        name: sensor
+        type: integer
+        unit: "%"
+        class: measurement
+
+  - entity: switch
+    translation_key: ionizer
+    category: config
+    dps:
+      - id: 6
+        name: switch
+        type: boolean
+
+  - entity: switch
+    translation_key: uv_sterilization
+    category: config
+    dps:
+      - id: 9
+        name: switch
+        type: boolean
+
+  - entity: switch
+    name: Mute
+    category: config
+    dps:
+      - id: 28
+        name: switch
+        type: boolean
+        mapping:
+          - dps_val: true
+            icon: mdi:volume-variant-off
+          - dps_val: false
+            icon: mdi:volume-medium
+
+  - entity: light
+    translation_key: display
+    category: config
+    dps:
+      - id: 103
+        name: switch
+        type: boolean
+
+  - entity: switch
+    name: Dry Fan
+    category: config
+    dps:
+      - id: 104
+        name: switch
+        type: boolean
+
+  - entity: number
+    translation_key: timer
+    class: duration
+    dps:
+      - id: 102
+        name: value
+        type: integer
+        unit: h
+        range:
+          min: 1
+          max: 24
+
+  - entity: switch
+    name: Constant mist
+    dps:
+      - id: 10
+        name: switch
+        type: boolean
+        mapping:
+          - dps_val: true
+            icon: mdi:air-humidifier
+          - dps_val: false
+            icon: mdi:air-humidifier-off