Przeglądaj źródła

Common translations: climate fan_mode - use standard modes where possible

Modes with translations in HA: "off", "on", auto, low, medium, high,
top, middle, focus, diffuse.

Mostly just ensuring all lower case for auto, low, medium, high.  In
some cases where there was one other option above high, it was
replaced with top.

Issue #682
Jason Rumney 2 lat temu
rodzic
commit
ff27c43d94

+ 3 - 3
custom_components/tuya_local/devices/carson_cb.yaml

@@ -49,11 +49,11 @@ primary_entity:
       type: integer
       mapping:
         - dps_val: 1
-          value: "low"
+          value: low
         - dps_val: 2
-          value: "medium"
+          value: medium
         - dps_val: 3
-          value: "high"
+          value: high
     - id: 19
       name: temperature_unit
       type: string

+ 5 - 5
custom_components/tuya_local/devices/cooper_hunter_air_conditioner.yaml

@@ -60,19 +60,19 @@ primary_entity:
       type: string
       mapping:
         - dps_val: auto
-          value: Auto
+          value: auto
         - dps_val: quiet
           value: Quiet
         - dps_val: fan1
           value: Slow
         - dps_val: fan2
-          value: Low
+          value: low
         - dps_val: fan3
-          value: Medium
+          value: medium
         - dps_val: fan4
-          value: High
+          value: high
         - dps_val: fan5
-          value: Super High
+          value: top
     - id: 31
       name: swing_mode
       type: string

+ 5 - 5
custom_components/tuya_local/devices/daizuki_heatpump.yaml

@@ -40,21 +40,21 @@ primary_entity:
       name: fan_mode
       mapping:
         - dps_val: auto
-          value: Auto
+          value: auto
         - dps_val: mute
           value: Mute
         - dps_val: low
-          value: Low
+          value: low
         - dps_val: mid_low
           value: Med-low
         - dps_val: mid
-          value: Medium
+          value: medium
         - dps_val: mid_high
           value: Med-high
         - dps_val: high
-          value: High
+          value: high
         - dps_val: strong
-          value: Strong
+          value: top
     - id: 20
       type: integer
       name: unknown_20

+ 3 - 3
custom_components/tuya_local/devices/duux_blizzard_portable_aircon.yaml

@@ -30,11 +30,11 @@ primary_entity:
       name: fan_mode
       mapping:
         - dps_val: low
-          value: Low
+          value: low
         - dps_val: middle
-          value: Medium
+          value: medium
         - dps_val: high
-          value: High
+          value: high
     - id: 4
       type: integer
       name: unknown_4

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

@@ -50,13 +50,13 @@ primary_entity:
       type: string
       mapping:
         - dps_val: 0
-          value: "auto"
+          value: auto
         - dps_val: 1
-          value: "low"
+          value: low
         - dps_val: 2
-          value: "medium"
+          value: medium
         - dps_val: 3
-          value: "high"
+          value: high
     - id: 10
       name: temperature_unit
       type: boolean

+ 1 - 1
custom_components/tuya_local/devices/electriq_12wminv_heatpump.yaml

@@ -51,7 +51,7 @@ primary_entity:
             - dps_val: wet
               invalid: true
         - dps_val: 2
-          value: Turbo
+          value: top
           constraint: mode
           conditions:
             - dps_val: wet

+ 9 - 9
custom_components/tuya_local/devices/electriq_desd9lw_dehumidifier.yaml

@@ -36,24 +36,24 @@ primary_entity:
       type: string
       name: fan_mode
       mapping:
-        - dps_val: "Low"
+        - dps_val: Low
           constraint: mode
           conditions:
-            - dps_val: "Auto"
+            - dps_val: Auto
               invalid: true
-          value: "Low"
-        - dps_val: "Medium"
+          value: low
+        - dps_val: Medium
           constraint: mode
           conditions:
-            - dps_val: "Auto"
+            - dps_val: Auto
               invalid: true
-          value: "Medium"
-        - dps_val: "High"
+          value: medium
+        - dps_val: High
           constraint: mode
           conditions:
-            - dps_val: "Auto"
+            - dps_val: Auto
               invalid: true
