Parcourir la source

Defrost sensors and anti-frost switches: use translations

- binary_sensors indicating defrost cycle:
    use translations for name and icon, and on/off states
    remove any explicit icons, and class (variously cold, running, problem)

- switches to control anti-frost feature:
    use translations for name and icon

- simple one word translations filled in for all supported languages
  from Google translate (improvements from native speakers welcome)
Jason Rumney il y a 1 an
Parent
commit
304a32a20e
44 fichiers modifiés avec 445 ajouts et 272 suppressions
  1. 1 2
      custom_components/tuya_local/devices/avatto_me81_thermostat.yaml
  2. 1 2
      custom_components/tuya_local/devices/avatto_wt100_thermostat.yaml
  3. 1 2
      custom_components/tuya_local/devices/beok_tgm50_thermostat.yaml
  4. 1 2
      custom_components/tuya_local/devices/beok_tgr81_thermostat_c.yaml
  5. 1 2
      custom_components/tuya_local/devices/beok_tol47_thermostat.yaml
  6. 1 2
      custom_components/tuya_local/devices/beok_tr8b_thermostat.yaml
  7. 1 2
      custom_components/tuya_local/devices/beok_tr9b_thermostat.yaml
  8. 1 2
      custom_components/tuya_local/devices/bht002_galw_thermostat.yaml
  9. 1 3
      custom_components/tuya_local/devices/breville_lad208_dehumidifier.yaml
  10. 1 2
      custom_components/tuya_local/devices/carson_cb.yaml
  11. 2 4
      custom_components/tuya_local/devices/cooper_hunter_air_conditioner.yaml
  12. 1 1
      custom_components/tuya_local/devices/della_airconditioner.yaml
  13. 1 2
      custom_components/tuya_local/devices/eeese_anna_dehumidifier.yaml
  14. 1 2
      custom_components/tuya_local/devices/etop_ht_thermostat.yaml
  15. 1 2
      custom_components/tuya_local/devices/ferroli_titano_twin.yaml
  16. 1 3
      custom_components/tuya_local/devices/goldair_dehumidifier.yaml
  17. 1 2
      custom_components/tuya_local/devices/hombli_thermostatic_radiator_valve.yaml
  18. 1 2
      custom_components/tuya_local/devices/hydrotherm_dynamic_x8_water_heaterv6.yaml
  19. 1 2
      custom_components/tuya_local/devices/inventor_atmospherexl_dehumidifier.yaml
  20. 1 2
      custom_components/tuya_local/devices/its_45hd_heatpump.yaml
  21. 1 3
      custom_components/tuya_local/devices/jjpro_jpd01_dehumidifier.yaml
  22. 0 4
      custom_components/tuya_local/devices/kogan_kawfpac12ya_airconditioner.yaml
  23. 1 2
      custom_components/tuya_local/devices/madimack_heatpump.yaml
  24. 1 2
      custom_components/tuya_local/devices/me80_thermostat.yaml
  25. 1 2
      custom_components/tuya_local/devices/minco_mh1823d_thermostat.yaml
  26. 1 2
      custom_components/tuya_local/devices/poolex_qline_heatpump.yaml
  27. 1 2
      custom_components/tuya_local/devices/salcar_t9w_thermostat.yaml
  28. 1 3
      custom_components/tuya_local/devices/shinco_30d_dehumidifier.yaml
  29. 1 2
      custom_components/tuya_local/devices/t5e_wf_thermostat.yaml
  30. 13 0
      custom_components/tuya_local/icons.json
  31. 14 0
      custom_components/tuya_local/translations/bg.json
  32. 14 0
      custom_components/tuya_local/translations/cz.json
  33. 14 0
      custom_components/tuya_local/translations/en.json
  34. 14 0
      custom_components/tuya_local/translations/es.json
  35. 14 0
      custom_components/tuya_local/translations/fr.json
  36. 16 2
      custom_components/tuya_local/translations/hu.json
  37. 14 0
      custom_components/tuya_local/translations/id.json
  38. 14 0
      custom_components/tuya_local/translations/it.json
  39. 14 0
      custom_components/tuya_local/translations/no-NB.json
  40. 14 0
      custom_components/tuya_local/translations/pl.json
  41. 14 0
      custom_components/tuya_local/translations/pt-BR.json
  42. 219 205
      custom_components/tuya_local/translations/ru.json
  43. 14 0
      custom_components/tuya_local/translations/uk.json
  44. 14 0
      custom_components/tuya_local/translations/ur.json

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

