فهرست منبع

feat (translations): standardize and translate min and max temperatures

Issue #1708
Jason Rumney 2 ماه پیش
والد
کامیت
0ea7a21b3a
70فایلهای تغییر یافته به همراه253 افزوده شده و 149 حذف شده
  1. 6 0
      custom_components/tuya_local/__init__.py
  2. 1 2
      custom_components/tuya_local/devices/avatto_wt100_thermostat.yaml
  3. 4 4
      custom_components/tuya_local/devices/beok_tcb38_thermostat.yaml
  4. 1 2
      custom_components/tuya_local/devices/beok_tgm50_thermostat.yaml
  5. 1 2
      custom_components/tuya_local/devices/beok_tgm50wp_thermostat.yaml
  6. 2 4
      custom_components/tuya_local/devices/beok_tgr81_thermostat_c.yaml
  7. 1 2
      custom_components/tuya_local/devices/beok_tol47_thermostat.yaml
  8. 4 4
      custom_components/tuya_local/devices/beok_tr8b_thermostat.yaml
  9. 2 2
      custom_components/tuya_local/devices/beok_tr9b_thermostat.yaml
  10. 2 2
      custom_components/tuya_local/devices/bht002_galw_thermostat.yaml
  11. 2 2
      custom_components/tuya_local/devices/bht002_gblw_thermostat.yaml
  12. 4 4
      custom_components/tuya_local/devices/brade_mc6_thermostat.yaml
  13. 2 4
      custom_components/tuya_local/devices/earu_k6h3aw_thermostat.yaml
  14. 2 4
      custom_components/tuya_local/devices/ettroit_ln4102_thermostat.yaml
  15. 2 2
      custom_components/tuya_local/devices/ezaiot_r9lite_thermostat.yaml
  16. 3 4
      custom_components/tuya_local/devices/hrt_as90_climatealarm.yaml
  17. 2 4
      custom_components/tuya_local/devices/hysen_hy02tp_thermostat.yaml
  18. 2 4
      custom_components/tuya_local/devices/hysen_hy08acf_thermostat.yaml
  19. 2 2
      custom_components/tuya_local/devices/hysen_hy08we2_thermostat.yaml
  20. 2 4
      custom_components/tuya_local/devices/hysen_hy101rf_thermostat.yaml
  21. 2 4
      custom_components/tuya_local/devices/inkbird_itc306a_thermostat.yaml
  22. 2 4
      custom_components/tuya_local/devices/inkbird_itc308_thermostat.yaml
  23. 3 3
      custom_components/tuya_local/devices/ir_moes_heatpump.yaml
  24. 2 2
      custom_components/tuya_local/devices/ledlux_thermostat.yaml
  25. 2 0
      custom_components/tuya_local/devices/madimack_eco_heatpump_9kW.yaml
  26. 2 4
      custom_components/tuya_local/devices/me80_thermostat.yaml
  27. 1 2
      custom_components/tuya_local/devices/minco_mh1823d_thermostat.yaml
  28. 2 2
      custom_components/tuya_local/devices/moes_trv601_thermostat.yaml
  29. 4 4
      custom_components/tuya_local/devices/moes_trv_thermostat.yaml
  30. 2 4
      custom_components/tuya_local/devices/moes_wht009_thermostat.yaml
  31. 2 4
      custom_components/tuya_local/devices/multi_leaf_dy_107_thermostat.yaml
  32. 2 4
      custom_components/tuya_local/devices/myuet_me82_thermostat.yaml
  33. 4 4
      custom_components/tuya_local/devices/neo_ir_climate_controller.yaml
  34. 2 4
      custom_components/tuya_local/devices/pgst_climate_sensor.yaml
  35. 4 4
      custom_components/tuya_local/devices/plikc_neve_thermostat.yaml
  36. 2 4
      custom_components/tuya_local/devices/protech_pt19dw_climateclock.yaml
  37. 2 4
      custom_components/tuya_local/devices/psmart_t436_thermostat.yaml
  38. 2 4
      custom_components/tuya_local/devices/salcar_t9w_thermostat.yaml
  39. 2 4
      custom_components/tuya_local/devices/snt957w_de_cbu_temp_humidity.yaml
  40. 2 4
      custom_components/tuya_local/devices/snt957w_tde_temp.yaml
  41. 2 4
      custom_components/tuya_local/devices/t5e_wf_thermostat.yaml
  42. 4 4
      custom_components/tuya_local/devices/th05z_temphumidity.yaml
  43. 4 4
      custom_components/tuya_local/devices/thb2_temperature_and_humidity_sensor.yaml
  44. 2 4
      custom_components/tuya_local/devices/vine_tj550_thermostat.yaml
  45. 2 4
      custom_components/tuya_local/devices/wasserstein_aquapal_watermonitor.yaml
  46. 2 2
      custom_components/tuya_local/devices/yieryi_ph_meter.yaml
  47. 6 0
      custom_components/tuya_local/icons.json
  48. 6 0
      custom_components/tuya_local/translations/bg.json
  49. 6 0
      custom_components/tuya_local/translations/ca.json
  50. 6 0
      custom_components/tuya_local/translations/cz.json
  51. 6 0
      custom_components/tuya_local/translations/de.json
  52. 6 0
      custom_components/tuya_local/translations/el.json
  53. 6 0
      custom_components/tuya_local/translations/en.json
  54. 6 0
      custom_components/tuya_local/translations/es.json
  55. 6 0
      custom_components/tuya_local/translations/fr.json
  56. 6 0
      custom_components/tuya_local/translations/hu.json
  57. 6 0
      custom_components/tuya_local/translations/id.json
  58. 6 0
      custom_components/tuya_local/translations/it.json
  59. 6 0
      custom_components/tuya_local/translations/ja.json
  60. 6 0
      custom_components/tuya_local/translations/no-NB.json
  61. 6 0
      custom_components/tuya_local/translations/pl.json
  62. 6 0
      custom_components/tuya_local/translations/pt-BR.json
  63. 6 0
      custom_components/tuya_local/translations/pt-PT.json
  64. 6 0
      custom_components/tuya_local/translations/ro.json
  65. 6 0
      custom_components/tuya_local/translations/ru.json
  66. 6 0
      custom_components/tuya_local/translations/sv.json
  67. 6 0
      custom_components/tuya_local/translations/uk.json
  68. 6 0
      custom_components/tuya_local/translations/ur.json
  69. 6 0
      custom_components/tuya_local/translations/zh-Hans.json
  70. 6 0
      custom_components/tuya_local/translations/zh-Hant.json

