فهرست منبع

Tank full/empty sensors: use translations for name, state and icon

Issue #1579
Jason Rumney 2 سال پیش
والد
کامیت
a2493c611d
53فایلهای تغییر یافته به همراه256 افزوده شده و 101 حذف شده
  1. 1 2
      custom_components/tuya_local/devices/AlecoAir_D25_Traditio.yaml
  2. 1 3
      custom_components/tuya_local/devices/alecoair_d12_dehumidifier.yaml
  3. 1 3
      custom_components/tuya_local/devices/alecoair_d12_home_dehumidifier.yaml
  4. 1 2
      custom_components/tuya_local/devices/alecoair_d14_dehumidifier.yaml
  5. 1 3
      custom_components/tuya_local/devices/alecoair_d16_dehumidifier.yaml
  6. 1 2
      custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml
  7. 1 6
      custom_components/tuya_local/devices/breville_lad208_dehumidifier.yaml
  8. 1 1
      custom_components/tuya_local/devices/carro_ph805_humidifier.yaml
  9. 1 3
      custom_components/tuya_local/devices/cleanair_604b_humidifier.yaml
  10. 1 2
      custom_components/tuya_local/devices/cleanair_605b_humidifier.yaml
  11. 1 3
      custom_components/tuya_local/devices/dry_pury_evo_dehumidifier.yaml
  12. 1 2
      custom_components/tuya_local/devices/eanons_humidifier.yaml
  13. 1 4
      custom_components/tuya_local/devices/ebac_dj4000_dehumidifier.yaml
  14. 1 2
      custom_components/tuya_local/devices/eeese_anna_dehumidifier.yaml
  15. 1 2
      custom_components/tuya_local/devices/eeese_carl_dehumidifier.yaml
  16. 1 2
      custom_components/tuya_local/devices/eeese_otto_dehumidifier.yaml
  17. 1 2
      custom_components/tuya_local/devices/eesee_adam_dehumidifier.yaml
  18. 1 4
      custom_components/tuya_local/devices/electriq_cd12pro_dehumidifier.yaml
  19. 1 3
      custom_components/tuya_local/devices/electriq_cd12pwv2_dehumidifier.yaml
  20. 1 2
      custom_components/tuya_local/devices/goldair_dehumidifier.yaml
  21. 1 2
      custom_components/tuya_local/devices/goldair_gpdh340_dehumidifier.yaml
  22. 1 2
      custom_components/tuya_local/devices/hyundai_sahara_dehumidifier.yaml
  23. 1 2
      custom_components/tuya_local/devices/inventor_atmospherexl_dehumidifier.yaml
  24. 1 2
      custom_components/tuya_local/devices/inventor_evaionpro_dehumidifier.yaml
  25. 1 2
      custom_components/tuya_local/devices/jjpro_jpd01_dehumidifier.yaml
  26. 1 2
      custom_components/tuya_local/devices/jjpro_jpd02_dehumidifier.yaml
  27. 1 2
      custom_components/tuya_local/devices/kogan_dehumidifier.yaml
  28. 1 2
      custom_components/tuya_local/devices/kyvol_ea200_humidifier.yaml
  29. 1 6
      custom_components/tuya_local/devices/probreeze_pb20.yaml
  30. 1 2
      custom_components/tuya_local/devices/shinco_30d_dehumidifier.yaml
  31. 1 2
      custom_components/tuya_local/devices/stadlerform_karl_humidifier.yaml
  32. 1 2
      custom_components/tuya_local/devices/suntec_coolfix_airconditioner.yaml
  33. 1 3
      custom_components/tuya_local/devices/vivosun_de0003_dehumidifier.yaml
  34. 1 3
      custom_components/tuya_local/devices/wilfa_haze_hu400bc_humidifier.yaml
  35. 1 2
      custom_components/tuya_local/devices/woods_cortina_airconditioner.yaml
  36. 12 0
      custom_components/tuya_local/icons.json
  37. 14 0
      custom_components/tuya_local/translations/bg.json
  38. 14 0
      custom_components/tuya_local/translations/cz.json
  39. 14 0
      custom_components/tuya_local/translations/en.json
  40. 14 0
      custom_components/tuya_local/translations/es.json
  41. 14 0
      custom_components/tuya_local/translations/fr.json
  42. 14 0
      custom_components/tuya_local/translations/hu.json
  43. 14 0
      custom_components/tuya_local/translations/id.json
  44. 14 0
      custom_components/tuya_local/translations/it.json
  45. 14 0
      custom_components/tuya_local/translations/no-NB.json
  46. 16 2
      custom_components/tuya_local/translations/pl.json
  47. 14 0
      custom_components/tuya_local/translations/pt-BR.json
  48. 15 1
      custom_components/tuya_local/translations/ru.json
  49. 16 2
      custom_components/tuya_local/translations/uk.json
  50. 14 0
      custom_components/tuya_local/translations/ur.json
  51. 4 3
      tests/devices/test_eanons_humidifier.py
  52. 2 3
      tests/devices/test_wilfa_haze_hu400bc_humidifier.py
  53. 2 1
      tests/test_binary_sensor.py

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