@@ -60,8 +60,7 @@ primary_entity:
       name: week_program
 secondary_entities:
   - entity: switch
-    name: Anti-frost
-    icon: "mdi:snowflake"
+    translation_key: anti_frost
     category: config
     dps:
       - id: 10

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

@@ -143,9 +143,8 @@ secondary_entities:
           - dps_val: "3"
             value: Both
   - entity: switch
-    name: Anti-frost
+    translation_key: anti_frost
     category: config
-    icon: "mdi:snowflake-melt"
     dps:
       - id: 26
         type: boolean

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

@@ -147,9 +147,8 @@ secondary_entities:
           min: 5
           max: 60
   - entity: switch
-    name: Anti-frost
+    translation_key: anti_frost
     category: config
-    icon: "mdi:snowflake-melt"
     dps:
       - id: 103
         type: boolean

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

@@ -81,8 +81,7 @@ secondary_entities:
           min: -9
           max: 9
   - entity: switch
-    name: Anti-frost
-    icon: "mdi:snowflake-melt"
+    translation_key: anti_frost
     category: config
     dps:
       - id: 10

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

@@ -133,9 +133,8 @@ secondary_entities:
           - dps_val: "3"
             value: Both
   - entity: switch
-    name: Anti-frost
+    translation_key: anti_frost
     category: config
-    icon: "mdi:snowflake-melt"
     dps:
       - id: 26
         type: boolean

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

@@ -125,8 +125,7 @@ primary_entity:
       name: light_mode
 secondary_entities:
   - entity: switch
-    name: Anti-frost
-    icon: "mdi:snowflake"
+    translation_key: anti_frost
     category: config
     dps:
       - id: 10

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

@@ -66,8 +66,7 @@ primary_entity:
       name: unknown_102
 secondary_entities:
   - entity: switch
-    name: Anti-frost
-    icon: "mdi:snowflake-melt"
+    translation_key: anti_frost
     category: config
     dps:
       - id: 10

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

@@ -84,9 +84,8 @@ secondary_entities:
         type: boolean
         name: lock
   - entity: switch
-    name: Anti-frost
+    translation_key: anti_frost
     category: config
-    icon: "mdi:snowflake"
     dps:
       - id: 10
         type: boolean

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

@@ -168,9 +168,7 @@ secondary_entities:
             icon_priority: 1
           - value: false
   - entity: binary_sensor
-    name: Defrost
-    class: cold
-    icon: "mdi:snowflake-melt"
+    translation_key: defrost
     category: diagnostic
     dps:
       - id: 105

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

@@ -99,8 +99,7 @@ secondary_entities:
         name: switch
         optional: true
   - entity: binary_sensor
-    name: Defrosting
-    class: cold
+    translation_key: defrost
     category: diagnostic
     dps:
       - id: 102

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

@@ -221,18 +221,16 @@ secondary_entities:
           - dps_val: "off"
             value: false
   - entity: binary_sensor
-    name: Defrosting
+    translation_key: defrost
     category: diagnostic
-    class: cold
     dps:
       - id: 181
         name: sensor
         type: boolean
         optional: true
   - entity: switch
-    name: Anti-frost
+    translation_key: anti_frost
     category: config
-    icon: "mdi:snowflake"
     dps:
       - id: 180
         name: switch

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

@@ -139,7 +139,7 @@ secondary_entities:
         name: switch
         type: boolean
   - entity: switch
-    name: Anti-frost
+    translation_key: anti_frost
     category: config
     dps:
       - id: 104

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

@@ -67,8 +67,7 @@ secondary_entities:
             value: true
           - value: false
   - entity: binary_sensor
-    name: Defrost
-    class: problem
+    translation_key: defrost
     category: diagnostic
     dps:
       - id: 19

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

@@ -82,8 +82,7 @@ primary_entity:
       name: fault_code
 secondary_entities:
   - entity: switch
