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

Add translations for Air quality sensors.

Many devices have a textual Air quality sensor. Standardise the values
for those with mappings to the following 5 values so status can also
be translated:
   excellent, good, moderate, poor, severe

Generally this meant the following changes:

great -> excellent
fair, mild -> moderate
medium, mildly polluted -> poor

Although the last one may seem to fit moderate better, for some
sensors this was the most severe reading they had, for others there
was a severe (literally from the device), so a less extreme negative
seemed more appropriate.

Issue #1708
Jason Rumney 1 год назад
Родитель
Сommit
5f5c48cd8c
44 измененных файлов с 308 добавлено и 146 удалено
  1. 6 7
      custom_components/tuya_local/devices/9in1_airquality_monitor.yaml
  2. 1 2
      custom_components/tuya_local/devices/breville_smart_air_viral_protect_plus.yaml
  3. 9 10
      custom_components/tuya_local/devices/breville_smartairconnect_purifier.yaml
  4. 5 6
      custom_components/tuya_local/devices/cleverio_ap100_purifier.yaml
  5. 7 8
      custom_components/tuya_local/devices/duux_bright_purifier.yaml
  6. 1 1
      custom_components/tuya_local/devices/essentials_purifier.yaml
  7. 1 1
      custom_components/tuya_local/devices/fisher_summer_air_conditioner.yaml
  8. 1 1
      custom_components/tuya_local/devices/himox_h05_purifier.yaml
  9. 1 1
      custom_components/tuya_local/devices/himox_h06_purifier.yaml
  10. 1 2
      custom_components/tuya_local/devices/inventor_atmospherexl_dehumidifier.yaml
  11. 1 2
      custom_components/tuya_local/devices/kkmoon_airquality_monitor.yaml
  12. 1 1
      custom_components/tuya_local/devices/klarta_stor2_purifier.yaml
  13. 9 10
      custom_components/tuya_local/devices/kogan_air_purifier.yaml
  14. 7 8
      custom_components/tuya_local/devices/morento_hy4866_wf.yaml
  15. 7 8
      custom_components/tuya_local/devices/nx_100ap_air_purifier.yaml
  16. 9 10
      custom_components/tuya_local/devices/proscenic_a8_airpurifier.yaml
  17. 9 10
      custom_components/tuya_local/devices/proscenic_a9_airpurifier.yaml
  18. 11 11
      custom_components/tuya_local/devices/pv28-cw_airquality_monitor.yaml
  19. 7 22
      custom_components/tuya_local/devices/renpho_rp_ap001s.yaml
  20. 4 5
      custom_components/tuya_local/devices/soho_air_purifier.yaml
  21. 3 4
      custom_components/tuya_local/devices/soleusair_air_purifier.yaml
  22. 1 2
      custom_components/tuya_local/devices/stadlerform_roger_purifier.yaml
  23. 5 5
      custom_components/tuya_local/devices/tesla_s300_purifier.yaml
  24. 8 9
      custom_components/tuya_local/devices/vork_vk6067aw_purifier.yaml
  25. 3 0
      custom_components/tuya_local/icons.json
  26. 10 0
      custom_components/tuya_local/translations/bg.json
  27. 10 0
      custom_components/tuya_local/translations/cz.json
  28. 10 0
      custom_components/tuya_local/translations/de.json
  29. 10 0
      custom_components/tuya_local/translations/el.json
  30. 10 0
      custom_components/tuya_local/translations/en.json
  31. 10 0
      custom_components/tuya_local/translations/es.json
  32. 10 0
      custom_components/tuya_local/translations/fr.json
  33. 10 0
      custom_components/tuya_local/translations/hu.json
  34. 10 0
      custom_components/tuya_local/translations/id.json
  35. 10 0
      custom_components/tuya_local/translations/it.json
  36. 10 0
      custom_components/tuya_local/translations/ja.json
  37. 10 0
      custom_components/tuya_local/translations/no-NB.json
  38. 10 0
      custom_components/tuya_local/translations/pl.json
  39. 10 0
      custom_components/tuya_local/translations/pt-BR.json
  40. 10 0
      custom_components/tuya_local/translations/ru.json
  41. 10 0
      custom_components/tuya_local/translations/uk.json
  42. 10 0
      custom_components/tuya_local/translations/ur.json
  43. 10 0
      custom_components/tuya_local/translations/zh-Hans.json
  44. 10 0
      custom_components/tuya_local/translations/zh-Hant.json

