Просмотр исходного кода

feat(woods_mrd25gw_dehumidifier): support MRD20GW

- expand humidity range to 40-70 as observed on MRD20GW
  Woods website lists humidity range as 30-80% for both models but we only
  observe 40-70 on MRD20GW, and MRD25GW was originally submitted with a 40-50 range,
  but this does not seem useful, as in humid climates it is virtually impossible to get
  the humidity to go below 55% with this size of dehumidifier.
- add tank full sensor on bit 4 of the problem sensor

PR #5559 by @AlexNaga
Jason Rumney 8 часов назад
Родитель
Сommit
b68fad9336
1 измененных файлов с 22 добавлено и 3 удалено
  1. 22 3
      custom_components/tuya_local/devices/woods_mrd25gw_dehumidifier.yaml

+ 22 - 3
custom_components/tuya_local/devices/woods_mrd25gw_dehumidifier.yaml

@@ -3,6 +3,9 @@ products:
   - id: mgg4xziqqrzuozwv
     manufacturer: Woods
     model: MRD25GW
+  - id: g5nx6i7qxfale9t7
+    manufacturer: Woods
+    model: MRD20GW
 entities:
   - entity: humidifier
     class: dehumidifier
@@ -10,8 +13,6 @@ entities:
       - 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
@@ -22,9 +23,15 @@ entities:
           - dps_val: "50"
             value: 50
             step: 10
+          - dps_val: "60"
+            value: 60
+            step: 10
+          - dps_val: "70"
+            value: 70
+            step: 10
         range:
           min: 40
-          max: 50
+          max: 70
       # Fan speed as mode (Low/High)
       - id: 4
         name: mode
@@ -58,6 +65,16 @@ entities:
         type: boolean
 
   # Fault / Tank / Error indicator (true if any bit set)
+  - entity: binary_sensor
+    translation_key: tank_full
+    dps:
+      - id: 19
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 16
+            value: true
+          - value: false
   - entity: binary_sensor
     class: problem
     category: diagnostic
@@ -68,6 +85,8 @@ entities:
         mapping:
           - dps_val: 0
             value: false
+          - dps_val: 16
+            value: false
           - value: true
       - id: 19
         type: bitfield