-    name: "Anti-frost"
-    icon: "mdi:snowflake-melt"
+    translation_key: anti_frost
     category: config
     dps:
       - id: 10

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

@@ -85,8 +85,7 @@ secondary_entities:
             value: true
           - value: false
   - entity: binary_sensor
-    name: Anti-frost
-    class: cold
+    translation_key: defrost
     category: diagnostic
     dps:
       - id: 103

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

@@ -158,9 +158,7 @@ secondary_entities:
             value: false
           - value: true
   - entity: binary_sensor
-    name: Defrost
-    class: cold
-    icon: "mdi:snowflake-melt"
+    translation_key: defrost
     category: diagnostic
     dps:
       - id: 105

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

@@ -45,8 +45,7 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: switch
-    name: Anti frost
-    icon: "mdi:snowflake"
+    translation_key: anti_frost
     category: config
     dps:
       - id: 10

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

@@ -218,8 +218,7 @@ secondary_entities:
         type: boolean
         name: sensor
   - entity: binary_sensor
-    name: Defrosting
-    class: running
+    translation_key: defrost
     category: diagnostic
     dps:
       - id: 33

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

@@ -197,8 +197,7 @@ secondary_entities:
         name: sensor
         unit: min
   - entity: binary_sensor
-    class: cold
-    name: Defrost
+    translation_key: defrost
     category: diagnostic
     dps:
       - id: 19

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

@@ -103,8 +103,7 @@ primary_entity:
       name: dipswitch_2
 secondary_entities:
   - entity: switch
-    name: Defrost
-    icon: "mdi:snowflake"
+    translation_key: anti_frost
     category: config
     dps:
       - id: 7

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

@@ -127,9 +127,7 @@ secondary_entities:
             value: false
           - value: true
   - entity: binary_sensor
-    name: Defrost
-    class: cold
-    icon: "mdi:snowflake-melt"
+    translation_key: defrost
     category: diagnostic
     dps:
       - id: 105

+ 0 - 4
custom_components/tuya_local/devices/kogan_kawfpac12ya_airconditioner.yaml

@@ -11,18 +11,14 @@ primary_entity:
       mapping:
         - dps_val: false
           value: "off"
-          icon: "mdi:hvac-off"
         - dps_val: true
           constraint: mode
           conditions:
             - dps_val: COOL
-              icon: "mdi:snowflake"
               value: cool
             - dps_val: FAN
-              icon: "mdi:fan"
               value: fan_only
             - dps_val: DRY
-              icon: "mdi:water"
               value: dry
     - id: 2
       name: temperature

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

@@ -152,8 +152,7 @@ secondary_entities:
             value: true
           - value: false
   - entity: binary_sensor
-    name: Defrosting
-    class: cold
+    translation_key: defrost
     category: diagnostic
     dps:
       - id: 130

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

@@ -295,9 +295,8 @@ secondary_entities:
           - dps_val: f
             value: F
   - entity: switch
-    name: Anti-frost
+    translation_key: anti_frost
     category: config
-    icon: "mdi:snowflake"
     dps:
       - id: 103
         type: boolean

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

@@ -297,8 +297,7 @@ secondary_entities:
         name: lock
   - entity: switch
     category: config
-    name: Anti-frost
-    icon: "mdi:snowflake-melt"
+    translation_key: anti_frost
     dps:
       - id: 9
         type: boolean

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

@@ -69,8 +69,7 @@ secondary_entities:
             value: true
           - value: false
   - entity: binary_sensor
-    name: Anti-freeze
-    class: cold
+    translation_key: defrost
     category: diagnostic
     dps:
       - id: 15

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

@@ -82,9 +82,8 @@ primary_entity:
           value: E3
 secondary_entities:
   - entity: switch
-    name: Anti-frost
+    translation_key: anti_frost
     category: config
-    icon: "mdi:snowflake"
     dps:
       - id: 10
         type: boolean

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

@@ -98,9 +98,7 @@ secondary_entities:
             value: true
           - value: false
   - entity: binary_sensor
-    name: Defrost
-    class: cold
-    icon: "mdi:snowflake-melt"
+    translation_key: defrost
     category: diagnostic
     dps:
       - id: 11

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