+ 6 - 7
custom_components/tuya_local/devices/9in1_airquality_monitor.yaml

@@ -4,20 +4,19 @@ products:
     model: ZN-2C09
 entities:
   - entity: sensor
-    name: Air Quality
+    translation_key: air_quality
     class: enum
-    icon: "mdi:factory"
     dps:
       - id: 1
         type: string
         name: sensor
         mapping:
-          - dps_val: "level_1"
-            value: "Excellent"
-          - dps_val: "level_2"
-            value: "Good"
+          - dps_val: level_1
+            value: excellent
+          - dps_val: level_2
+            value: good
           - dps_val: level_3
-            value: "Lightly polluted"
+            value: poor
   - entity: sensor
     class: temperature
     dps:

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

@@ -87,8 +87,7 @@ entities:
         type: integer
         unit: min
   - entity: sensor
-    name: Air quality
-    icon: "mdi:air-filter"
+    translation_key: air_quality
     dps:
       - id: 21
         type: string

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

@@ -89,19 +89,18 @@ entities:
         type: integer
         unit: min
   - entity: sensor
-    name: Air quality
+    translation_key: air_quality
     class: enum
-    icon: "mdi:air-filter"
     dps:
       - id: 22
         name: sensor
         type: string
         mapping:
-          - dps_val: "great"
-            value: "Great"
-          - dps_val: "good"
-            value: "Good"
-          - dps_val: "medium"
-            value: "Medium"
-          - dps_val: "severe"
-            value: "Severe"
+          - dps_val: great
+            value: excellent
+          - dps_val: good
+            value: good
+          - dps_val: medium
+            value: poor
+          - dps_val: severe
+            value: severe

+ 5 - 6
custom_components/tuya_local/devices/cleverio_ap100_purifier.yaml

@@ -50,9 +50,8 @@ entities:
           - dps_val: "4"
             value: "8h"
   - entity: sensor
-    name: Air quality
+    translation_key: air_quality
     class: enum
-    icon: "mdi:factory"
     category: diagnostic
     dps:
       - id: 22
@@ -60,10 +59,10 @@ entities:
         name: sensor
         mapping:
           - dps_val: "1"
-            value: Excellent
+            value: excellent
           - dps_val: "2"
-            value: Good
+            value: good
           - dps_val: "3"
-            value: Fair
+            value: moderate
           - dps_val: "4"
-            value: Poor
+            value: poor

+ 7 - 8
custom_components/tuya_local/devices/duux_bright_purifier.yaml

@@ -76,8 +76,7 @@ entities:
           - dps_val: "8h"
             value: "8h"
   - entity: sensor
-    name: Air quality
-    icon: "mdi:air-filter"
+    translation_key: air_quality
     class: enum
     category: diagnostic
     dps:
@@ -85,9 +84,9 @@ entities:
         type: string
         name: sensor
         mapping:
-          - dps_val: "great"
-            value: "Great"
-          - dps_val: "good"
-            value: "Good"
-          - dps_val: "poor"
-            value: "Poor"
+          - dps_val: great
+            value: excellent
+          - dps_val: good
+            value: good
+          - dps_val: poor
+            value: poor

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

@@ -107,7 +107,7 @@ entities:
         class: measurement
         unit: ugm3
   - entity: sensor
-    name: Air quality
+    translation_key: air_quality
     dps:
       - id: 21
         type: string

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

@@ -296,7 +296,7 @@ entities:
             value: true
           - value: false
   - entity: sensor
-    name: Air quality
+    translation_key: air_quality
     dps:
       - id: 125
         name: sensor

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

@@ -69,7 +69,7 @@ entities:
           - dps_val: 8h
             value: "8h"
   - entity: sensor
-    name: Air quality
+    translation_key: air_quality
     dps:
       - id: 21
         type: string

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

@@ -62,7 +62,7 @@ entities:
         name: sensor
         unit: "min"
   - entity: sensor
-    name: Air quality
+    translation_key: air_quality
     dps:
       - id: 22
         type: string

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

@@ -300,8 +300,7 @@ entities:
             value: "On"
   - entity: sensor
     category: diagnostic
-    name: Air quality
-    icon: "mdi:weather-dust"
+    translation_key: air_quality
     dps:
       - id: 108
         type: string

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

@@ -5,8 +5,7 @@ products:
     name: 7in1 air quality meter
 entities:
   - entity: sensor
