فهرست منبع

Add MyCond Berg support (#4498)

* Add MyCond Berg support

* feat (mycond_berg_dehumidifier): translations and device name

- use generic device name in case of other products matching the config
- use translations for presets

PR #4498

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
Taras Panchyshyn 2 ماه پیش
والد
کامیت
06731b371a
1فایلهای تغییر یافته به همراه128 افزوده شده و 0 حذف شده
  1. 128 0
      custom_components/tuya_local/devices/mycond_berg_dehumidifier.yaml

+ 128 - 0
custom_components/tuya_local/devices/mycond_berg_dehumidifier.yaml

@@ -0,0 +1,128 @@
+name: Dehumidifier
+products:
+  - id: x16hab3bgmahaibm
+    manufacturer: MyCond
+    model: Berg
+entities:
+  - entity: humidifier
+    class: dehumidifier
+    translation_key: extended
+    dps:
+      - id: 1
+        name: switch
+        type: boolean
+      - id: 2
+        name: humidity
+        type: integer
+        range:
+          min: 30
+          max: 80
+        mapping:
+          - step: 5
+      - id: 5
+        name: mode
+        type: string
+        mapping:
+          - dps_val: dehumidify
+            value: normal
+          - dps_val: drying
+            value: laundry
+          - dps_val: winding
+            value: purify
+      - id: 6
+        name: current_humidity
+        type: integer
+  - entity: sensor
+    class: temperature
+    dps:
+      - id: 7
+        type: integer
+        name: sensor
+        class: measurement
+        unit: C
+  - entity: switch
+    translation_key: ionizer
+    category: config
+    dps:
+      - id: 10
+        type: boolean
+        name: switch
+  - entity: lock
+    translation_key: child_lock
+    category: config
+    dps:
+      - id: 16
+        type: boolean
+        name: lock
+        optional: true
+  - entity: select
+    name: Fan speed
+    icon: "mdi:fan"
+    category: config
+    dps:
+      - id: 4
+        type: string
+        name: option
+        mapping:
+          - dps_val: low
+            value: Low
+          - dps_val: high
+            value: High
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 17
+        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
+          - dps_val: 13h
+            value: 13h
+          - dps_val: 14h
+            value: 14h
+          - dps_val: 15h
+            value: 15h
+          - dps_val: 16h
+            value: 16h
+          - dps_val: 17h
+            value: 17h
+          - dps_val: 18h
+            value: 18h
+          - dps_val: 19h
+            value: 19h
+          - dps_val: 20h
+            value: 20h
+          - dps_val: 21h
+            value: 21h
+          - dps_val: 22h
+            value: 22h
+          - dps_val: 23h
+            value: 23h
+          - dps_val: 24h
+            value: 24h