@@ -287,9 +287,8 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: switch
-    name: Frost protection
+    translation_key: anti_frost
     category: config
-    icon: "mdi:snowflake"
     dps:
       - id: 10
         type: boolean

+ 13 - 0
custom_components/tuya_local/icons.json

@@ -1,5 +1,13 @@
 {
     "entity": {
+        "binary_sensor": {
+            "defrost": {
+                "default": "mdi:circle-outline",
+                "state": {
+                    "on": "mdi:snowflake-melt"
+                }
+            }
+        },
         "lock": {
             "child_lock": {
                 "default": "mdi:hand-back-right",
@@ -23,6 +31,11 @@
                     "fahrenheit": "mdi:temperature-fahrenheit"
                 }
             }
+        },
+        "switch": {
+            "anti_frost": {
+                "default": "mdi:snowflake-melt"
+            }
         }
     }
 }

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

@@ -59,6 +59,15 @@
         }
     },
     "entity": {
+        "binary_sensor": {
+            "defrost": {
+                "name": "Размразяване",
+                "state": {
+                    "off": "Нормално",
+                    "on": "Размразяване"
+                }
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {
@@ -216,6 +225,11 @@
                     "fahrenheit": "Фаренхайт"
                 }
             }
+        },
+        "switch": {
+            "anti_frost": {
+                "name": "Анти-замръзване"
+            }
         }
     }
 }

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

@@ -59,6 +59,15 @@
         }
     },
     "entity": {
+        "binary_sensor": {
+            "defrost": {
+                "name": "Rozmrazovat",
+                "state": {
+                    "off": "Normální",
+                    "on": "Rozmrazování"
+                }
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {
@@ -216,6 +225,11 @@
                     "fahrenheit": "Fahrenheita"
                 }
             }
+        },
+        "switch": {
+            "anti_frost": {
+                "name": "Proti mrazu"
+            }
         }
     }
 }

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

@@ -59,6 +59,15 @@
         }
     },
     "entity": {
+        "binary_sensor": {
+            "defrost": {
+                "name": "Defrost",
+                "state": {
+                    "off": "Normal",
+                    "on": "Defrosting"
+                }
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {
@@ -216,6 +225,11 @@
                     "fahrenheit": "Fahrenheit"
                 }
             }
+        },
+        "switch": {
+            "anti_frost": {
+                "name": "Anti-frost"
+            }
         }
     }
 }

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

@@ -59,6 +59,15 @@
         }
     },
     "entity": {
+        "binary_sensor": {
+            "defrost": {
+                "name": "Descongelar",
+                "state": {
+                    "off": "Normal",
+                    "on": "Deshelamiento"
+                }
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {
@@ -216,6 +225,11 @@
                     "fahrenheit": "Fahrenheit"
                 }
             }
+        },
+        "switch": {
+            "anti_frost": {
+                "name": "Antihielo"
+            }
         }
     }
 }

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

@@ -59,6 +59,15 @@
         }
     },
     "entity": {
+        "binary_sensor": {
+            "defrost": {
+                "name": "Dégivrer",
+                "state": {
+                    "off": "Normale",
+                    "on": "Dégivrage"
+                }
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {
@@ -183,6 +192,11 @@
                     "fahrenheit": "Fahrenheit"
                 }
             }
+        },
+        "switch": {
+            "anti_frost": {
+                "name": "Anti-gel"
+            }
         }
     }
 }

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

@@ -59,7 +59,16 @@
             "not_supported": "Sajnálom, ez az eszköz nem támogatott."
         }
     },
-   "entity": {
+    "entity": {
+        "binary_sensor": {
+            "defrost": {
+                "name": "Leolvasztani",
+                "state": {
+                    "off": "Normál",
+                    "on": "Leolvasztás"
+                }
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {
@@ -216,6 +225,11 @@
                     "fahrenheit": "Fahrenheit"
                 }
             }
+        },
+        "switch": {
+            "anti_frost": {
+                "name": "Fagyálló"
+            }
         }
-   }
+    }
 }

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