+ 6 - 0
custom_components/tuya_local/__init__.py

@@ -37,6 +37,10 @@ def replace_unique_ids(entity_entry, device_id, conf_file, replacements):
     platform = entity_entry.entity_id.split(".", 1)[0]
     for suffix, new_suffix in replacements.items():
         if old_id.endswith(suffix):
+            # If the entity still exists in the config, do not migrate
+            for e in conf_file.all_entities():
+                if e.unique_id(device_id) == old_id:
+                    return None
             for e in conf_file.all_entities():
                 new_id = e.unique_id(device_id)
                 if e.entity == platform and not e.name and new_id.endswith(new_suffix):
@@ -655,6 +659,8 @@ async def async_migrate_entry(hass, entry: ConfigEntry):
                 "switch_disturb_switch": "switch_do_not_disturb",
                 "number_temperature_correction": "number_temperature_calibration",
                 "number_calibration_offset": "number_temperature_calibration",
+                "number_high_temperature_limit": "number_maximum_temperature",
+                "number_low_temperature_limit": "number_minimum_temperature",
             }
             return replace_unique_ids(entity_entry, device_id, conf_file, replacements)
 

+ 1 - 2
custom_components/tuya_local/devices/avatto_wt100_thermostat.yaml

@@ -105,10 +105,9 @@ entities:
           - scale: 10
         unit: °
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-up"
     dps:
       - id: 21
         type: integer

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

@@ -86,9 +86,9 @@ entities:
           - scale: 10
             step: 5
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     category: config
-    icon: "mdi:themometer-chevron-up"
+    class: temperature
     dps:
       - id: 21
         type: integer
@@ -98,9 +98,9 @@ entities:
           min: 5
           max: 99
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     category: config
-    icon: "mdi:thermometer-chevron-down"
+    class: temperature
     dps:
       - id: 22
         type: integer

+ 1 - 2
custom_components/tuya_local/devices/beok_tgm50_thermostat.yaml

@@ -100,10 +100,9 @@ entities:
         mapping:
           - scale: 10
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-up"
     dps:
       - id: 15
         type: integer

+ 1 - 2
custom_components/tuya_local/devices/beok_tgm50wp_thermostat.yaml

@@ -103,10 +103,9 @@ entities:
         mapping:
           - scale: 10
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-up"
     dps:
       - id: 15
         type: integer

+ 2 - 4
custom_components/tuya_local/devices/beok_tgr81_thermostat_c.yaml