@@ -80,8 +80,7 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: binary_sensor
-    name: Tank
-    class: problem
+    translation_key: tank_full
     category: diagnostic
     dps:
       - id: 19

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

@@ -111,9 +111,7 @@ secondary_entities:
         type: boolean
         name: lock
   - entity: binary_sensor
-    class: problem
-    name: Tank full
-    icon: "mdi:cup-water"
+    translation_key: tank_full
     dps:
       - id: 19
         type: bitfield

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

@@ -151,9 +151,7 @@ secondary_entities:
         name: sensor
         unit: min
   - entity: binary_sensor
-    name: Tank
-    class: problem
-    icon: "mdi:cup-water"
+    translation_key: tank_full
     category: diagnostic
     dps:
       - id: 11

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

@@ -95,8 +95,7 @@ secondary_entities:
         unit: "%"
         class: measurement
   - entity: binary_sensor
-    name: Tank
-    class: problem
+    translation_key: tank_full
     category: diagnostic
     dps:
       - id: 19

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

@@ -107,9 +107,7 @@ secondary_entities:
         unit: "%"
         class: measurement
   - entity: binary_sensor
-    class: problem
-    name: Tank full
-    icon: "mdi:cup-water"
+    translation_key: tank_full
     dps:
       - id: 19
         type: bitfield

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

@@ -175,8 +175,7 @@ secondary_entities:
           - dps_val: f
             value: fahrenheit
   - entity: binary_sensor
-    name: Low water
-    class: problem
+    translation_key: tank_empty
     category: diagnostic
     dps:
       - id: 22

+ 1 - 6
custom_components/tuya_local/devices/breville_lad208_dehumidifier.yaml

@@ -152,10 +152,7 @@ secondary_entities:
         type: boolean
         name: lock
   - entity: binary_sensor
-    class: problem
-    name: Tank full
-    icon: "mdi:cup-outline"
-    icon_priority: 2
+    translation_key: tank_full
     dps:
       - id: 11
         type: bitfield
@@ -164,8 +161,6 @@ secondary_entities:
         mapping:
           - dps_val: 8
             value: true
-            icon: "mdi:cup-water"
-            icon_priority: 1
           - value: false
   - entity: binary_sensor
     translation_key: defrost

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

@@ -99,7 +99,7 @@ secondary_entities:
           - dps_val: 9h
             value: 9 hours
   - entity: binary_sensor
-    name: Tank empty
+    translation_key: tank_empty
     class: problem
     category: diagnostic
     dps:

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

@@ -88,9 +88,7 @@ secondary_entities:
         type: integer
         unit: min
   - entity: binary_sensor
-    name: Water tank empty
-    icon: mdi:water-remove
-    class: problem
+    translation_key: tank_empty
     category: diagnostic
     dps:
       - id: 22

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

@@ -88,8 +88,7 @@ secondary_entities:
         name: sensor
         unit: "min"
   - entity: binary_sensor
-    name: Water tank empty
-    class: problem
+    translation_key: tank_empty
     category: diagnostic
     dps:
       - id: 22

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

@@ -83,10 +83,8 @@ secondary_entities:
         type: boolean
         name: lock
   - entity: binary_sensor
-    class: problem
-    name: Tank full
+    translation_key: tank_full
     category: diagnostic
-    icon: "mdi:cup-water"
     dps:
       - id: 19
         type: bitfield

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

@@ -107,8 +107,7 @@ secondary_entities:
         type: integer
         unit: min
   - entity: binary_sensor
-    name: Tank
-    class: problem
+    translation_key: tank_empty
     category: diagnostic
     dps:
       - id: 9

+ 1 - 4
custom_components/tuya_local/devices/ebac_dj4000_dehumidifier.yaml

