Просмотр исходного кода

feat (translations): add ambient_temperature translation

- 28 instances of ambient temperature, one of air temperature (migrated)
- additional migration for current temperature to default "temperature"

Issue #1708
Jason Rumney 2 месяцев назад
Родитель
Сommit
70c8b91adc
56 измененных файлов с 130 добавлено и 64 удалено
  1. 28 0
      custom_components/tuya_local/__init__.py
  2. 1 1
      custom_components/tuya_local/config_flow.py
  3. 1 2
      custom_components/tuya_local/devices/arcelik_ahphmm_comboheatpump.yaml
  4. 1 2
      custom_components/tuya_local/devices/axen_ks100w_heatpump.yaml
  5. 1 2
      custom_components/tuya_local/devices/brokton_brst12_airconditioner.yaml
  6. 1 2
      custom_components/tuya_local/devices/brustec_br80_poolheater.yaml
  7. 1 2
      custom_components/tuya_local/devices/cbc_pool_bp_heatpump.yaml
  8. 1 3
      custom_components/tuya_local/devices/chiltrix_cx50_comboheatpump.yaml
  9. 0 1
      custom_components/tuya_local/devices/cleanair_605b_humidifier.yaml
  10. 1 7
      custom_components/tuya_local/devices/elko_cfmtb_thermostat.yaml
  11. 1 2
      custom_components/tuya_local/devices/fairland_rmic06_heatpump.yaml
  12. 1 2
      custom_components/tuya_local/devices/intaflo_intabloc_airwaterheatpump.yaml
  13. 1 2
      custom_components/tuya_local/devices/its_45hd_heatpump.yaml
  14. 1 1
      custom_components/tuya_local/devices/madimack_eco_heatpump.yaml
  15. 1 2
      custom_components/tuya_local/devices/madimack_eco_heatpump_9kW.yaml
  16. 1 2
      custom_components/tuya_local/devices/madimack_elite_v3_heatpump.yaml
  17. 1 2
      custom_components/tuya_local/devices/madimack_elite_v3_heatpump_updated.yaml
  18. 1 2
      custom_components/tuya_local/devices/madimack_elitev4_heatpump.yaml
  19. 1 2
      custom_components/tuya_local/devices/madimack_heatpump.yaml
  20. 1 2
      custom_components/tuya_local/devices/powerworld_pw040_waterheatpump.yaml
  21. 1 2
      custom_components/tuya_local/devices/powerworld_pw58410_hvaconly.yaml
  22. 1 2
      custom_components/tuya_local/devices/powerworld_pw58410_waterheater.yaml
  23. 1 1
      custom_components/tuya_local/devices/raddy_pt5_poolthermometer.yaml
  24. 1 2
      custom_components/tuya_local/devices/rinnai_enviroflo_waterheater.yaml
  25. 1 2
      custom_components/tuya_local/devices/sime_ecomaxi_vb200_waterheater.yaml
  26. 1 1
      custom_components/tuya_local/devices/solareast_aurora2_heatpump.yaml
  27. 1 2
      custom_components/tuya_local/devices/srne_energy_storage_battery.yaml
  28. 1 2
      custom_components/tuya_local/devices/steinbach_silent_mini_heatpump.yaml
  29. 1 2
      custom_components/tuya_local/devices/steinbach_solid_4.3_heatpump.yaml
  30. 1 2
      custom_components/tuya_local/devices/swimfun_inverboost_poolheatpump.yaml
  31. 1 3
      custom_components/tuya_local/devices/thermann_r290_waterheater.yaml
  32. 1 2
      custom_components/tuya_local/devices/waterco_electroheat_eco-vs_heatpump.yaml
  33. 3 0
      custom_components/tuya_local/icons.json
  34. 3 0
      custom_components/tuya_local/translations/bg.json
  35. 3 0
      custom_components/tuya_local/translations/ca.json
  36. 3 0
      custom_components/tuya_local/translations/cz.json
  37. 3 0
      custom_components/tuya_local/translations/de.json
  38. 3 0
      custom_components/tuya_local/translations/el.json
  39. 3 0
      custom_components/tuya_local/translations/en.json
  40. 3 0
      custom_components/tuya_local/translations/es.json
  41. 3 0
      custom_components/tuya_local/translations/fr.json
  42. 3 0
      custom_components/tuya_local/translations/hu.json
  43. 3 0
      custom_components/tuya_local/translations/id.json
  44. 3 0
      custom_components/tuya_local/translations/it.json
  45. 3 0
      custom_components/tuya_local/translations/ja.json
  46. 3 0
      custom_components/tuya_local/translations/no-NB.json
  47. 3 0
      custom_components/tuya_local/translations/pl.json
  48. 3 0
      custom_components/tuya_local/translations/pt-BR.json
  49. 3 0
      custom_components/tuya_local/translations/pt-PT.json
  50. 3 0
      custom_components/tuya_local/translations/ro.json
  51. 3 0
      custom_components/tuya_local/translations/ru.json
  52. 3 0
      custom_components/tuya_local/translations/sv.json
  53. 3 0
      custom_components/tuya_local/translations/uk.json
  54. 3 0
      custom_components/tuya_local/translations/ur.json
  55. 3 0
      custom_components/tuya_local/translations/zh-Hans.json
  56. 3 0
      custom_components/tuya_local/translations/zh-Hant.json