@@ -128,10 +128,9 @@ entities:
         optional: true
         type: bitfield
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-up"
     dps:
       - id: 19
         type: integer
@@ -142,10 +141,9 @@ entities:
           min: 30
           max: 90
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-down"
     dps:
       - id: 26
         optional: true

+ 1 - 2
custom_components/tuya_local/devices/beok_tol47_thermostat.yaml

@@ -95,10 +95,9 @@ entities:
         mapping:
           - scale: 10
   - entity: number
-    name: High temperature limit
+    translation_key: maximum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-up"
     dps:
       - id: 21
         type: integer

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

@@ -135,9 +135,9 @@ entities:
           - dps_val: f
             value: fahrenheit
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     category: config
-    icon: "mdi:thermometer-chevron-up"
+    class: temperature
     dps:
       - id: 19
         type: integer
@@ -157,9 +157,9 @@ entities:
           - dps_val: f
             value: F
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     category: config
-    icon: "mdi:thermometer-chevron-down"
+    class: temperature
     dps:
       - id: 26
         type: integer

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

@@ -151,7 +151,7 @@ entities:
         type: bitfield
         name: fault_code
   - entity: number
-    name: High temperature limit
+    translation_key: maximum_temperature
     category: config
     class: temperature
     dps:
@@ -166,7 +166,7 @@ entities:
           - scale: 10
             step: 10
   - entity: number
-    name: Low temperature limit
+    translation_key: minimum_temperature
     category: config
     class: temperature
     dps:

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

@@ -93,9 +93,9 @@ entities:
           - dps_val: out
             value: External
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     category: config
-    icon: "mdi:thermometer-chevron-up"
+    class: temperature
     dps:
       - id: 19
         type: integer

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

@@ -100,9 +100,9 @@ entities:
           - dps_val: out
             value: External
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     category: config
-    icon: "mdi:thermometer-chevron-up"
+    class: temperature
     dps:
       - id: 19
         type: integer

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

@@ -129,9 +129,9 @@ entities:
         name: program
         optional: true
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     category: config
-    icon: "mdi:thermometer-chevron-up"
+    class: temperature
     dps:
       - id: 19
         type: integer
@@ -166,9 +166,9 @@ entities:
           - dps_val: f
             value: F
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     category: config
-    icon: "mdi:thermometer-chevron-down"
+    class: temperature
     dps:
       - id: 26
         type: integer

+ 2 - 4
custom_components/tuya_local/devices/earu_k6h3aw_thermostat.yaml

@@ -142,10 +142,9 @@ entities:
         name: fault_code
         type: bitfield
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-up"
     dps:
       - id: 19
         optional: true
@@ -169,10 +168,9 @@ entities:
         optional: true
         name: k6h
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-down"
     dps:
       - id: 26
         optional: true

+ 2 - 4
custom_components/tuya_local/devices/ettroit_ln4102_thermostat.yaml

@@ -58,9 +58,8 @@ entities:
         mapping:
           - scale: 10
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     class: temperature
-    icon: "mdi:thermometer-chevron-up"
     category: config
     dps:
       - id: 19
@@ -73,9 +72,8 @@ entities:
         mapping:
           - scale: 10
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     class: temperature
-    icon: "mdi:thermometer-chevron-down"
     category: config
     dps:
       - id: 26

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

@@ -151,7 +151,7 @@ entities:
         type: bitfield
         name: fault_code
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     category: config
     class: temperature
     dps:
@@ -166,7 +166,7 @@ entities:
           - scale: 10
             step: 10
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     category: config
     class: temperature
     dps:

+ 3 - 4
custom_components/tuya_local/devices/hrt_as90_climatealarm.yaml

@@ -53,10 +53,9 @@ entities:
           - dps_val: f
             value: fahrenheit
   - entity: number
-    name: High temperature limit
+    translation_key: maximum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-up"
     dps:
       - id: 10
         type: integer
@@ -68,9 +67,9 @@ entities:
         mapping:
           - scale: 10
   - entity: number
-    name: Low temperature limit
+    translation_key: minimum_temperature
     category: config
-    icon: "mdi:thermometer^chevron-down"
+    class: temperature
     dps:
       - id: 11
         type: integer

+ 2 - 4
custom_components/tuya_local/devices/hysen_hy02tp_thermostat.yaml

@@ -182,10 +182,9 @@ entities:
           min: 1
           max: 10
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-up"
     dps:
       - id: 114
         type: integer
@@ -195,10 +194,9 @@ entities:
           min: 20
           max: 70
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-down"
     dps:
       - id: 115
         type: integer

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