-          value: "High"
+          value: high
     - id: 5
       name: mode
       type: string

+ 2 - 2
custom_components/tuya_local/devices/etop_ch7100_thermostat.yaml

@@ -95,9 +95,9 @@ primary_entity:
       type: string
       mapping:
         - dps_val: auto
-          value: Auto
+          value: auto
         - dps_val: "on"
-          value: "On"
+          value: "on"
     - id: 29
       name: current_temp_f
       type: integer

+ 3 - 3
custom_components/tuya_local/devices/fersk_vind_2_climate.yaml

@@ -50,11 +50,11 @@ primary_entity:
       type: integer
       mapping:
         - dps_val: 1
-          value: "low"
+          value: low
         - dps_val: 2
-          value: "medium"
+          value: medium
         - dps_val: 3
-          value: "high"
+          value: high
     - id: 19
       name: temperature_unit
       type: string

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

@@ -53,13 +53,13 @@ primary_entity:
       name: fan_mode
       mapping:
         - dps_val: low
-          value: Low
+          value: low
         - dps_val: med
-          value: Medium
+          value: medium
         - dps_val: high
-          value: High
+          value: high
         - dps_val: auto
-          value: Auto
+          value: auto
           constraint: operation
           conditions:
             - dps_val: ventilate

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

@@ -44,13 +44,13 @@ primary_entity:
       name: fan_mode
       mapping:
         - dps_val: auto
-          value: Auto
+          value: auto
         - dps_val: low
-          value: Low
+          value: low
         - dps_val: middle
-          value: Medium
+          value: medium
         - dps_val: high
-          value: High
+          value: high
     - id: 9
       type: integer
       name: unknown_9

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

@@ -51,13 +51,13 @@ primary_entity:
       name: fan_mode
       mapping:
         - dps_val: auto
-          value: Auto
+          value: auto
         - dps_val: low
-          value: Low
+          value: low
         - dps_val: middle
-          value: Medium
+          value: medium
         - dps_val: high
-          value: High
+          value: high
     - id: 6
       type: bitfield
       name: fault_code

+ 1 - 1
custom_components/tuya_local/devices/owon_pct513_thermostat.yaml

@@ -97,7 +97,7 @@ primary_entity:
         - dps_val: "on"
           value: "on"
         - dps_val: cycle
-          value: cycle
+          value: Cycle
     - id: 116
       type: string
       name: unknown_116

+ 2 - 2
custom_components/tuya_local/devices/saswell_t29utk_thermostat.yaml

@@ -51,8 +51,8 @@ primary_entity:
       name: fan_mode
       type: string
       mapping:
-        - dps_val: "auto"
-          value: "auto"
+        - dps_val: auto
+          value: auto
         - dps_val: "on"
           value: "on"
     - id: 19

+ 5 - 5
custom_components/tuya_local/devices/starlight_heatpump.yaml

@@ -54,21 +54,21 @@ primary_entity:
       type: string
       mapping:
         - dps_val: auto
-          value: Auto
+          value: auto
         - dps_val: mute
           value: Mute
         - dps_val: low
-          value: Low
+          value: low
         - dps_val: mid_low
           value: Med-Low
         - dps_val: mid
-          value: Medium
+          value: medium
         - dps_val: mid_high
           value: Med-High
         - dps_val: high
-          value: High
+          value: high
         - dps_val: strong
-          value: Strong
+          value: top
     - id: 20
       name: unknown_20
       type: integer

+ 5 - 5
custom_components/tuya_local/devices/tadiran_wind_heatpump.yaml

@@ -53,19 +53,19 @@ primary_entity:
         - dps_val: auto
           value: auto
         - dps_val: sleep
-          value: sleep
+          value: Sleep
         - dps_val: mute
-          value: mute
+          value: Mute
         - dps_val: low
           value: low
         - dps_val: health
-          value: health
+          value: Health
         - dps_val: middle
           value: medium
         - dps_val: natural
-          value: natural
+          value: Natural
         - dps_val: strong
-          value: strong
+          value: Strong
         - dps_val: high
           value: high
     - id: 101