+ 28 - 0
custom_components/tuya_local/__init__.py

@@ -852,6 +852,34 @@ async def async_migrate_entry(hass, entry: ConfigEntry):
         await async_migrate_entries(hass, entry.entry_id, update_unique_id13_17)
         hass.config_entries.async_update_entry(entry, minor_version=17)
 
+    if entry.version == 13 and entry.minor_version < 18:
+        # Migrate unique ids of existing entities to new id taking into
+        # account translation_key, and standardising naming
+        device_id = get_device_unique_id(entry)
+        conf_file = await hass.async_add_executor_job(
+            get_config,
+            entry.data[CONF_TYPE],
+        )
+        if conf_file is None:
+            _LOGGER.error(
+                NOT_FOUND,
+                entry.data[CONF_TYPE],
+            )
+            return False
+
+        @callback
+        def update_unique_id13_18(entity_entry):
+            """Update the unique id of an entity entry."""
+            # Standardistion of entity naming to use translation_key
+            replacements = {
+                "sensor_air_temperature": "sensor_ambient_temperature",
+                "sensor_current_temperature": "sensor_temperature",
+            }
+            return replace_unique_ids(entity_entry, device_id, conf_file, replacements)
+
+        await async_migrate_entries(hass, entry.entry_id, update_unique_id13_18)
+        hass.config_entries.async_update_entry(entry, minor_version=18)
+
     return True
 
 

+ 1 - 1
custom_components/tuya_local/config_flow.py