@@ -155,10 +155,9 @@ entities:
         mapping:
           - scale: 10
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-up"
     dps:
       - id: 103
         type: integer
@@ -168,10 +167,9 @@ entities:
           min: 16
           max: 50
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-down"
     dps:
       - id: 104
         type: integer

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

@@ -245,7 +245,7 @@ entities:
           - dps_val: true
             value: F
   - entity: number
-    name: High temperature limit
+    translation_key: maximum_temperature
     category: config
     class: temperature
     dps:
@@ -271,7 +271,7 @@ entities:
           - dps_val: true
             value: F
   - entity: number
-    name: Low temperature limit
+    translation_key: minimum_temperature
     category: config
     class: temperature
     dps:

+ 2 - 4
custom_components/tuya_local/devices/hysen_hy101rf_thermostat.yaml

@@ -238,10 +238,9 @@ entities:
           - dps_val: true
             value: F
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-up"
     dps:
       - id: 114
         type: integer
@@ -258,10 +257,9 @@ entities:
           - dps_val: true
             value: F
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-down"
     dps:
       - id: 115
         type: integer

+ 2 - 4
custom_components/tuya_local/devices/inkbird_itc306a_thermostat.yaml

@@ -149,10 +149,9 @@ entities:
           min: 0
           max: 96
   - entity: number
-    name: High temperature limit
+    translation_key: maximum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-alert"
     dps:
       - id: 109
         name: value
@@ -173,8 +172,7 @@ entities:
         type: string
         hidden: true
   - entity: number
-    name: Low temperature limit
-    icon: "mdi:snowflake-alert"
+    translation_key: minimum_temperature
     category: config
     class: temperature
     dps:

+ 2 - 4
custom_components/tuya_local/devices/inkbird_itc308_thermostat.yaml

@@ -117,10 +117,9 @@ entities:
           min: 0
           max: 10
   - entity: number
-    name: High temperature limit
+    translation_key: maximum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-alert"
     dps:
       - id: 109
         name: value
@@ -141,8 +140,7 @@ entities:
         type: string
         hidden: true
   - entity: number
-    name: Low temperature limit
-    icon: "mdi:snowflake-alert"
+    translation_key: minimum_temperature
     category: config
     class: temperature
     dps:

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

@@ -108,7 +108,7 @@ entities:
         unit: h
         optional: true
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     category: config
     class: temperature
     dps:
@@ -120,9 +120,9 @@ entities:
           min: 16
           max: 30
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     category: config
-    icon: "mdi:"
+    class: temperature
     dps:
       - id: 10
         type: integer

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

@@ -133,7 +133,7 @@ entities:
           max: 10
         unit: C
   - entity: number
-    name: High temperature limit
+    translation_key: maximum_temperature
     category: config
     class: temperature
     dps:
@@ -145,7 +145,7 @@ entities:
           max: 70
         unit: C
   - entity: number
-    name: Low temperature limit
+    translation_key: minimum_temperature
     category: config
     class: temperature
     dps:

+ 2 - 0
custom_components/tuya_local/devices/madimack_eco_heatpump_9kW.yaml

@@ -98,6 +98,7 @@ entities:
   # Temperature diagnostics (read-only telemetry)
   - entity: sensor
     name: Maximum temperature
+    class: temperature
     category: diagnostic
     dps:
       - id: 21
@@ -107,6 +108,7 @@ entities:
 
   - entity: sensor
     name: Minimum temperature
+    class: temperature
     category: diagnostic
     dps:
       - id: 22

+ 2 - 4
custom_components/tuya_local/devices/me80_thermostat.yaml

@@ -105,10 +105,9 @@ entities:
         type: string
         name: program
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-up"
     dps:
       - id: 18
         type: integer
@@ -141,10 +140,9 @@ entities:
           - dps_val: f
             value: F
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-down"
     dps:
       - id: 20
         type: integer

+ 1 - 2
custom_components/tuya_local/devices/minco_mh1823d_thermostat.yaml

@@ -202,8 +202,7 @@ entities:
   - entity: number
     category: config
     class: temperature
-    name: High temperature limit
-    icon: "mdi:thermometer-alert"
+    translation_key: maximum_temperature
     dps:
       - id: 106
         type: integer

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

@@ -117,7 +117,7 @@ entities:
         type: bitfield
         name: fault_code
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     category: config
     class: temperature
     dps:
@@ -131,7 +131,7 @@ entities:
         mapping:
           - scale: 10
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     category: config
     class: temperature
     dps:

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