-    name: Air quality
-    icon: "mdi:factory"
+    translation_key: air_quality
     dps:
       - id: 21
         type: string

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

@@ -126,7 +126,7 @@ entities:
         unit: "%"
         class: measurement
   - entity: sensor
-    name: Air quality
+    translation_key: air_quality
     dps:
       - id: 21
         type: string

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

@@ -71,19 +71,18 @@ entities:
         type: integer
         unit: min
   - entity: sensor
-    name: Air quality
+    translation_key: air_quality
     class: enum
-    icon: "mdi:air-filter"
     dps:
       - id: 22
         name: sensor
         type: string
         mapping:
-          - dps_val: 1
-            value: "Good"
-          - dps_val: 2
-            value: "Normal"
-          - dps_val: 3
-            value: "Poor"
-          - dps_val: 4
-            value: "Severe"
+          - dps_val: "1"
+            value: good
+          - dps_val: "2"
+            value: moderate
+          - dps_val: "3"
+            value: poor
+          - dps_val: "4"
+            value: severe

+ 7 - 8
custom_components/tuya_local/devices/morento_hy4866_wf.yaml

@@ -75,17 +75,16 @@ entities:
           - dps_val: "8H"
             value: "8h"
   - entity: sensor
-    name: Air quality
+    translation_key: air_quality
     class: enum
-    icon: "mdi:air-filter"
     dps:
       - id: 21
         name: sensor
         type: string
         mapping:
-          - dps_val: "good"
-            value: "Good"
-          - dps_val: "medium"
-            value: "Medium"
-          - dps_val: "severe"
-            value: "Severe"
+          - dps_val: good
+            value: good
+          - dps_val: medium
+            value: poor
+          - dps_val: severe
+            value: severe

+ 7 - 8
custom_components/tuya_local/devices/nx_100ap_air_purifier.yaml

@@ -31,20 +31,19 @@ entities:
         type: integer
         unit: min
   - entity: sensor
-    name: Air quality
+    translation_key: air_quality
     class: enum
-    icon: "mdi:air-filter"
     dps:
       - id: 21
         name: sensor
         type: string
         mapping:
-          - dps_val: "good"
-            value: "Good"
-          - dps_val: "medium"
-            value: "Medium"
-          - dps_val: "severe"
-            value: "Severe"
+          - dps_val: good
+            value: good
+          - dps_val: medium
+            value: poor
+          - dps_val: severe
+            value: severe
   - entity: sensor
     class: pm25
     dps:

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

@@ -97,19 +97,18 @@ entities:
         optional: true
         unit: ugm3
   - entity: sensor
-    name: Air quality
+    translation_key: air_quality
     class: enum
-    icon: "mdi:air-filter"
     dps:
       - id: 21
         name: sensor
         type: string
         mapping:
-          - dps_val: "great"
-            value: "Great"
-          - dps_val: "good"
-            value: "Good"
-          - dps_val: "medium"
-            value: "Mild pollution"
-          - dps_val: "severe"
-            value: "Severe"
+          - dps_val: great
+            value: excellent
+          - dps_val: good
+            value: good
+          - dps_val: medium
+            value: poor
+          - dps_val: severe
+            value: severe

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

@@ -110,22 +110,21 @@ entities:
         optional: true
         unit: m³
   - entity: sensor
-    name: Air quality
+    translation_key: air_quality
     class: enum
-    icon: "mdi:air-filter"
     dps:
       - id: 21
         name: sensor
         type: string
         mapping:
-          - dps_val: "mild"
-            value: "Great"
-          - dps_val: "good"
-            value: "Good"
-          - dps_val: "medium"
-            value: "Medium"
-          - dps_val: "severe"
-            value: "Severe"
+          - dps_val: mild
+            value: excellent
+          - dps_val: good
+            value: good
+          - dps_val: medium
+            value: poor
+          - dps_val: severe
+            value: severe
   - entity: select
     translation_key: timer
     category: config

+ 11 - 11
custom_components/tuya_local/devices/pv28-cw_airquality_monitor.yaml

@@ -214,7 +214,7 @@ entities:
         unit: µg/m³
         class: measurement
   # - entity: sensor
-  #   name: Air Quality
+  #   translation_key: air_quality
   #   class: enum
   #   dps:
   #     - id: 104