@@ -119,8 +119,7 @@ secondary_entities:
         name: sensor
         unit: min
   - entity: binary_sensor
-    name: Tank
-    class: problem
+    translation_key: tank_full
     category: diagnostic
     dps:
       - id: 102
@@ -129,10 +128,8 @@ secondary_entities:
         mapping:
           - dps_val: Bucket_OK
             value: false
-            icon: "mdi:pail-outline"
           - dps_val: Bucket_Full
             value: true
-            icon: "mdi:pail-remove"
   - entity: switch
     name: Night mode
     category: config

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

@@ -54,8 +54,7 @@ primary_entity:
           icon_priority: 1
 secondary_entities:
   - entity: binary_sensor
-    name: Tank
-    class: problem
+    translation_key: tank_full
     category: diagnostic
     dps:
       - id: 19

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

@@ -58,8 +58,7 @@ secondary_entities:
         unit: "%"
         class: measurement
   - entity: binary_sensor
-    name: Tank
-    class: problem
+    translation_key: tank_full
     category: diagnostic
     dps:
       - id: 19

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

@@ -59,8 +59,7 @@ secondary_entities:
         unit: "%"
         class: measurement
   - entity: binary_sensor
-    name: Tank
-    class: problem
+    translation_key: tank_full
     category: diagnostic
     dps:
       - id: 19

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

@@ -76,8 +76,7 @@ secondary_entities:
         unit: "%"
         class: measurement
   - entity: binary_sensor
-    name: Tank
-    class: problem
+    translation_key: tank_full
     category: diagnostic
     dps:
       - id: 19

+ 1 - 4
custom_components/tuya_local/devices/electriq_cd12pro_dehumidifier.yaml

@@ -133,8 +133,7 @@ secondary_entities:
           - dps_val: false
             icon: "mdi:sleep-off"
   - entity: binary_sensor
-    name: Tank
-    class: problem
+    translation_key: tank_full
     category: diagnostic
     dps:
       - id: 19
@@ -143,7 +142,5 @@ secondary_entities:
         mapping:
           - dps_val: 1
             value: true
-            icon: "mdi:flask-empty"
           - dps_val: 0
             value: false
-            icon: "mdi:flask-empty-outline"

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

@@ -74,7 +74,7 @@ secondary_entities:
           - dps_val: false
             icon: "mdi:sleep-off"
   - entity: binary_sensor
-    name: Tank
+    translation_key: tank_full
     category: diagnostic
     dps:
       - id: 19
@@ -83,7 +83,5 @@ secondary_entities:
         mapping:
           - dps_val: 1
             value: true
-            icon: "mdi:flask-empty"
           - dps_val: 0
             value: false
-            icon: "mdi:flask-empty-outline"

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

@@ -146,8 +146,7 @@ secondary_entities:
         class: measurement
         unit: "%"
   - entity: binary_sensor
-    name: Tank
-    class: problem
+    translation_key: tank_full
     category: diagnostic
     dps:
       - id: 11

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

@@ -122,8 +122,7 @@ secondary_entities:
         unit: "%"
         class: measurement
   - entity: binary_sensor
-    name: Tank
-    class: problem
+    translation_key: tank_full
     category: diagnostic
     dps:
       - id: 11

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

@@ -94,8 +94,7 @@ secondary_entities:
         type: boolean
         name: lock
   - entity: binary_sensor
-    name: Tank
-    class: problem
+    translation_key: tank_full
     category: diagnostic
     dps:
       - id: 19

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

@@ -208,8 +208,7 @@ secondary_entities:
             value: true
           - value: false
   - entity: binary_sensor
-    class: problem
-    name: Tank full or missing
+    translation_key: tank_full
     category: diagnostic
     dps:
       - id: 19

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

@@ -119,8 +119,7 @@ secondary_entities:
             value: false
           - value: true
   - entity: binary_sensor
-    name: Tank Full
-    class: problem
+    translation_key: tank_full
     category: diagnostic
     dps:
       - id: 101

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

@@ -115,8 +115,7 @@ secondary_entities:
         class: measurement
         unit: "%"
   - entity: binary_sensor
-    name: Tank
-    class: problem
+    translation_key: tank_full
     category: diagnostic
     dps:
       - id: 11

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

@@ -93,8 +93,7 @@ secondary_entities:
         type: boolean
         name: lock
   - entity: binary_sensor
