Quellcode durchsuchen

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 vor 1 Monat
Ursprung
Commit
9c2344ee7a
1 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  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
   - id: ecihf2xeg7ghlfnh
     manufacturer: Venta
     manufacturer: Venta
     model: Original Connect
     model: Original Connect
-    model_id: AH510
+    model_id: AH510/AH515
 entities:
 entities:
   - entity: humidifier
   - entity: humidifier
     class: humidifier
     class: humidifier
@@ -30,11 +30,11 @@ entities:
         name: mode
         name: mode
         mapping:
         mapping:
           - dps_val: natural_evaporation
           - dps_val: natural_evaporation
-            value: eco
+            value: normal
           - dps_val: heating_evaporation
           - dps_val: heating_evaporation
-            value: comfort
+            value: sleep
           - dps_val: ultrasonic_evaporation
           - dps_val: ultrasonic_evaporation
-            value: boost
+            value: auto
   - entity: fan
   - entity: fan
     dps:
     dps:
       - id: 1
       - id: 1