@@ -194,9 +194,9 @@ entities:
           min: -9
           max: 9
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     category: config
-    icon: "mdi:thermometer-chevron-up"
+    class: temperature
     dps:
       - id: 108
         type: integer
@@ -207,9 +207,9 @@ entities:
           min: 15
           max: 45
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     category: config
-    icon: "mdi:thermometer-chevron-down"
+    class: temperature
     dps:
       - id: 109
         type: integer

+ 2 - 4
custom_components/tuya_local/devices/moes_wht009_thermostat.yaml

@@ -64,10 +64,9 @@ entities:
         optional: true
         name: week_program
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     class: temperature
     category: config
-    icon: "mdi:thermometer-chevron-up"
     dps:
       - id: 19
         type: integer
@@ -81,10 +80,9 @@ entities:
           - scale: 10
             step: 10
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     class: temperature
     category: config
-    icon: "mdi:thermometer-chevron-down"
     dps:
       - id: 26
         type: integer

+ 2 - 4
custom_components/tuya_local/devices/multi_leaf_dy_107_thermostat.yaml

@@ -112,10 +112,9 @@ entities:
         name: fault_code
         type: bitfield
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-up"
     dps:
       - id: 19
         type: integer
@@ -125,10 +124,9 @@ entities:
           min: 30
           max: 90
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-down"
     dps:
       - id: 26
         optional: true

+ 2 - 4
custom_components/tuya_local/devices/myuet_me82_thermostat.yaml

@@ -71,10 +71,9 @@ entities:
             value: false
             hidden: true
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     class: temperature
     category: config
-    icon: "mdi:thermometer-chevron-up"
     dps:
       - id: 19
         type: integer
@@ -88,10 +87,9 @@ entities:
           min: 200
           max: 700
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     class: temperature
     category: config
-    icon: "mdi:thermometer-chevron-down"
     dps:
       - id: 26
         type: integer

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

@@ -112,9 +112,9 @@ entities:
         unit: h
         optional: true
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
+    class: temperature
     category: config
-    icon: "mdi:thermometer-chevron-up"
     dps:
       - id: 9
         type: integer
@@ -138,9 +138,9 @@ entities:
           - dps_val: f
             value: F
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     category: config
-    icon: "mdi:thermometer-chevron-up"
+    class: temperature
     dps:
       - id: 10
         type: integer

+ 2 - 4
custom_components/tuya_local/devices/pgst_climate_sensor.yaml

@@ -51,10 +51,9 @@ entities:
           - dps_val: c
             value: celsius
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-up"
     dps:
       - id: 10
         type: integer
@@ -64,10 +63,9 @@ entities:
           min: -20
           max: 70
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-down"
     dps:
       - id: 11
         type: integer

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

@@ -226,10 +226,10 @@ entities:
           - scale: 10
   # Pro only entities
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
+    class: temperature
     category: config
     hidden: unavailable
-    icon: "mdi:thermometer-chevron-up"
     dps:
       - id: 19
         type: integer
@@ -250,10 +250,10 @@ entities:
             value: false
           - value: true
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     category: config
     hidden: unavailable
-    icon: "mdi:thermometer-chevron-down"
+    class: temperature
     dps:
       - id: 26
         type: integer

+ 2 - 4
custom_components/tuya_local/devices/protech_pt19dw_climateclock.yaml

@@ -115,10 +115,9 @@ entities:
         optional: true
         name: alarm
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-up"
     dps:
       - id: 108
         type: integer
@@ -137,10 +136,9 @@ entities:
           - dps_val: f
             value: F
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     class: temperature
     category: config
-    icon: "mdi:thermometer-chevron-down"
     dps:
       - id: 109
         type: integer

+ 2 - 4
custom_components/tuya_local/devices/psmart_t436_thermostat.yaml

@@ -74,10 +74,9 @@ entities:
           - dps_val: high
             value: high
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     class: temperature
     category: config
-    icon: "mdi:thermometer-chevron-up"
     dps:
       - id: 19
         type: integer
@@ -91,10 +90,9 @@ entities:
           - scale: 10
             step: 10
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     class: temperature
     category: config
-    icon: "mdi:thermometer-chevron-down"
     dps:
       - id: 26
         type: integer

+ 2 - 4
custom_components/tuya_local/devices/salcar_t9w_thermostat.yaml

@@ -68,10 +68,9 @@ entities:
         type: boolean
         name: switch
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-up"
     dps:
       - id: 19
         type: integer
