Explorar el Código

Adding Wood's MRD25GW (#3778)

* Adding Wood's MRD25GW

* fix (woods_mrd25gw dehumidifier): rename and modernise config

- rename file to follow convention of brand_model_type.yaml
- use correct syntax for product info
- use modern single entities list
- use translations where available for names and icons
- merge current humidity to humidifier entity
- use standard problem sensor pattern

PR #3778

* whitespace cleanup

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
Tobias Jeppesen hace 4 meses
padre
commit
5ae279b01c

+ 74 - 0
custom_components/tuya_local/devices/woods_mrd25gw_dehumidifier.yaml

@@ -0,0 +1,74 @@
+name: Dehumidifier
+products:
+  - id: mgg4xziqqrzuozwv
+    manufacturer: Woods
+    model: MRD25GW
+entities:
+  - entity: humidifier
+    class: dehumidifier
+    dps:
+      - id: 1
+        name: switch
+        type: boolean
+      # Target humidity (your device exposes presets "40" and "50")
+      # We map those enum strings to numeric setpoints so HA shows 40%/50%.
+      - id: 3
+        name: humidity
+        type: string
+        mapping:
+          - dps_val: "40"
+            value: 40
+            step: 10
+          - dps_val: "50"
+            value: 50
+            step: 10
+        range:
+          min: 40
+          max: 50
+      # Fan speed as mode (Low/High)
+      - id: 4
+        name: mode
+        type: string
+        mapping:
+          - dps_val: low
+            value: Low
+          - dps_val: high
+            value: High
+      # Current humidity measurement
+      - id: 6
+        name: sensor
+        type: integer
+
+  # Swing flap
+  - entity: switch
+    name: Swing
+    icon: "mdi:unfold-more-horizontal"
+    dps:
+      - id: 8
+        name: switch
+        type: boolean
+
+  # Child lock
+  - entity: lock
+    translation_key: child_lock
+    category: config
+    dps:
+      - id: 16
+        name: lock
+        type: boolean
+
+  # Fault / Tank / Error indicator (true if any bit set)
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 19
+        name: sensor
+        type: bitfield
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+      - id: 19
+        type: bitfield
+        name: fault_code