@@ -222,16 +222,16 @@ entities:
   #       name: sensor
   #       optional: true
   #       mapping:
-  #         - dps_val: "great"
-  #           value: "Great"
-  #         - dps_val: "mild"
-  #           value: "Mild"
-  #         - dps_val: "good"
-  #           value: "Good"
-  #         - dps_val: "medium"
-  #           value: "Medium"
-  #         - dps_val: "severe"
-  #           value: "Severe"
+  #         - dps_val: great
+  #           value: excellent
+  #         - dps_val: mild
+  #           value: moderate
+  #         - dps_val: good
+  #           value: good
+  #         - dps_val: medium
+  #           value: poor
+  #         - dps_val: severe
+  #           value: severe
   - entity: number
     name: PM2.5 alarm threshold
     category: config

+ 7 - 22
custom_components/tuya_local/devices/renpho_rp_ap001s.yaml

@@ -26,21 +26,6 @@ entities:
       - id: 19
         name: timer
         type: string
-      - id: 22
-        name: air_quality
-        type: string
-      - id: 102
-        name: prefilter_life
-        type: integer
-      - id: 103
-        name: charcoal_filter_life
-        type: integer
-      - id: 104
-        name: activated_charcoal_filter_life
-        type: integer
-      - id: 105
-        name: hepa_filter_life
-        type: integer
   - entity: lock
     translation_key: child_lock
     category: config
@@ -69,7 +54,7 @@ entities:
         name: switch
         type: boolean
   - entity: sensor
-    name: Air quality
+    translation_key: air_quality
     class: enum
     category: diagnostic
     dps:
@@ -77,12 +62,12 @@ entities:
         type: string
         name: sensor
         mapping:
-          - dps_val: "bad"
-            value: "Bad"
-          - dps_val: "fair"
-            value: "Fair"
-          - dps_val: "good"
-            value: "Good"
+          - dps_val: bad
+            value: poor
+          - dps_val: fair
+            value: moderate
+          - dps_val: good
+            value: good
   - entity: sensor
     name: Prefilter life
     category: diagnostic

+ 4 - 5
custom_components/tuya_local/devices/soho_air_purifier.yaml

@@ -96,20 +96,19 @@ entities:
           - dps_val: 12h
             value: 12h
   - entity: sensor
-    name: Air Quality
+    translation_key: air_quality
     class: enum
-    icon: mdi:air-filter
     dps:
       - id: 21
         type: string
         name: sensor
         mapping:
           - dps_val: excellent
-            value: Excellent
+            value: excellent
           - dps_val: good
-            value: Good
+            value: good
           - dps_val: difference
-            value: Bad
+            value: poor
   - entity: sensor
     class: pm25
     dps:

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

@@ -86,8 +86,7 @@ entities:
         optional: true
         unit: ppb
   - entity: sensor
-    name: Air quality
-    icon: "mdi:approximately-equal"
+    translation_key: air_quality
     class: enum
     dps:
       - id: 21
@@ -95,11 +94,11 @@ entities:
         name: sensor
         mapping:
           - dps_val: great
-            value: great
+            value: excellent
           - dps_val: good
             value: good
           - dps_val: medium
-            value: medium
+            value: poor
           - dps_val: severe
             value: severe
   - entity: sensor

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

@@ -70,8 +70,7 @@ entities:
         type: integer
         name: sensor
   - entity: sensor
-    name: Air quality
-    icon: "mdi:air-filter"
+    translation_key: air_quality
     dps:
       - id: 21
         type: string

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

@@ -113,7 +113,7 @@ entities:
           - dps_val: "12h"
             value: "12h"
   - entity: sensor
-    name: Air quality
+    translation_key: air_quality
     class: enum
     category: diagnostic
     dps:
@@ -122,13 +122,13 @@ entities:
         name: sensor
         mapping:
           - dps_val: great
-            value: Great
+            value: excellent
           - dps_val: mild
-            value: Mild
+            value: moderate
           - dps_val: good
-            value: Good
+            value: good
           - dps_val: medium
-            value: Medium
+            value: poor
   - entity: binary_sensor
     class: problem
     category: diagnostic

+ 8 - 9
custom_components/tuya_local/devices/vork_vk6067aw_purifier.yaml

@@ -76,23 +76,22 @@ entities:
         type: integer
         unit: min
   - entity: sensor
-    name: Air quality
+    translation_key: air_quality
     category: diagnostic
     class: enum