-    name: Tank
-    class: problem
+    translation_key: tank_full
     category: diagnostic
     dps:
       - id: 19

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

@@ -86,8 +86,7 @@ secondary_entities:
         class: measurement
         unit: "%"
   - entity: binary_sensor
-    class: problem
-    name: Tank
+    translation_key: tank_full
     category: diagnostic
     dps:
       - id: 11

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

@@ -54,8 +54,7 @@ primary_entity:
           value: 100
 secondary_entities:
   - entity: binary_sensor
-    name: Tank empty
-    class: problem
+    translation_key: tank_empty
     category: diagnostic
     dps:
       - id: 22

+ 1 - 6
custom_components/tuya_local/devices/probreeze_pb20.yaml

@@ -133,10 +133,7 @@ secondary_entities:
         name: sensor
         unit: min
   - entity: binary_sensor
-    name: Tank
-    class: problem
-    icon: "mdi:cup-outline"
-    icon_priority: 2
+    translation_key: tank_full
     category: diagnostic
     dps:
       - id: 11
@@ -145,6 +142,4 @@ secondary_entities:
         mapping:
           - dps_val: 8
             value: true
-            icon: "mdi:cup-water"
-            icon_priority: 1
           - value: false

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

@@ -86,8 +86,7 @@ secondary_entities:
             value: true
           - value: false
   - entity: binary_sensor
-    name: Tank
-    class: problem
+    translation_key: tank_full
     category: diagnostic
     dps:
       - id: 11

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

@@ -41,8 +41,7 @@ secondary_entities:
         unit: "%"
         class: measurement
   - entity: binary_sensor
-    name: Low water
-    class: problem
+    translation_key: tank_empty
     category: diagnostic
     dps:
       - id: 22

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

@@ -120,8 +120,7 @@ secondary_entities:
             value: false
           - value: true
   - entity: binary_sensor
-    name: Tank full
-    class: problem
+    translation_key: tank_full
     category: diagnostic
     dps:
       - id: 22

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

@@ -151,10 +151,8 @@ secondary_entities:
           - dps_val: 24h
             value: 24 hours
   - entity: binary_sensor
-    class: problem
-    name: Tank full
+    translation_key: tank_full
     category: diagnostic
-    icon: "mdi:cup-water"
     dps:
       - id: 19
         type: bitfield

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

@@ -194,10 +194,8 @@ secondary_entities:
         name: switch
         type: boolean
   - entity: binary_sensor
-    class: problem
-    name: Tank
+    translation_key: tank_empty
     category: diagnostic
-    icon: "mdi:cup-outline"
     dps:
       - id: 22
         type: bitfield

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

@@ -70,8 +70,7 @@ secondary_entities:
             value: false
           - value: true
   - entity: binary_sensor
-    name: Water tank full
-    class: problem
+    translation_key: tank_full
     category: diagnostic
     dps:
       - id: 22

+ 12 - 0
custom_components/tuya_local/icons.json

@@ -6,6 +6,18 @@
                 "state": {
                     "on": "mdi:snowflake-melt"
                 }
+            },
+            "tank_empty": {
+                "default": "mdi:water",
+                "state": {
+                    "on": "mdi:water-alert-outline"
+                }
+            },
+            "tank_full": {
+                "default": "mdi:water-outline",
+                "state": {
+                    "on": "mdi:water-alert"
+                }
             }
         },
         "lock": {

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

@@ -66,6 +66,20 @@
                     "off": "Нормално",
                     "on": "Размразяване"
                 }
+            },
+            "tank_empty": {
+                "name": "Резервоар",
+                "state": {
+                    "off": "OK",
+                    "on": "Ниско"
+                }
+            },
+            "tank_full": {
+                "name": "Резервоар",
+                "state": {
+                    "off": "OK",
+                    "on": "Пълна"
+                }
             }
         },
         "climate": {

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

@@ -66,6 +66,20 @@
                     "off": "Normální",
                     "on": "Rozmrazování"
                 }
+            },
+            "tank_empty": {
+                "name": "Nádrž",
+                "state": {
+                    "off": "OK",
+                    "on": "Nízká"
+                }
+            },
+            "tank_full": {
+                "name": "Nádrž",
+                "state": {
+                    "off": "OK",
+                    "on": "Plná"
+                }
             }
         },
         "climate": {

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

@@ -66,6 +66,20 @@
                     "off": "Normal",
                     "on": "Defrosting"
                 }