@@ -103,10 +102,9 @@ entities:
           - dps_val: f
             value: fahrenheit
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-down"
     dps:
       - id: 26
         type: integer

+ 2 - 4
custom_components/tuya_local/devices/snt957w_de_cbu_temp_humidity.yaml

@@ -37,10 +37,9 @@ entities:
             value: celsius
         optional: true
   - entity: number
-    name: High temperature limit
+    translation_key: maximum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-up"
     dps:
       - id: 10
         type: integer
@@ -52,10 +51,9 @@ entities:
         mapping:
           - scale: 10
   - entity: number
-    name: Low temperature limit
+    translation_key: minimum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-down"
     dps:
       - id: 11
         type: integer

+ 2 - 4
custom_components/tuya_local/devices/snt957w_tde_temp.yaml

@@ -27,10 +27,9 @@ entities:
             value: celsius
         optional: true
   - entity: number
-    name: High temperature limit
+    translation_key: maximum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-up"
     dps:
       - id: 10
         type: integer
@@ -43,10 +42,9 @@ entities:
           - scale: 10
         optional: true
   - entity: number
-    name: Low temperature limit
+    translation_key: minimum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-down"
     dps:
       - id: 11
         type: integer

+ 2 - 4
custom_components/tuya_local/devices/t5e_wf_thermostat.yaml

@@ -177,10 +177,9 @@ entities:
         type: boolean
         name: unknown_43
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-up"
     dps:
       - id: 18
         type: integer
@@ -215,10 +214,9 @@ entities:
           - dps_val: f
             value: F
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-down"
     dps:
       - id: 20
         type: integer

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

@@ -43,9 +43,9 @@ entities:
         name: sensor
         unit: "%"
   - entity: number
-    name: High temperature limit
+    translation_key: maximum_temperature
+    class: temperature
     category: config
-    icon: "mdi:thermometer-chevron-up"
     dps:
       - id: 10
         type: integer
@@ -57,9 +57,9 @@ entities:
         mapping:
           - scale: 10
   - entity: number
-    name: Low temperature limit
+    translation_key: minimum_temperature
     category: config
-    icon: "mdi:thermometer-chevron-down"
+    class: temperature
     dps:
       - id: 11
         type: integer

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

@@ -40,9 +40,9 @@ entities:
         name: sensor
         unit: "%"
   - entity: number
-    name: High temperature limit
+    translation_key: maximum_temperature
     category: config
-    icon: "mdi:thermometer-chevron-up"
+    class: temperature
     dps:
       - id: 10
         type: integer
@@ -54,9 +54,9 @@ entities:
         mapping:
           - scale: 10
   - entity: number
-    name: Low temperature limit
+    translation_key: minimum_temperature
     category: config
-    icon: "mdi:thermometer-chevron-down"
+    class: temperature
     dps:
       - id: 11
         type: integer

+ 2 - 4
custom_components/tuya_local/devices/vine_tj550_thermostat.yaml

@@ -231,10 +231,9 @@ entities:
         type: boolean
         name: switch
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-up"
     dps:
       - id: 19
         type: integer
@@ -267,10 +266,9 @@ entities:
           - dps_val: f
             value: F
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     category: config
     class: temperature
-    icon: "mdi:thermometer-chevron-down"
     dps:
       - id: 26
         type: integer

+ 2 - 4
custom_components/tuya_local/devices/wasserstein_aquapal_watermonitor.yaml

@@ -61,10 +61,9 @@ entities:
         mapping:
           - scale: 10
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     class: temperature
     category: config
-    icon: "mdi:thermometer-chevron-down"
     dps:
       - id: 104
         type: integer
@@ -74,10 +73,9 @@ entities:
           min: 0
           max: 176
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     class: temperature
     category: config
-    icon: "mdi:thermometer-chevron-up"
     dps:
       - id: 105
         type: integer

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

@@ -197,7 +197,7 @@ entities:
           - dps_val: null
             value: false
   - entity: number
-    name: Maximum temperature
+    translation_key: maximum_temperature
     class: temperature
     category: config
     hidden: unavailable
@@ -221,7 +221,7 @@ entities:
           - dps_val: null
             value: false
   - entity: number
-    name: Minimum temperature
+    translation_key: minimum_temperature
     class: temperature
     category: config
     hidden: unavailable

+ 6 - 0
custom_components/tuya_local/icons.json

