فهرست منبع

fix(venta_ah510_humidifier): fix mode naming

Original names were picked because the Tuya protocol naming does not
obviously match with the UI samples given, so it was easier to map them
logically based on the Tuya protocol names to eco/comfort/boost rather than
trying to figure out which is "auto" and whick "normal".

PR #5114 gives the proper mapping, so this can be adopted now.
Jason Rumney 3 روز پیش
والد
کامیت
9c2344ee7a
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      custom_components/tuya_local/devices/venta_ah510_humidifier.yaml

+ 4 - 4
custom_components/tuya_local/devices/venta_ah510_humidifier.yaml

@@ -3,7 +3,7 @@ products:
   - id: ecihf2xeg7ghlfnh
     manufacturer: Venta
     model: Original Connect
-    model_id: AH510
+    model_id: AH510/AH515
 entities:
   - entity: humidifier
     class: humidifier
@@ -30,11 +30,11 @@ entities:
         name: mode
         mapping:
           - dps_val: natural_evaporation
-            value: eco
+            value: normal
           - dps_val: heating_evaporation
-            value: comfort
+            value: sleep
           - dps_val: ultrasonic_evaporation
-            value: boost
+            value: auto
   - entity: fan
     dps:
       - id: 1