@@ -59,6 +59,15 @@
         }
     },
     "entity": {
+        "binary_sensor": {
+            "defrost": {
+                "name": "Mencairkan beku",
+                "state": {
+                    "off": "Normal",
+                    "on": "Pencairan bunga es"
+                }
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {
@@ -216,6 +225,11 @@
                     "fahrenheit": "Fahrenheit"
                 }
             }
+        },
+        "switch": {
+            "anti_frost": {
+                "name": "Anti beku"
+            }
         }
     }
 }

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

@@ -59,6 +59,15 @@
         }
     },
     "entity": {
+        "binary_sensor": {
+            "defrost": {
+                "name": "Scongelare",
+                "state": {
+                    "off": "Normale",
+                    "on": "Scongelamento"
+                }
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {
@@ -216,6 +225,11 @@
                     "fahrenheit": "Fahrenheit"
                 }
             }
+        },
+        "switch": {
+            "anti_frost": {
+                "name": "Antigelo"
+            }
         }
     }
 }

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

@@ -59,6 +59,15 @@
         }
     },
     "entity": {
+        "binary_sensor": {
+            "defrost": {
+                "name": "Tine",
+                "state": {
+                    "off": "Normal",
+                    "on": "Tining"
+                }
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {
@@ -200,6 +209,11 @@
                     "fahrenheit": "Fahrenheit"
                 }
             }
+        },
+        "switch": {
+            "anti_frost": {
+                "name": "Anti-frost"
+            }
         }
     }
 }

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

@@ -59,6 +59,15 @@
         }
     },
     "entity": {
+        "binary_sensor": {
+            "defrost": {
+                "name": "Rozmrażać",
+                "state": {
+                    "off": "Normalna",
+                    "on": "Rozmrażanie"
+                }
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {
@@ -215,6 +224,11 @@
                     "fahrenheit": "Fahrenheita"
                 }
             }
+        },
+        "switch": {
+            "anti_frost": {
+                "name": "Ochrona przed zamarzaniem"
+            }
         }
     }
 }

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

@@ -59,6 +59,15 @@
         }
     },
     "entity": {
+        "binary_sensor": {
+            "defrost": {
+                "name": "Descongelar",
+                "state": {
+                    "off": "Normal",
+                    "on": "Descongelar"
+                }
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {
@@ -216,6 +225,11 @@
                     "fahrenheit": "Fahrenheit"
                 }
             }
+        },
+        "switch": {
+            "anti_frost": {
+                "name": "Antigelo"
+            }
         }
     }
 }

+ 219 - 205
custom_components/tuya_local/translations/ru.json