@@ -140,6 +140,12 @@
             }
         },
         "number": {
+            "maximum_temperature": {
+                "default": "mdi:thermometer-chevron-up"
+            },
+            "minimum_temperature": {
+                "default": "mdi:thermometer-chevron-down"
+            },
             "sensor_threshold": {
                 "default": "mdi:arrow-collapse-up"
             },

+ 6 - 0
custom_components/tuya_local/translations/bg.json

@@ -423,6 +423,12 @@
             }
         },
         "number": {
+            "maximum_temperature": {
+                "name": "Максимална температура"
+            },
+            "minimum_temperature": {
+                "name": "Минимална температура"
+            },
             "sensor_threshold": {
                 "name": "{sensor} праг"
             },

+ 6 - 0
custom_components/tuya_local/translations/ca.json

@@ -568,6 +568,12 @@
             }
         },
         "number": {
+            "maximum_temperature": {
+                "name": "Temperatura màxima"
+            },
+            "minimum_temperature": {
+                "name": "Temperatura mínima"
+            },
             "sensor_threshold": {
                 "name": "{sensor} llindar"
             },

+ 6 - 0
custom_components/tuya_local/translations/cz.json

@@ -423,6 +423,12 @@
             }
         },
         "number": {
+            "maximum_temperature": {
+                "name": "Maximální teplota"
+            },
+            "minimum_temperature": {
+                "name": "Minimální teplota"
+            },
             "sensor_threshold": {
                 "name": "{sensor} práh"
             },

+ 6 - 0
custom_components/tuya_local/translations/de.json

@@ -423,6 +423,12 @@
             }
         },
         "number": {
+            "maximum_temperature": {
+                "name": "Maximale Temperatur"
+            },
+            "minimum_temperature": {
+                "name": "Minimale Temperatur"
+            },
             "sensor_threshold": {
                 "name": "{sensor} Schwellenwert"
             },

+ 6 - 0
custom_components/tuya_local/translations/el.json

@@ -423,6 +423,12 @@
             }
         },
         "number": {
+            "maximum_temperature": {
+                "name": "Μέγιστη θερμοκρασία"
+            },
+            "minimum_temperature": {
+                "name": "Ελάχιστη θερμοκρασία"
+            },
             "sensor_threshold": {
                 "name": "Κατώφλι {sensor}"
             },

+ 6 - 0
custom_components/tuya_local/translations/en.json

@@ -423,6 +423,12 @@
             }
         },
         "number": {
+            "maximum_temperature": {
+                "name": "Maximum temperature"
+            },
+            "minimum_temperature": {
+                "name": "Minimum temperature"
+            },
             "sensor_threshold": {
                 "name": "{sensor} threshold"
             },

+ 6 - 0
custom_components/tuya_local/translations/es.json

@@ -423,6 +423,12 @@
             }
         },
         "number": {
+            "maximum_temperature": {
+                "name": "Temperatura máxima"
+            },
+            "minimum_temperature": {
+                "name": "Temperatura mínima"
+            },
             "sensor_threshold": {
                 "name": "{sensor} umbral"
             },

+ 6 - 0
custom_components/tuya_local/translations/fr.json

@@ -423,6 +423,12 @@
             }
         },
         "number": {
+            "maximum_temperature": {
+                "name": "Température maximale"
+            },
+            "minimum_temperature": {
+                "name": "Température minimale"
+            },
             "sensor_threshold": {
                 "name": "{sensor} seuil"
             },

+ 6 - 0
custom_components/tuya_local/translations/hu.json

@@ -424,6 +424,12 @@
             }
         },
         "number": {
+            "maximum_temperature": {
+                "name": "Maximális hőmérséklet"
+            },
+            "minimum_temperature": {
+                "name": "Minimális hőmérséklet"
+            },
             "sensor_threshold": {
                 "name": "{sensor} küszöb"
             },

+ 6 - 0
custom_components/tuya_local/translations/id.json

@@ -424,6 +424,12 @@
             }
         },
         "number": {
+            "maximum_temperature": {
+                "name": "Suhu maksimum"
+            },
+            "minimum_temperature": {
+                "name": "Suhu minimum"
+            },
             "sensor_threshold": {
                 "name": "Ambang {sensor}"
             },

+ 6 - 0
custom_components/tuya_local/translations/it.json

@@ -424,6 +424,12 @@
             }
         },
         "number": {
+            "maximum_temperature": {
+                "name": "Temperatura massima"
+            },
+            "minimum_temperature": {
+                "name": "Temperatura minima"
+            },
             "sensor_threshold": {
                 "name": "{sensor} soglia"
             },

+ 6 - 0
custom_components/tuya_local/translations/ja.json

@@ -423,6 +423,12 @@
             }
         },
         "number": {
+            "maximum_temperature": {
+                "name": "最大温度"
+            },
+            "minimum_temperature": {
+                "name": "最小温度"
+            },
             "sensor_threshold": {
                 "name": "しきい値{sensor}"
             },

+ 6 - 0
custom_components/tuya_local/translations/no-NB.json

@@ -424,6 +424,12 @@
             }
         },
         "number": {
+            "maximum_temperature": {
+                "name": "Maksimumstemperatur"
+            },
+            "minimum_temperature": {
+                "name": "Minimumstemperatur"
+            },
             "sensor_threshold": {
                 "name": "{sensor} terskel"
             },

+ 6 - 0
custom_components/tuya_local/translations/pl.json

@@ -423,6 +423,12 @@
             }
         },
         "number": {
+            "maximum_temperature": {
+                "name": "Maksymalna temperatura"
+            },
+            "minimum_temperature": {
+                "name": "Minimalna temperatura"
+            },
             "sensor_threshold": {
                 "name": "{sensor} próg"
             },

+ 6 - 0
custom_components/tuya_local/translations/pt-BR.json

@@ -423,6 +423,12 @@
             }
         },
         "number": {
+            "maximum_temperature": {
+                "name": "Temperatura máxima"
+            },
+            "minimum_temperature": {
+                "name": "Temperatura mínima"
+            },
             "sensor_threshold": {
                 "name": "{sensor} limite"
             },

+ 6 - 0
custom_components/tuya_local/translations/pt-PT.json

@@ -423,6 +423,12 @@
             }
         },
         "number": {
+            "maximum_temperature": {
+                "name": "Temperatura máxima"
+            },
+            "minimum_temperature": {
+                "name": "Temperatura mínima"
+            },
             "sensor_threshold": {
                 "name": "{sensor} limite"
             },

+ 6 - 0
custom_components/tuya_local/translations/ro.json

@@ -423,6 +423,12 @@
             }
         },
         "number": {
+            "maximum_temperature": {
+                "name": "Temperatură maximă"
+            },
+            "minimum_temperature": {
+                "name": "Temperatură minimă"
+            },
             "sensor_threshold": {
                 "name": "Prag {sensor}"
             },

+ 6 - 0
custom_components/tuya_local/translations/ru.json

@@ -423,6 +423,12 @@
             }
         },
         "number": {
+            "maximum_temperature": {
+                "name": "Максимальная температура"
+            },
+            "minimum_temperature": {
+                "name": "Минимальная температура"
+            },
             "sensor_threshold": {
                 "name": "{sensor} порог"
             },

+ 6 - 0
custom_components/tuya_local/translations/sv.json

@@ -423,6 +423,12 @@
             }
         },
         "number": {
+            "maximum_temperature": {
+                "name": "Maximal temperatur"
+            },
+            "minimum_temperature": {
+                "name": "Minimal temperatur"
+            },
             "sensor_threshold": {
                 "name": "{sensor} tröskel"
             },

+ 6 - 0
custom_components/tuya_local/translations/uk.json

@@ -424,6 +424,12 @@
             }
         },
         "number": {
+            "maximum_temperature": {
+                "name": "Максимальна температура"
+            },
+            "minimum_temperature": {
+                "name": "Мінімальна температура"
+            },
             "sensor_threshold": {
                 "name": "{sensor} поріг"
             },

+ 6 - 0
custom_components/tuya_local/translations/ur.json

@@ -425,6 +425,12 @@
             }
         },
         "number": {
+            "maximum_temperature": {
+                "name": "زیادہ سے زیادہ درجہ حرارت"
+            },
+            "minimum_temperature": {
+                "name": "کم از کم درجہ حرارت"
+            },
             "sensor_threshold": {
                 "name": "{sensor} حد"
             },

+ 6 - 0
custom_components/tuya_local/translations/zh-Hans.json

@@ -423,6 +423,12 @@
             }
         },
         "number": {
+            "maximum_temperature": {
+                "name": "最高温度"
+            },
+            "minimum_temperature": {
+                "name": "最低温度"
+            },
             "sensor_threshold": {
                 "name": "{sensor}阈值"
             },

+ 6 - 0
custom_components/tuya_local/translations/zh-Hant.json

@@ -424,6 +424,12 @@
             }
         },
         "number": {
+            "maximum_temperature": {
+                "name": "最高溫度"
+            },
+            "minimum_temperature": {
+                "name": "最低溫度"
+            },
             "sensor_threshold": {
                 "name": "{sensor}閾值"
             },