Selaa lähdekoodia

fix hvac mode

Tataihono Nikora 2 vuotta sitten
vanhempi
commit
63d07e01d8

+ 10 - 4
custom_components/tuya_local/devices/arlec_pa1123bkha_portable_air_conditioner.yaml

@@ -11,17 +11,22 @@ primary_entity:
       mapping:
       mapping:
         - dps_val: false
         - dps_val: false
           value: "off"
           value: "off"
+          icon: "mdi:hvac-off"
         - dps_val: true
         - dps_val: true
           constraint: mode
           constraint: mode
           conditions:
           conditions:
             - dps_val: 1
             - dps_val: 1
-              value: "cool"
+              icon: "mdi:snowflake"
+              value: cool
             - dps_val: 2
             - dps_val: 2
-              value: "heat"
+              icon: "mdi:fire"
+              value: heat
             - dps_val: 3
             - dps_val: 3
-              value: "dry"
+              icon: "mdi:water"
+              value: dry
             - dps_val: 4
             - dps_val: 4
-              value: "fan_only"
+              icon: "mdi:fan"
+              value: fan_only
     - id: 2
     - id: 2
       type: integer
       type: integer
       name: temperature
       name: temperature
@@ -54,6 +59,7 @@ primary_entity:
     - id: 101
     - id: 101
       name: mode
       name: mode
       type: string
       type: string
+      hidden: true
     - id: 103
     - id: 103
       name: preset_mode
       name: preset_mode
       type: boolean
       type: boolean