@@ -1,221 +1,235 @@
 {
-  "title": "Tuya Local",
-  "config": {
-    "step": {
-      "user": {
-        "title": "Настройка устройства Tuya Local",
-        "description": "[Следуйте этим инструкциям, чтобы найти идентификатор устройства и локальный ключ.](https://github.com/make-all/tuya-local#finding-your-device-id-and-local-key)",
-        "data": {
-          "host": "IP-адрес или имя хоста",
-          "device_id": "Идентификатор устройства",
-          "local_key": "Локальный ключ",
-          "protocol_version": "Версия протокола (попробуйте auto, если не уверены)",
-          "poll_only": "Только опрос (попробуйте это, если ваше устройство не работает в полной мере)",
-          "device_cid": "Идентификатор подустройства (для устройств, подключенных через шлюз)"
-        }
-      },
-      "select_type": {
-        "title": "Выберите тип устройства",
-        "description": "Выберите тип, соответствующий вашему устройству",
-        "data": {
-          "type": "Тип устройства"
-        }
-      },
-      "choose_entities": {
-        "title": "Сведения об устройстве",
-        "description": "Выберите имя для этого устройства и включите нужные сущности",
-        "data": {
-          "name": "Имя"
+    "title": "Tuya Local",
+    "config": {
+        "step": {
+            "user": {
+                "title": "Настройка устройства Tuya Local",
+                "description": "[Следуйте этим инструкциям, чтобы найти идентификатор устройства и локальный ключ.](https://github.com/make-all/tuya-local#finding-your-device-id-and-local-key)",
+                "data": {
+                    "host": "IP-адрес или имя хоста",
+                    "device_id": "Идентификатор устройства",
+                    "local_key": "Локальный ключ",
+                    "protocol_version": "Версия протокола (попробуйте auto, если не уверены)",
+                    "poll_only": "Только опрос (попробуйте это, если ваше устройство не работает в полной мере)",
+                    "device_cid": "Идентификатор подустройства (для устройств, подключенных через шлюз)"
+                }
+            },
+            "select_type": {
+                "title": "Выберите тип устройства",
+                "description": "Выберите тип, соответствующий вашему устройству",
+                "data": {
+                    "type": "Тип устройства"
+                }
+            },
+            "choose_entities": {
+                "title": "Сведения об устройстве",
+                "description": "Выберите имя для этого устройства и включите нужные сущности",
+                "data": {
+                    "name": "Имя"
+                }
+            }
+        },
+        "abort": {
+            "already_configured": "Устройство с этим идентификатором уже было добавлено.",
+            "not_supported": "К сожалению, это устройство не поддерживается."
+        },
+        "error": {
+            "connection": "Не удается подключиться к вашему устройству с этими данными. Это может быть временная проблема, или данные могут быть неверными."
         }
-      }
-    },
-    "abort": {
-      "already_configured": "Устройство с этим идентификатором уже было добавлено.",
-      "not_supported": "К сожалению, это устройство не поддерживается."
     },
-    "error": {
-      "connection": "Не удается подключиться к вашему устройству с этими данными. Это может быть временная проблема, или данные могут быть неверными."
-    }
-  },
-  "options": {
-    "step": {
-      "user": {
-        "title": "Настройка устройства Tuya Local",
-        "description": "[Следуйте этим инструкциям, чтобы найти идентификатор устройства и локальный ключ.](https://github.com/make-all/tuya-local#finding-your-device-id-and-local-key)",
-        "data": {
-          "host": "IP-адрес или имя хоста",
-          "local_key": "Локальный ключ",
-          "protocol_version": "Версия протокола (попробуйте auto, если не уверены)",
-          "poll_only": "Только опрос (попробуйте это, если ваше устройство не работает в полной мере)",
-          "device_cid": "Идентификатор подустройства (для устройств, подключенных через шлюз)"
+    "options": {
+        "step": {
+            "user": {
+                "title": "Настройка устройства Tuya Local",
+                "description": "[Следуйте этим инструкциям, чтобы найти идентификатор устройства и локальный ключ.](https://github.com/make-all/tuya-local#finding-your-device-id-and-local-key)",
+                "data": {
+                    "host": "IP-адрес или имя хоста",
+                    "local_key": "Локальный ключ",
+                    "protocol_version": "Версия протокола (попробуйте auto, если не уверены)",
+                    "poll_only": "Только опрос (попробуйте это, если ваше устройство не работает в полной мере)",
+                    "device_cid": "Идентификатор подустройства (для устройств, подключенных через шлюз)"
+                }
+            }
+        },
+        "error": {
+            "connection": "Не удается подключиться к вашему устройству с этими данными. Это может быть временная проблема, или данные могут быть неверными."
+        },
+        "abort": {
+            "not_supported": "К сожалению, это устройство не поддерживается."
         }
-      }
-    },
-    "error": {
-      "connection": "Не удается подключиться к вашему устройству с этими данными. Это может быть временная проблема, или данные могут быть неверными."
     },
-    "abort": {
-      "not_supported": "К сожалению, это устройство не поддерживается."
-    }
-  },
-  "entity": {
-    "climate": {
-      "aircon_extra": {
-        "state_attributes": {
-          "fan_mode": {
-            "state": {
-              "health": "Здоровый",
-              "medhigh": "Средне-высокий",
-              "medlow": "Средне-низкий",
-              "natural": "Естественный",
-              "quiet": "Тихий",
-              "sleep": "Сон",
-              "strong": "Сильный"
+    "entity": {
+        "binary_sensor": {
+            "defrost": {
+                "name": "Разморозка",
+                "state": {
+                    "off": "Нормальный",
+                    "on": "Разморозка"
+                }
             }
-          },
-          "swing_mode": {
-            "state": {
-              "topmost": "Самый верхний",
-              "top": "Верхний",
-              "middle": "Средний",
-              "down": "Нижний",
-              "downmost": "Самый нижний"
+        },
+        "climate": {
+            "aircon_extra": {
+                "state_attributes": {
+                    "fan_mode": {
+                        "state": {
+                            "health": "Здоровый",
+                            "medhigh": "Средне-высокий",
+                            "medlow": "Средне-низкий",
+                            "natural": "Естественный",
+                            "quiet": "Тихий",
+                            "sleep": "Сон",
+                            "strong": "Сильный"
+                        }
+                    },
+                    "swing_mode": {
+                        "state": {
+                            "topmost": "Самый верхний",
+                            "top": "Верхний",
+                            "middle": "Средний",
+                            "down": "Нижний",
+                            "downmost": "Самый нижний"
+                        }
+                    }
+                }
+            },
+            "thermostat": {
+                "state_attributes": {
+                    "fan_mode": {
+                        "state": {
+                            "cycle": "Цикл"
+                        }
+                    },
+                    "preset_mode": {
+                        "state": {
+                            "manual": "Ручной",
+                            "program": "Программа",
+                            "temp_override": "Временно перекрыт",
+                            "perm_override": "Постоянно перекрыт"
+                        }
+                    }
+                }
+            },
+            "combo_floor": {
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "cool": "Прохладный воздух",
+                            "fan_only": "Вентилятор",
+                            "heat": "Теплый воздух",
+                            "floor_cool": "Прохладный пол",
+                            "floor_heat": "Теплый пол"
+                        }
+                    }
+                }
+            },
+            "swing_as_powerlevel": {
+                "state_attributes": {
+                    "swing_mode": {
+                        "name": "Уровень нагрева",
+                        "state": {
+                            "stop": "Стоп",
+                            "auto": "Авто"
+                        }
+                    }
+                }
+            },
+            "pool_heatpump": {
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "smart_heat": "Умный нагрев",
+                            "quick_heat": "Быстрый нагрев",
+                            "quiet_heat": "Тихий нагрев",
+                            "smart_cool": "Умное охлаждение",
+                            "quick_cool": "Быстрое охлаждение",
+                            "quiet_cool": "Тихое охлаждение",
+                            "auto": "Авто"
+                        }
+                    }
+                }
+            },
+            "thermo_switch": {
+                "state_attributes": {
+                    "hvac_mode": {
+                        "state": {
+                            "fan_only": "Пауза"
+                        }
+                    }
+                }
             }
-          }
-        }
-      },
-      "thermostat": {
-        "state_attributes": {
-          "fan_mode": {
-            "state": {
-              "cycle": "Цикл"
+        },
+        "humidifier": {
+            "dehumidifier": {
+                "state_attributes": {
+                    "mode": {
+                        "state": {
+                            "laundry": "Сушка одежды",
+                            "purify": "Очистка"
+                        }
+                    }
+                }
             }
-          },
-          "preset_mode": {
-            "state": {
-              "manual": "Ручной",
-              "program": "Программа",
-              "temp_override": "Временно перекрыт",
-              "perm_override": "Постоянно перекрыт"
+        },
+        "fan": {
+            "fan_with_presets": {
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "normal": "Обычный",
+                            "nature": "Естественный",
+                            "sleep": "Сон",
+                            "baby": "Детская комната",
+                            "fresh": "Свежий",
+                            "smart": "Умный",
+                            "strong": "Мощный",
+                            "displayoff": "Дисплей выкл",
+                            "off": "Выкл"
+                        }
+                    }
+                }
+            },
+            "ventilation": {
+                "state_attributes": {
+                    "preset_mode": {
+                        "state": {
+                            "fresh": "Свежий воздух",
+                            "circulate": "Циркуляция",
+                            "sleep": "Сон",
+                            "auto": "Авто",
+                            "eco": "Эко",
+                            "anti-condensation": "Антиконденсация"
+                        }
+                    }
+                }
             }
-          }
-        }
-      },
-      "combo_floor": {
-        "state_attributes": {
-          "preset_mode": {
-            "state": {
-              "cool": "Прохладный воздух",
-              "fan_only": "Вентилятор",
-              "heat": "Теплый воздух",
-              "floor_cool": "Прохладный пол",
-              "floor_heat": "Теплый пол"
+        },
+        "lock": {
+            "child_lock": {
+                "name": "Блокировка от детей"
             }
-          }
-        }
-      },
-      "swing_as_powerlevel": {
-        "state_attributes": {
-          "swing_mode": {
-            "name": "Уровень нагрева",
-            "state": {
-              "stop": "Стоп",
-              "auto": "Авто"
+        },
+        "number": {
+            "timer": {
+                "name": "Таймер"
             }
-          }
-        }
-      },
-      "pool_heatpump": {
-        "state_attributes": {
-          "preset_mode": {
-            "state": {
-              "smart_heat": "Умный нагрев",
-              "quick_heat": "Быстрый нагрев",
-              "quiet_heat": "Тихий нагрев",
-              "smart_cool": "Умное охлаждение",
-              "quick_cool": "Быстрое охлаждение",
-              "quiet_cool": "Тихое охлаждение",
-              "auto": "Авто"
+        },
+        "select": {
+            "timer": {
+                "name": "Таймер"
+            },
+            "temperature_unit": {
+                "name": "Единица измерения температуры",
+                "state": {
+                    "celsius": "Цельсия",
+                    "fahrenheit": "Фаренгейт"
+                }
             }
-          }
-        }
-      },
-      "thermo_switch": {
-        "state_attributes": {
-          "hvac_mode": {
-            "state": {
-              "fan_only": "Пауза"
+        },
+        "switch": {
+            "anti_frost": {
+                "name": "Антимороз"
             }
-          }
-        }
-      }
-    },
-    "humidifier": {
-      "dehumidifier": {
-        "state_attributes": {
-          "mode": {
-            "state": {
-              "laundry": "Сушка одежды",
-              "purify": "Очистка"
-            }
-          }
-        }
-      }
-    },
-    "fan": {
-      "fan_with_presets": {
-        "state_attributes": {
-          "preset_mode": {
-            "state": {
-              "normal": "Обычный",
-              "nature": "Естественный",
-              "sleep": "Сон",
-              "baby": "Детская комната",
-              "fresh": "Свежий",
-              "smart": "Умный",
-              "strong": "Мощный",
-              "displayoff": "Дисплей выкл",
-              "off": "Выкл"
-            }
-          }
-        }
-      },
-      "ventilation": {
-        "state_attributes": {
-          "preset_mode": {
-            "state": {
-              "fresh": "Свежий воздух",
-              "circulate": "Циркуляция",
-              "sleep": "Сон",
-              "auto": "Авто",
-              "eco": "Эко",
-              "anti-condensation": "Антиконденсация"
-            }
-          }
-        }
-      }
-    },
-    "lock": {
-      "child_lock": {
-        "name": "Блокировка от детей"
-      }
-    },
-    "number": {
-      "timer": {
-        "name": "Таймер"
-      }
-    },
-    "select": {
-      "timer": {
-        "name": "Таймер"
-      },
-      "temperature_unit": {
-        "name": "Единица измерения температуры",
-        "state": {
-          "celsius": "Цельсия",
-          "fahrenheit": "Фаренгейт"
         }
-      }
     }
-  }
 }

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

@@ -59,6 +59,15 @@
 		}
 	},
     "entity": {
+        "binary_sensor": {
+            "defrost": {
+                "name": "Розморожування",
+                "state": {
+                    "off": "Нормальний",
+                    "on": "Розморожування"
+                }
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {
@@ -216,6 +225,11 @@
                     "fahrenheit": "Фаренгейт"
                 }
             }
+        },
+        "switch": {
+            "anti_frost": {
+                "name": "Протиморозний"
+            }
         }
     }
 }

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

@@ -59,6 +59,15 @@
         }
     },
     "entity": {
+        "binary_sensor": {
+            "defrost": {
+                "name": "ڈیفروسٹ",
+                "state": {
+                    "off": "نارمل",
+                    "on": "ڈیفروسٹنگ"
+                }
+            }
+        },
         "climate": {
             "aircon_extra": {
                 "state_attributes": {
@@ -216,6 +225,11 @@
                     "fahrenheit": "فارن ہائیٹ"
                 }
             }
+        },
+        "switch": {
+            "anti_frost": {
+                "name": "اینٹی فراسٹ"
+            }
         }
     }
 }