-    icon: "mdi:air-filter"
     dps:
       - id: 21
         name: sensor
         type: string
         mapping:
           - dps_val: great
-            value: "Great"
-          - dps_val: "good"
-            value: "Good"
-          - dps_val: "medium"
-            value: "Medium"
-          - dps_val: "severe"
-            value: "Severe"
+            value: excellent
+          - dps_val: good
+            value: good
+          - dps_val: medium
+            value: poor
+          - dps_val: severe
+            value: severe
   - entity: binary_sensor
     category: diagnostic
     class: problem

+ 3 - 0
custom_components/tuya_local/icons.json

@@ -178,6 +178,9 @@
             }
         },
         "sensor": {
+            "air_quality": {
+                "default": "mdi:weather-dust"
+            },
             "cooking_status": {
                 "default": "mdi:information-variant-circle"
             },

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

@@ -536,6 +536,16 @@
             }
         },
         "sensor": {
+            "air_quality": {
+                "name": "Качество на въздуха",
+                "state": {
+                    "excellent": "Отлично",
+                    "good": "Добро",
+                    "moderate": "Умерен",
+                    "poor": "Лошо",
+                    "severe": "Тежко"
+                }
+            },
             "status": {
                 "name": "Статус",
                 "state": {

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

@@ -535,6 +535,16 @@
             }
         },
         "sensor": {
+            "air_quality": {
+                "name": "Kvalita vzduchu",
+                "state": {
+                    "excellent": "Výborná",
+                    "good": "Dobrá",
+                    "moderate": "Střední",
+                    "poor": "Špatná",
+                    "severe": "Velmi špatná"
+                }
+            },
             "status": {
                 "name": "Stav",
                 "state": {

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

@@ -534,6 +534,16 @@
             }
         },
         "sensor": {
+            "air_quality": {
+                "name": "Luftqualität",
+                "state": {
+                    "excellent": "Ausgezeichnet",
+                    "good": "Gut",
+                    "moderate": "Mäßig",
+                    "poor": "Schlecht",
+                    "severe": "Schwer"
+                }
+            },
             "status": {
                 "name": "Status",
                 "state": {

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

@@ -535,6 +535,16 @@
             }
         },
         "sensor": {
+            "air_quality": {
+                "name": "Ποιότητα αέρα",
+                "state": {
+                    "excellent": "Εξαιρετική",
+                    "good": "Καλή",
+                    "moderate": "Μέτρια",
+                    "poor": "Κακή",
+                    "severe": "Σοβαρή"
+                }
+            },
             "status": {
                 "name": "Κατάσταση",
                 "state": {

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

@@ -535,6 +535,16 @@
             }
         },
         "sensor": {
+            "air_quality": {
+                "name": "Air quality",
+                "state": {
+                    "excellent": "Excellent",
+                    "good": "Good",
+                    "moderate": "Moderate",
+                    "poor": "Poor",
+                    "severe": "Severe"
+                }
+            },
             "status": {
                 "name": "Status",
                 "state": {

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

@@ -535,6 +535,16 @@
             }
         },
         "sensor": {
+            "air_quality": {
+                "name": "Calidad del aire",
+                "state": {
+                    "excellent": "Excelente",
+                    "good": "Bueno",
+                    "moderate": "Moderado",
+                    "poor": "Malo",
+                    "severe": "Severo"
+                }
+            },
             "status": {
                 "name": "Estado",
                 "state": {

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

@@ -535,6 +535,16 @@
             }
         },
         "sensor": {
+            "air_quality": {
+                "name": "Qualité de l'air",
+                "state": {
+                    "excellent": "Excellent",
+                    "good": "Bon",
+                    "moderate": "Modéré",
+                    "poor": "Mauvais",
+                    "severe": "Grave"
+                }
+            },
             "status": {
                 "name": "État",
                 "state": {

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

@@ -536,6 +536,16 @@
             }
         },
         "sensor": {
+            "air_quality": {
+                "name": "Levegő minőség",
+                "state": {
+                    "excellent": "Kiváló",
+                    "good": "Jó",
+                    "moderate": "Közepes",
+                    "poor": "Rossz",
+                    "severe": "Súlyos"
+                }
+            },
             "status": {
                 "name": "Állapot",
                 "state": {

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

@@ -535,6 +535,16 @@
             }
         },
         "sensor": {
+            "air_quality": {
+                "name": "Kualitas udara",
+                "state": {
+                    "excellent": "Sangat baik",
+                    "good": "Baik",
+                    "moderate": "Sedang",
+                    "poor": "Buruk",
+                    "severe": "Parah"
+                }
+            },
             "status": {
                 "name": "Status",
                 "state": {

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

@@ -536,6 +536,16 @@
             }
         },
         "sensor": {
+            "air_quality": {
+                "name": "Qualità dell'aria",
+                "state": {
+                    "excellent": "Eccellente",
+                    "good": "Buono",
+                    "moderate": "Moderato",
+                    "poor": "Scarso",
+                    "severe": "Grave"
+                }
+            },
             "status": {
                 "name": "Stato",
                 "state": {

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

@@ -535,6 +535,16 @@
             }
         },
         "sensor": {
+            "air_quality": {
+                "name": "空気品質",
+                "state": {
+                    "excellent": "優れている",
+                    "good": "良い",
+                    "moderate": "中程度",
+                    "poor": "悪い",
+                    "severe": "非常に悪い"
+                }
+            },
             "status": {
                 "name": "ステータス",
                 "state": {

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

@@ -536,6 +536,16 @@
             }
         },
         "sensor": {
+            "air_quality": {
+                "name": "Luftkvalitet",
+                "state": {
+                    "excellent": "Utmerket",
+                    "good": "God",
+                    "moderate": "Moderat",
+                    "poor": "Dårlig",
+                    "severe": "Alvorlig"
+                }
+            },
             "status": {
                 "name": "Status",
                 "state": {

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

@@ -536,6 +536,16 @@
             }
         },
         "sensor": {
+            "air_quality": {
+                "name": "Jakość powietrza",
+                "state": {
+                    "excellent": "Doskonała",
+                    "good": "Dobra",
+                    "moderate": "Umiarkowana",
+                    "poor": "Zła",
+                    "severe": "Bardzo zła"
+                }
+            },
             "status": {
                 "name": "Status",
                 "state": {

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

@@ -535,6 +535,16 @@
             }
         },
         "sensor": {
+            "air_quality": {
+                "name": "Qualidade do ar",
+                "state": {
+                    "excellent": "Excelente",
+                    "good": "Bom",
+                    "moderate": "Moderado",
+                    "poor": "Ruim",
+                    "severe": "Severo"
+                }
+            },
             "status": {
                 "name": "Status",
                 "state": {

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

@@ -535,6 +535,16 @@
             }
         },
         "sensor": {
+            "air_quality": {
+                "name": "Качество воздуха",
+                "state": {
+                    "excellent": "Отличное",
+                    "good": "Хорошее",
+                    "moderate": "Умеренное",
+                    "poor": "Плохое",
+                    "severe": "Серьезн"
+                }
+            },
             "status": {
                 "name": "Статус",
                 "state": {

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

@@ -538,6 +538,16 @@
             }
         },
         "sensor": {
+            "air_quality": {
+                "name": "Якість повітря",
+                "state": {
+                    "excellent": "Відмінно",
+                    "good": "Добре",
+                    "moderate": "Помірно",
+                    "poor": "Погано",
+                    "severe": "Важко"
+                }
+            },
             "status": {
                 "name": "Статус",
                 "state": {

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

@@ -538,6 +538,16 @@
             }
         },
         "sensor": {
+            "air_quality": {
+                "name": "ہوا کی معیار",
+                "state": {
+                    "excellent": "شاندار",
+                    "good": "اچھا",
+                    "moderate": "معتدل",
+                    "poor": "خراب",
+                    "severe": "شدید"
+                }
+            },
             "status": {
                 "name": "حالت",
                 "state": {

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

@@ -535,6 +535,16 @@
             }
         },
         "sensor": {
+            "air_quality": {
+                "name": "空气质量",
+                "state": {
+                    "excellent": "优",
+                    "good": "良",
+                    "moderate": "中",
+                    "poor": "差",
+                    "severe": "极差"
+                }
+            },
             "status": {
                 "name": "状态",
                 "state": {

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

@@ -536,6 +536,16 @@
             }
         },
         "sensor": {
+            "air_quality": {
+                "name": "空氣質量",
+                "state": {
+                    "excellent": "優",
+                    "good": "良",
+                    "moderate": "中",
+                    "poor": "差",
+                    "severe": "極差"
+                }
+            },
             "status": {
                 "name": "狀態",
                 "state": {