Nikolas Andreou 11 месяцев назад
Родитель
Сommit
380bd87b63

+ 109 - 0
custom_components/tuya_local/devices/morris_mdb_12160hiw_dehumidifier.yaml

@@ -0,0 +1,109 @@
+name: Dehumidifier
+products:
+  - id: pp03pgphjhirfiab
+    manufacturer: Morris
+    model: MDB-12160HIW
+entities:
+  - entity: humidifier
+    class: dehumidifier
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+      - id: 2
+        type: string
+        name: mode
+        mapping:
+          - dps_val: auto
+            value: auto
+          - dps_val: fan
+            value: purify
+      - 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
+    name: Status
+    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
+    name: Water Status
+    category: diagnostic
+    dps:
+      - id: 19
+        type: bitfield
+        name: Water Status
+        mapping:
+          - dps_val: 0
+            value: "normal"
+          - dps_val: 1
+            value: "full"
+  - entity: switch
+    name: Oscillation
+    category: config
+    dps:
+      - id: 102
+        type: boolean
+        name: switch
+  - 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
+  - entity: switch
+    name: Laundry
+    category: config
+    dps:
+      - id: 105
+        type: boolean
+        name: switch