+            },
+            "tank_empty": {
+                "name": "Tank",
+                "state": {
+                    "off": "OK",
+                    "on": "Low"
+                }
+            },
+            "tank_full": {
+                "name": "Tank",
+                "state": {
+                    "off": "OK",
+                    "on": "Full"
+                }
             }
         },
         "climate": {

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

@@ -66,6 +66,20 @@
                     "off": "Normal",
                     "on": "Deshelamiento"
                 }
+            },
+            "tank_empty": {
+                "name": "Depósito",
+                "state": {
+                    "off": "OK",
+                    "on": "Bajo"
+                }
+            },
+            "tank_full": {
+                "name": "Depósito",
+                "state": {
+                    "off": "OK",
+                    "on": "Lleno"
+                }
             }
         },
         "climate": {

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

@@ -66,6 +66,20 @@
                     "off": "Normale",
                     "on": "Dégivrage"
                 }
+            },
+            "tank_empty": {
+                "name": "Réservoir",
+                "state": {
+                    "off": "OK",
+                    "on": "Faible"
+                }
+            },
+            "tank_full": {
+                "name": "Réservoir",
+                "state": {
+                    "off": "OK",
+                    "on": "Pleine"
+                }
             }
         },
         "climate": {

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

@@ -67,6 +67,20 @@
                     "off": "Normál",
                     "on": "Leolvasztás"
                 }
+            },
+            "tank_empty": {
+                "name": "Tartály",
+                "state": {
+                    "off": "OK",
+                    "on": "Alacsony"
+                }
+            },
+            "tank_full": {
+                "name": "Tartály",
+                "state": {
+                    "off": "OK",
+                    "on": "Teljes"
+                }
             }
         },
         "climate": {

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

@@ -66,6 +66,20 @@
                     "off": "Normal",
                     "on": "Pencairan bunga es"
                 }
+            },
+            "tank_empty": {
+                "name": "Tangki",
+                "state": {
+                    "off": "Oke",
+                    "on": "Rendah"
+                }
+            },
+            "tank_full": {
+                "name": "Tangki",
+                "state": {
+                    "off": "Oke",
+                    "on": "Penuh"
+                }
             }
         },
         "climate": {

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

@@ -66,6 +66,20 @@
                     "off": "Normale",
                     "on": "Scongelamento"
                 }
+            },
+            "tank_empty": {
+                "name": "Cisterna",
+                "state": {
+                    "off": "OK",
+                    "on": "Bassa"
+                }
+            },
+            "tank_full": {
+                "name": "Cisterna",
+                "state": {
+                    "off": "OK",
+                    "on": "Piena"
+                }
             }
         },
         "climate": {

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

@@ -66,6 +66,20 @@
                     "off": "Normal",
                     "on": "Tining"
                 }
