Kaynağa Gözat

Klarstein Iceblock: correct hvac_mode mapping

Add product id from #2096
Jason Rumney 1 yıl önce
ebeveyn
işleme
e8427c6791

+ 10 - 9
custom_components/tuya_local/devices/klarstein_iceblock_airconditioner.yaml

@@ -1,7 +1,7 @@
 name: Air conditioner
 name: Air conditioner
-# products:
-#   - id: UNKNOWN
-#     name: Klarstein Iceblock Ecosmart
+products:
+  - id: hmwftdaaxejmjtfe
+    name: Klarstein Iceblock Ecosmart
 primary_entity:
 primary_entity:
   entity: climate
   entity: climate
   dps:
   dps:
@@ -37,12 +37,13 @@ primary_entity:
     - id: 101
     - id: 101
       name: hvac_mode
       name: hvac_mode
       type: string
       type: string
-      - dps_val: "1"
-        value: cool
-      - dps_val: "3"
-        value: dry
-      - dps_val: "5"
-        value: fan_only
+      mapping:
+        - dps_val: "1"
+          value: cool
+        - dps_val: "3"
+          value: dry
+        - dps_val: "5"
+          value: fan_only
     - id: 103
     - id: 103
       name: preset_mode
       name: preset_mode
       type: boolean
       type: boolean