@@ -53,7 +53,7 @@ DEVICE_DETAILS_URL = (
 
 class ConfigFlowHandler(ConfigFlow, domain=DOMAIN):
     VERSION = 13
-    MINOR_VERSION = 17
+    MINOR_VERSION = 18
     CONNECTION_CLASS = CONN_CLASS_LOCAL_PUSH
     device = None
     data = {}

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

@@ -332,9 +332,8 @@ entities:
           - scale: 10
 
   - entity: sensor
-    name: Ambient temperature
+    translation_key: ambient_temperature
     class: temperature
-    category: diagnostic
     dps:
       - id: 118
         type: integer

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

@@ -257,9 +257,8 @@ entities:
         type: boolean
         name: sensor
   - entity: sensor
-    name: Ambient temperature
+    translation_key: ambient_temperature
     class: temperature
-    category: diagnostic
     dps:
       - id: 118
         type: integer

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

@@ -393,9 +393,8 @@ entities:
         type: boolean
         name: sensor
   - entity: sensor
-    name: Ambient temperature
+    translation_key: ambient_temperature
     class: temperature
-    category: diagnostic
     dps:
       - id: 116
         type: integer

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

@@ -161,9 +161,8 @@ entities:
             value: F
           - value: C
   - entity: sensor
-    name: Ambient temperature
+    translation_key: ambient_temperature
     class: temperature
-    category: diagnostic
     dps:
       - id: 104
         type: integer

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

@@ -58,9 +58,8 @@ entities:
         type: integer
         unit: C
   - entity: sensor
-    name: Ambient temperature
+    translation_key: ambient_temperature
     class: temperature
-    category: diagnostic
     dps:
       - id: 102
         name: sensor

+ 1 - 3
custom_components/tuya_local/devices/chiltrix_cx50_comboheatpump.yaml

@@ -234,10 +234,8 @@ entities:
         class: measurement
 
   - entity: sensor
-    name: Ambient temperature
+    translation_key: ambient_temperature
     class: temperature
-    category: diagnostic
-    icon: "mdi:thermometer-lines"
     dps:
       - id: 117
         type: integer

+ 0 - 1
custom_components/tuya_local/devices/cleanair_605b_humidifier.yaml

@@ -34,7 +34,6 @@ entities:
           - dps_val: level3
             value: boost
   - entity: sensor
-    name: Current temperature
     class: temperature
     dps:
       - id: 10

+ 1 - 7
custom_components/tuya_local/devices/elko_cfmtb_thermostat.yaml

@@ -206,7 +206,6 @@ entities:
             value: "Regulator Mode (output displayed is based on percentage)"
   - entity: sensor
     name: Floor temperature
-    category: diagnostic
     hidden: unavailable
     dps:
       - id: 105
@@ -224,8 +223,7 @@ entities:
             value: false
           - value: true
   - entity: sensor
-    name: Air temperature
-    category: diagnostic
+    translation_key: ambient_temperature
     dps:
       - id: 104
         name: sensor
@@ -236,7 +234,6 @@ entities:
           - scale: 100
   - entity: sensor
     class: power
-    category: diagnostic
     dps:
       - id: 150
         name: sensor
@@ -245,7 +242,6 @@ entities:
         class: measurement
   - entity: sensor
     class: energy
-    category: diagnostic
     dps:
       - id: 151
         name: sensor
@@ -377,7 +373,6 @@ entities:
         name: switch
   - entity: binary_sensor
     class: occupancy
-    category: diagnostic
     dps:
       - id: 122
         type: string
@@ -388,7 +383,6 @@ entities:
           - value: false
   - entity: binary_sensor
     class: window
-    category: diagnostic
     dps:
       - id: 123
         type: string

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

@@ -141,8 +141,7 @@ entities:
           - dps_val: true
             value: C
   - entity: sensor
-    category: diagnostic
-    name: Ambient temperature
+    translation_key: ambient_temperature
     class: temperature
     dps:
       - id: 124

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

@@ -197,9 +197,8 @@ entities:
         unit: C
         class: measurement
   - entity: sensor
-    name: Ambient temperature
+    translation_key: ambient_temperature
     class: temperature
-    category: diagnostic
     dps:
       - id: 26
         type: integer

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

@@ -182,9 +182,8 @@ entities:
         unit: C
         class: measurement
   - entity: sensor
-    name: Ambient temperature
+    translation_key: ambient_temperature
     class: temperature
-    category: diagnostic
     dps:
       - id: 26
         type: integer

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

@@ -174,7 +174,7 @@ entities:
           - dps_val: c
             value: C
   - entity: sensor
-    name: Ambient temperature
+    translation_key: ambient_temperature
     class: temperature
     dps:
       - id: 115

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

@@ -147,9 +147,8 @@ entities:
         unit: "°C"
 
   - entity: sensor
-    name: Ambient temperature
+    translation_key: ambient_temperature
     class: temperature
-    category: diagnostic
     dps:
       - id: 26
         type: integer

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

@@ -140,8 +140,7 @@ entities:
           - dps_val: c
             value: C
   - entity: sensor
-    category: diagnostic
-    name: Ambient temperature
+    translation_key: ambient_temperature
     class: temperature
     dps:
       - id: 26

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

@@ -123,8 +123,7 @@ entities:
           - dps_val: c
             value: C
   - entity: sensor
-    category: diagnostic
-    name: Ambient temperature
+    translation_key: ambient_temperature
     class: temperature
     dps:
       - id: 115

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

@@ -151,8 +151,7 @@ entities:
           - dps_val: c
             value: C
   - entity: sensor
-    category: diagnostic
-    name: Ambient temperature
+    translation_key: ambient_temperature
     class: temperature
     dps:
       - id: 115

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

@@ -176,9 +176,8 @@ entities:
           - dps_val: true
             value: C
   - entity: sensor
-    category: diagnostic
     class: temperature
-    name: Ambient temperature
+    translation_key: ambient_temperature
     dps:
       - id: 124
         type: integer

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

@@ -166,8 +166,7 @@ entities:
         name: sensor
   - entity: sensor
     class: temperature
-    name: Ambient temperature
-    category: diagnostic
+    translation_key: ambient_temperature
     dps:
       - id: 103
         type: integer

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

@@ -237,9 +237,8 @@ entities:
             value: F
           - value: C
   - entity: sensor
-    name: Ambient temperature
+    translation_key: ambient_temperature
     class: temperature
-    category: diagnostic
     dps:
       - id: 101
         type: base64

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

@@ -228,9 +228,8 @@ entities:
             value: F
           - value: C
   - entity: sensor
-    name: Ambient temperature
+    translation_key: ambient_temperature
     class: temperature
-    category: diagnostic
     dps:
       - id: 101
         type: base64

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

@@ -7,7 +7,7 @@ products:
 entities:
   - entity: sensor
     class: temperature
-    name: Ambient temperature
+    translation_key: ambient_temperature
     dps:
       - id: 101
         name: sensor

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

@@ -88,9 +88,8 @@ entities:
         type: bitfield
         name: fault_code
   - entity: sensor
-    name: Ambient temperature
+    translation_key: ambient_temperature
     class: temperature
-    category: diagnostic
     dps:
       - id: 101
         type: integer

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

@@ -80,9 +80,8 @@ entities:
         name: sensor
         unit: C
   - entity: sensor
-    name: Ambient temperature
+    translation_key: ambient_temperature
     class: temperature
-    category: diagnostic
     dps:
       - id: 26
         type: integer

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

@@ -264,7 +264,7 @@ entities:
         unit: "C"
         class: measurement
   - entity: sensor
-    name: Ambient temperature
+    translation_key: ambient_temperature
     class: temperature
     dps:
       - id: 26

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

@@ -68,9 +68,8 @@ entities:
         mapping:
           - scale: 10
   - entity: sensor
-    category: diagnostic
     class: temperature
-    name: Ambient temperature
+    translation_key: ambient_temperature
     dps:
       - id: 119
         type: integer

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

@@ -78,9 +78,8 @@ entities:
             value: F
           - value: C
   - entity: sensor
-    name: Ambient temperature
+    translation_key: ambient_temperature
     class: temperature
-    category: diagnostic
     hidden: true
     dps:
       - id: 102

+ 1 - 2
custom_components/tuya_local/devices/steinbach_solid_4.3_heatpump.yaml

@@ -28,8 +28,7 @@ entities:
 
   - entity: sensor
     class: temperature
-    name: Ambient temperature
-    category: diagnostic
+    translation_key: ambient_temperature
     dps:
       - id: 102
         type: integer

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

@@ -187,9 +187,8 @@ entities:
         mapping:
           - scale: 10
   - entity: sensor
-    name: Ambient temperature
+    translation_key: ambient_temperature
     class: temperature
-    category: diagnostic
     dps:
       - id: 26
         type: integer

+ 1 - 3
custom_components/tuya_local/devices/thermann_r290_waterheater.yaml

@@ -112,10 +112,8 @@ entities:
         name: sensor
         unit: C
   - entity: sensor
-    name: Ambient temperature
-    icon: "mdi:thermometer"
+    translation_key: ambient_temperature
     class: temperature
-    category: diagnostic
     dps:
       - id: 108
         type: integer

+ 1 - 2
custom_components/tuya_local/devices/waterco_electroheat_eco-vs_heatpump.yaml

@@ -127,8 +127,7 @@ entities:
           - dps_val: c
             value: C
   - entity: sensor
-    category: diagnostic
-    name: Ambient temperature
+    translation_key: ambient_temperature
     class: temperature
     dps:
       - id: 115

+ 3 - 0
custom_components/tuya_local/icons.json

@@ -503,6 +503,9 @@
             }
         },
         "sensor": {
+            "ambient_temperature": {
+                "default": "mdi:sun-thermometer"
+            },
             "cleanliness": {
                 "default": "mdi:biohazard",
                 "state": {

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

@@ -979,6 +979,9 @@
             }
         },
         "sensor": {
+            "ambient_temperature": {
+                "name": "Температура на околната среда"
+            },
             "cleanliness": {
                 "name": "Чистота",
                 "state": {

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

@@ -978,6 +978,9 @@
             }
         },
         "sensor": {
+            "ambient_temperature": {
+                "name": "Temperatura ambiente"
+            },
             "cleanliness": {
                 "name": "Limpieza",
                 "state": {

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

@@ -978,6 +978,9 @@
             }
         },
         "sensor": {
+            "ambient_temperature": {
+                "name": "Teplota okolí"
+            },
             "cleanliness": {
                 "name": "Čistota",
                 "state": {

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

@@ -978,6 +978,9 @@
             }
         },
         "sensor": {
+            "ambient_temperature": {
+                "name": "Umgebungstemperatur"
+            },
             "cleanliness": {
                 "name": "Sauberkeit",
                 "state": {

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

@@ -978,6 +978,9 @@
             }
         },
         "sensor": {
+            "ambient_temperature": {
+                "name": "Θερμοκρασία περιβάλλοντος"
+            },
             "cleanliness": {
                 "name": "Καθαριότητα",
                 "state": {

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

@@ -978,6 +978,9 @@
             }
         },
         "sensor": {
+            "ambient_temperature": {
+                "name": "Ambient temperature"
+            },
             "cleanliness": {
                 "name": "Cleanliness",
                 "state": {

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

@@ -978,6 +978,9 @@
             }
         },
         "sensor": {
+            "ambient_temperature": {
+                "name": "Temperatura ambiente"
+            },
             "cleanliness": {
                 "name": "Limpieza",
                 "state": {

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

@@ -978,6 +978,9 @@
             }
         },
         "sensor": {
+            "ambient_temperature": {
+                "name": "Température ambiante"
+            },
             "cleanliness": {
                 "name": "Propreté",
                 "state": {

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

@@ -978,6 +978,9 @@
             }
         },
         "sensor": {
+            "ambient_temperature": {
+                "name": "Környezeti hőmérséklet"
+            },
             "cleanliness": {
                 "name": "Tisztaság",
                 "state": {

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

@@ -978,6 +978,9 @@
             }
         },
         "sensor": {
+            "ambient_temperature": {
+                "name": "Suhu sekitar"
+            },
             "cleanliness": {
                 "name": "Kebersihan",
                 "state": {

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

@@ -978,6 +978,9 @@
             }
         },
         "sensor": {
+            "ambient_temperature": {
+                "name": "Temperatura ambiente"
+            },
             "cleanliness": {
                 "name": "Pulizia",
                 "state": {

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

@@ -978,6 +978,9 @@
             }
         },
         "sensor": {
+            "ambient_temperature": {
+                "name": "周囲温度"
+            },
             "cleanliness": {
                 "name": "清潔さ",
                 "state": {

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

@@ -978,6 +978,9 @@
             }
         },
         "sensor": {
+            "ambient_temperature": {
+                "name": "Omgivelsestemperatur"
+            },
             "cleanliness": {
                 "name": "Renhet",
                 "state": {

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

@@ -978,6 +978,9 @@
             }
         },
         "sensor": {
+            "ambient_temperature": {
+                "name": "Temperatura otoczenia"
+            },
             "cleanliness": {
                 "name": "Czystość",
                 "state": {

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

@@ -978,6 +978,9 @@
             }
         },
         "sensor": {
+            "ambient_temperature": {
+                "name": "Temperatura ambiente"
+            },
             "cleanliness": {
                 "name": "Limpeza",
                 "state": {

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

@@ -978,6 +978,9 @@
             }
         },
         "sensor": {
+            "ambient_temperature": {
+                "name": "Temperatura ambiente"
+            },
             "cleanliness": {
                 "name": "Limpeza",
                 "state": {

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

@@ -978,6 +978,9 @@
             }
         },
         "sensor": {
+            "ambient_temperature": {
+                "name": "Temperatură ambientală"
+            },
             "cleanliness": {
                 "name": "Curățenie",
                 "state": {

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

@@ -978,6 +978,9 @@
             }
         },
         "sensor": {
+            "ambient_temperature": {
+                "name": "Температура окружающей среды"
+            },
             "cleanliness": {
                 "name": "Чистота",
                 "state": {

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

@@ -978,6 +978,9 @@
             }
         },
         "sensor": {
+            "ambient_temperature": {
+                "name": "Omgivningstemperatur"
+            },
             "cleanliness": {
                 "name": "Renlighet",
                 "state": {

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

@@ -978,6 +978,9 @@
             }
         },
         "sensor": {
+            "ambient_temperature": {
+                "name": "Температура окружающей среды"
+            },
             "cleanliness": {
                 "name": "Чистота",
                 "state": {

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

@@ -979,6 +979,9 @@
             }
         },
         "sensor": {
+            "ambient_temperature": {
+                "name": "ماحول کا درجہ حرارت"
+            },
             "cleanliness": {
                 "name": "صفائی",
                 "state": {

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

@@ -978,6 +978,9 @@
             }
         },
         "sensor": {
+            "ambient_temperature": {
+                "name": "环境温度"
+            },
             "cleanliness": {
                 "name": "烟机洁净度",
                 "state": {

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

@@ -978,6 +978,9 @@
             }
         },
         "sensor": {
+            "ambient_temperature": {
+                "name": "環境溫度"
+            },
             "cleanliness": {
                 "name": "清潔度",
                 "state": {