+            },
+            "tank_empty": {
+                "name": "Tank",
+                "state": {
+                    "off": "OK",
+                    "on": "Lav"
+                }
+            },
+            "tank_full": {
+                "name": "Tank",
+                "state": {
+                    "off": "OK",
+                    "on": "Full"
+                }
             }
         },
         "climate": {

+ 16 - 2
custom_components/tuya_local/translations/pl.json

@@ -63,9 +63,23 @@
             "defrost": {
                 "name": "Rozmrażać",
                 "state": {
-                    "off": "Normalna",
+                    "off": "Naladowana",
                     "on": "Rozmrażanie"
                 }
+            },
+            "tank_empty": {
+                "name": "Zbiornik",
+                "state": {
+                    "off": "OK",
+                    "on": "Niski"
+                }
+            },
+            "tank_full": {
+                "name": "Zbiornik",
+                "state": {
+                    "off": "OK",
+                    "on": "Pełny"
+                }
             }
         },
         "climate": {
@@ -176,7 +190,7 @@
                 "state_attributes": {
                     "preset_mode": {
                         "state": {
-                            "normal": "Normalny",
+                            "normal": "Naladowana",
                             "nature": "Naturalny",
                             "sleep": "Uśpiony",
                             "baby": "Dziecko",

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

@@ -66,6 +66,20 @@
                     "off": "Normal",
                     "on": "Descongelar"
                 }
+            },
+            "tank_empty": {
+                "name": "Tanque",
+                "state": {
+                    "off": "OK",
+                    "on": "Baixo"
+                }
+            },
+            "tank_full": {
+                "name": "Tanque",
+                "state": {
+                    "off": "OK",
+                    "on": "Cheio"
+                }
             }
         },
         "climate": {

+ 15 - 1
custom_components/tuya_local/translations/ru.json

@@ -66,6 +66,20 @@
                     "off": "Нормальный",
                     "on": "Разморозка"
                 }
+            },
+            "tank_empty": {
+                "name": "Бак",
+                "state": {
+                    "off": "OK",
+                    "on": "Низкий"
+                }
+            },
+            "tank_full": {
+                "name": "Бак",
+                "state": {
+                    "off": "OK",
+                    "on": "Полный"
+                }
             }
         },
         "climate": {
@@ -176,7 +190,7 @@
                 "state_attributes": {
                     "preset_mode": {
                         "state": {
-                            "normal": "Обычный",
+                            "normal": "Нормальный",
                             "nature": "Естественный",
                             "sleep": "Сон",
                             "baby": "Детская комната",

+ 16 - 2
custom_components/tuya_local/translations/uk.json

@@ -63,9 +63,23 @@
             "defrost": {
                 "name": "Розморожування",
                 "state": {
-                    "off": "Нормальний",
+                    "off": "Нормально",
                     "on": "Розморожування"
                 }
+            },
+            "tank_empty": {
+                "name": "Танк",
+                "state": {
+                    "off": "OK",
+                    "on": "Низький"
+                }
+            },
+            "tank_full": {
+                "name": "Танк",
+                "state": {
+                    "off": "OK",
+                    "on": "Повний"
+                }
             }
         },
         "climate": {
@@ -176,7 +190,7 @@
                 "state_attributes": {
                     "preset_mode": {
                         "state": {
-                            "normal": "Нормальний",
+                            "normal": "Нормально",
                             "nature": "Природні",
                             "sleep": "Сон",
                             "baby": "Дитина",

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

@@ -66,6 +66,20 @@
                     "off": "نارمل",
                     "on": "ڈیفروسٹنگ"
                 }
+            },
+            "tank_empty": {
+                "name": "ٹینک",
+                "state": {
+                    "off": "اوکے",
+                    "on": "کم"
+                }
+            },
+            "tank_full": {
+                "name": "ٹینک",
+                "state": {
+                    "off": "اوکے",
+                    "on": "مکمل"
+                }
             }
         },
         "climate": {

+ 4 - 3
tests/devices/test_eanons_humidifier.py

@@ -66,11 +66,12 @@ class TestEanonsHumidifier(
         )
         self.setUpBasicBinarySensor(
             ERROR_DPS,
-            self.entities.get("binary_sensor_tank"),
-            device_class=BinarySensorDeviceClass.PROBLEM,
+            self.entities.get("binary_sensor_tank_empty"),
             testdata=(1, 0),
         )
-        self.mark_secondary(["select_timer", "sensor_timer", "binary_sensor_tank"])
+        self.mark_secondary(
+            ["select_timer", "sensor_timer", "binary_sensor_tank_empty"]
+        )
 
     def test_supported_features(self):
         self.assertEqual(self.subject.supported_features, HumidifierEntityFeature.MODES)

+ 2 - 3
tests/devices/test_wilfa_haze_hu400bc_humidifier.py

@@ -50,9 +50,8 @@ class TestWilfaHazeHumidifier(
         self.setUpSwitchable(SWITCH_DPS, self.subject)
         self.setUpBasicBinarySensor(
             ERROR_DPS,
-            self.entities.get("binary_sensor_tank"),
+            self.entities.get("binary_sensor_tank_empty"),
             testdata=(1, 0),
-            device_class=BinarySensorDeviceClass.PROBLEM,
         )
         self.setUpMultiLights(
             [
@@ -134,7 +133,7 @@ class TestWilfaHazeHumidifier(
         )
         self.mark_secondary(
             [
-                "binary_sensor_tank",
+                "binary_sensor_tank_empty",
                 "light_display",
                 "light_mood",
                 "select_temperature_unit",

+ 2 - 1
tests/test_binary_sensor.py

@@ -37,7 +37,8 @@ async def test_init_entry(hass):
 
     await async_setup_entry(hass, entry, m_add_entities)
     assert (
-        type(hass.data[DOMAIN]["dummy"]["binary_sensor_tank"]) == TuyaLocalBinarySensor
+        type(hass.data[DOMAIN]["dummy"]["binary_sensor_tank_full"])
+        == TuyaLocalBinarySensor
     )
     m_add_entities.assert_called_once()