Parcourir la source

Docs for PR #2705, more water heater translations

Apply water_air translation key to other applicable devices:
 - Axen, HY Combo, Nulite, Powerworld water heaters
Add extra translations for auto and hotwater_auto
Jason Rumney il y a 9 mois
Parent
commit
e4798d27dc
28 fichiers modifiés avec 100 ajouts et 52 suppressions
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 8 7
      custom_components/tuya_local/devices/axen_ks100w_heatpump.yaml
  4. 6 5
      custom_components/tuya_local/devices/hy_combo_heatpump.yaml
  5. 6 5
      custom_components/tuya_local/devices/nulite_nlb245_heatpump.yaml
  6. 6 5
      custom_components/tuya_local/devices/powerworld_pw58330_waterheater.yaml
  7. 6 5
      custom_components/tuya_local/devices/powerworld_pw58410_hvaconly.yaml
  8. 6 5
      custom_components/tuya_local/devices/powerworld_pw58410_waterheater.yaml
  9. 3 1
      custom_components/tuya_local/translations/bg.json
  10. 3 1
      custom_components/tuya_local/translations/ca.json
  11. 3 1
      custom_components/tuya_local/translations/cz.json
  12. 3 1
      custom_components/tuya_local/translations/de.json
  13. 3 1
      custom_components/tuya_local/translations/el.json
  14. 3 1
      custom_components/tuya_local/translations/en.json
  15. 3 1
      custom_components/tuya_local/translations/es.json
  16. 3 1
      custom_components/tuya_local/translations/fr.json
  17. 3 1
      custom_components/tuya_local/translations/hu.json
  18. 3 1
      custom_components/tuya_local/translations/id.json
  19. 3 1
      custom_components/tuya_local/translations/it.json
  20. 3 1
      custom_components/tuya_local/translations/ja.json
  21. 3 1
      custom_components/tuya_local/translations/no-NB.json
  22. 3 1
      custom_components/tuya_local/translations/pl.json
  23. 3 1
      custom_components/tuya_local/translations/pt-BR.json
  24. 3 1
      custom_components/tuya_local/translations/ru.json
  25. 3 1
      custom_components/tuya_local/translations/uk.json
  26. 3 1
      custom_components/tuya_local/translations/ur.json
  27. 3 1
      custom_components/tuya_local/translations/zh-Hans.json
  28. 3 1
      custom_components/tuya_local/translations/zh-Hant.json

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -906,3 +906,4 @@ Further device support has been made with the assistance of users. Please consid
 - [Otte-S](https://github.com/Otte-S) for assisting with support for LSC Smart Connect Neon LED strip.
 - [Wob76](https://github.com/Wob76) for assisting with support for Sailesi litter box.
 - [Zycrannny](https://github.com/Zycrannny) for assisting with support for Prestige M3 ceiling fan with light.
+- [hcanIngo](https://github.com/hcanIngo) for contributing support for Powerworld PW040 water+air heat pump.

+ 1 - 0
DEVICES.md

@@ -171,6 +171,7 @@
 - Koi Duo HTW-TD-080KOID
 - Modena ES-15-SKY water heater
 - Nulite NL-B245 monobloc heat pump
+- Powerworld PW040 hot water and climate heat pump
 - Powerworld PW58330 hot water and climate heat pump
 - Powerworld PW58410 hot water and climate heat pump
 - Sanden GAU-A45HPD WiFi heat pump controller

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

@@ -157,6 +157,7 @@ entities:
         mapping:
           - scale: 10
   - entity: water_heater
+    translation_only_key: water_air
     dps:
       - id: 1
         type: boolean
@@ -168,19 +169,19 @@ entities:
             constraint: work_mode
             conditions:
               - dps_val: cool
-                value: air_cooling
+                value: cool
               - dps_val: heat
-                value: air_heating
+                value: heat
               - dps_val: auto
-                value: air_heat_cool
+                value: auto
               - dps_val: hot_water
-                value: hot_water
-              - dps_val: cool_hot_water
+                value: hotwater
+              - dps_val: hotwater_cool
                 value: hot_water_and_cooling
-              - dps_val: heat_hot_water
+              - dps_val: hotwater_heat
                 value: hot_water_and_heating
               - dps_val: auto_dhw
-                value: hot_water_and_heat_cool
+                value: hotwater_auto
       - id: 104
         type: integer
         name: temperature

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

@@ -80,6 +80,7 @@ entities:
           min: 7
           max: 25
   - entity: water_heater
+    translation_only_key: water_air
     dps:
       - id: 1
         type: boolean
@@ -91,15 +92,15 @@ entities:
             constraint: mode
             conditions:
               - dps_val: Hot
-                value: hot_water
+                value: hotwater
               - dps_val: Heating
-                value: air_heating
+                value: heat
               - dps_val: Cooling
-                value: air_cooling
+                value: cool
               - dps_val: Hot_Heating
-                value: hot_water_and_heating
+                value: hotwater_heat
               - dps_val: Hot_Cooling
-                value: hot_water_and_cooling
+                value: hotwater_cool
       - id: 2
         type: string
         name: mode

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

@@ -76,21 +76,22 @@ entities:
         type: bitfield
         name: fault_code
   - entity: water_heater
+    translation_only_key: water_air
     dps:
       - id: 4
         type: string
         name: operation_mode
         mapping:
           - dps_val: Heat
-            value: Heat
+            value: heat
           - dps_val: Cool
-            value: Cool
+            value: cool
           - dps_val: HotWater
-            value: Hot water
+            value: hotwater
           - dps_val: Heat_HotWater
-            value: Heat and hot water
+            value: hotwater_heat
           - dps_val: Cool_HotWater
-            value: Cool and hot water
+            value: hotwater_cool
       - id: 101
         type: integer
         name: temperature

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

@@ -8,6 +8,7 @@ products:
 #     model: PW58330
 entities:
   - entity: water_heater
+    translation_only_key: water_air
     dps:
       - id: 1
         type: boolean
@@ -19,15 +20,15 @@ entities:
             constraint: work_mode
             conditions:
               - dps_val: wth
-                value: Hot water
+                value: hotwater
               - dps_val: heat
-                value: Heating
+                value: heat
               - dps_val: cool
-                value: Cooling
+                value: cool
               - dps_val: wth_heat
-                value: Hot water + heating
+                value: hotwater_heat
               - dps_val: wth_cool
-                value: Hot water + cooling
+                value: hotwater_cool
       - id: 5
         type: string
         name: work_mode

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

@@ -69,6 +69,7 @@ entities:
           min: 0
           max: 99
   - entity: water_heater
+    translation_only_key: water_air
     dps:
       - id: 1
         type: boolean
@@ -80,15 +81,15 @@ entities:
             constraint: work_mode
             conditions:
               - dps_val: wth
-                value: Hot water
+                value: hotwater
               - dps_val: heat
-                value: Heating
+                value: heat
               - dps_val: cool
-                value: Cooling
+                value: cool
               - dps_val: wth_heat
-                value: Hot water + heating
+                value: hotwater_heat
               - dps_val: wth_cool
-                value: Hot water + cooling
+                value: hotwater_cool
       - id: 5
         type: string
         name: work_mode

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

@@ -5,6 +5,7 @@ products:
     model: PW58410
 entities:
   - entity: water_heater
+    translation_only_key: water_air
     dps:
       - id: 1
         type: boolean
@@ -16,15 +17,15 @@ entities:
             constraint: work_mode
             conditions:
               - dps_val: wth
-                value: Hot water
+                value: hotwater
               - dps_val: heat
-                value: Heating
+                value: heat
               - dps_val: cool
-                value: Cooling
+                value: cool
               - dps_val: wth_heat
-                value: Hot water + heating
+                value: hotwater_heat
               - dps_val: wth_cool
-                value: Hot water + cooling
+                value: hotwater_cool
       - id: 5
         type: string
         name: work_mode

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

@@ -768,10 +768,12 @@
                         "state": {
                             "heat": "Нагряване",
                             "cool": "Охлаждане",
+                            "auto": "Автоматично",
                             "off": "Изключено",
                             "hotwater": "Гореща вода",
                             "hotwater_cool": "Гореща вода и охлаждане",
-                            "hotwater_heat": "Гореща вода и отопление"
+                            "hotwater_heat": "Гореща вода и отопление",
+                            "hotwater_auto": "Гореща вода и автоматично"
                         }
                     }
                 }

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

@@ -767,10 +767,12 @@
                         "state": {
                             "heat": "Escalfament",
                             "cool": "Refredament",
+                            "auto": "Automàtic",
                             "off": "Apagat",
                             "hotwater": "Aigua calenta",
                             "hotwater_cool": "Aigua calenta i refredament",
-                            "hotwater_heat": "Aigua calenta i escalfament"
+                            "hotwater_heat": "Aigua calenta i escalfament",
+                            "hotwater_auto": "Aigua calenta i automàtic"
                         }
                     }
                 }

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

@@ -767,10 +767,12 @@
                         "state": {
                             "heat": "Ohřátí",
                             "cool": "Chlazení",
+                            "auto": "Auto",
                             "off": "Vypnuto",
                             "hotwater": "Horká voda",
                             "hotwater_cool": "Horká voda chlazení",
-                            "hotwater_heat": "Horká voda ohřátí"
+                            "hotwater_heat": "Horká voda ohřátí",
+                            "hotwater_auto": "Horká voda auto"
                         }
                     }
                 }

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

@@ -767,10 +767,12 @@
                         "state": {
                             "heat": "Heizen",
                             "cool": "Kühlen",
+                            "auto": "Auto",
                             "off": "Aus",
                             "hotwater": "Warmwasser",
                             "hotwater_cool": "Warmwasser Kühlen",
-                            "hotwater_heat": "Warmwasser Heizen"
+                            "hotwater_heat": "Warmwasser Heizen",
+                            "hotwater_auto": "Warmwasser Auto"
                         }
                     }
                 }

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

@@ -767,10 +767,12 @@
                         "state": {
                             "heat": "Θέρμανση",
                             "cool": "Ψύξη",
+                            "auto": "Αυτόματο",
                             "off": "Απενεργοποίηση",
                             "hotwater": "Ζεστό νερό",
                             "hotwater_cool": "Ζεστό νερό και ψύξη",
-                            "hotwater_heat": "Ζεστό νερό και θέρμανση"
+                            "hotwater_heat": "Ζεστό νερό και θέρμανση",
+                            "hotwater_auto": "Αυτόματο ζεστό νερό"
                         }
                     }
                 }

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

@@ -768,9 +768,11 @@
                             "off": "Off",
                             "heat": "Heat",
                             "cool": "Cool",
+                            "auto": "Auto",
                             "hotwater": "Hot water",
                             "hotwater_cool": "Hot water & Cool",
-                            "hotwater_heat": "Hot water & Heat"
+                            "hotwater_heat": "Hot water & Heat",
+                            "hotwater_auto": "Hot water & Auto"
                         }
                     }
                 }

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

@@ -767,10 +767,12 @@
                         "state": {
                             "heat": "Calor",
                             "cool": "Frío",
+                            "auto": "Automático",
                             "off": "Apagar",
                             "hotwater": "Agua caliente",
                             "hotwater_cool": "Agua caliente y frío",
-                            "hotwater_heat": "Agua caliente y calor"
+                            "hotwater_heat": "Agua caliente y calor",
+                            "hotwater_auto": "Agua caliente y automático"
                         }
                     }
                 }

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

@@ -767,10 +767,12 @@
                         "state": {
                             "heat": "Chauffage",
                             "cool": "Refroidissement",
+                            "auto": "Auto",
                             "off": "Éteint",
                             "hotwater": "Eau chaude",
                             "hotwater_cool": "Eau chaude et refroidissement",
-                            "hotwater_heat": "Eau chaude et chauffage"
+                            "hotwater_heat": "Eau chaude et chauffage",
+                            "hotwater_auto": "Eau chaude et auto"
                         }
                     }
                 }

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

@@ -768,10 +768,12 @@
                         "state": {
                             "heat": "Fűtés",
                             "cool": "Hűtés",
+                            "auto": "Auto",
                             "off": "Ki",
                             "hotwater": "Meleg víz",
                             "hotwater_cool": "Meleg víz és hűtés",
-                            "hotwater_heat": "Meleg víz és fűtés"
+                            "hotwater_heat": "Meleg víz és fűtés",
+                            "hotwater_auto": "Meleg víz és automatikus"
                         }
                     }
                 }

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

@@ -767,10 +767,12 @@
                         "state": {
                             "heat": "Pemanas",
                             "cool": "Pendingin",
+                            "auto": "Otomatis",
                             "off": "Mati",
                             "hotwater": "Air panas",
                             "hotwater_cool": "Pendingin air panas",
-                            "hotwater_heat": "Pemanas air panas"
+                            "hotwater_heat": "Pemanas air panas",
+                            "hotwater_auto": "Otomatis air panas"
                         }
                     }
                 }

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

@@ -768,10 +768,12 @@
                         "state": {
                             "heat": "Riscaldamento",
                             "cool": "Raffreddamento",
+                            "auto": "Auto",
                             "off": "Spento",
                             "hotwater": "Acqua calda",
                             "hotwater_cool": "Acqua calda e raffreddamento",
-                            "hotwater_heat": "Acqua calda e riscaldamento"
+                            "hotwater_heat": "Acqua calda e riscaldamento",
+                            "hotwater_auto": "Acqua calda e auto"
                         }
                     }
                 }

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

@@ -767,10 +767,12 @@
                         "state": {
                             "heat": "加熱",
                             "cool": "冷却",
+                            "auto": "自動",
                             "off": "オフ",
                             "hotwater": "給湯",
                             "hotwater_cool": "給湯冷却",
-                            "hotwater_heat": "給湯加熱"
+                            "hotwater_heat": "給湯加熱",
+                            "hotwater_auto": "給湯自動"
                         }
                     }
                 }

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

@@ -768,10 +768,12 @@
                         "state": {
                             "heat": "Varm",
                             "cool": "Kald",
+                            "auto": "Auto",
                             "off": "Av",
                             "hotwater": "Varmt vann",
                             "hotwater_cool": "Varmt vann og kald",
-                            "hotwater_heat": "Varmt vann og varmt"
+                            "hotwater_heat": "Varmt vann og varmt",
+                            "hotwater_auto": "Varmt vann og auto"
                         }
                     }
                 }

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

@@ -768,10 +768,12 @@
                         "state": {
                             "heat": "Ogrzewanie",
                             "cool": "Chłodzenie",
+                            "auto": "Auto",
                             "off": "Wyłączony",
                             "hotwater": "Podgrzewanie wody",
                             "hotwater_cool": "Podgrzewanie wody i chłodzenie",
-                            "hotwater_heat": "Podgrzewanie wody i ogrzewanie"
+                            "hotwater_heat": "Podgrzewanie wody i ogrzewanie",
+                            "hotwater_auto": "Podgrzewanie wody i auto"
                         }
                     }
                 }

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

@@ -767,10 +767,12 @@
                         "state": {
                             "heat": "Aquecimento",
                             "cool": "Resfriamento",
+                            "auto": "Automático",
                             "off": "Desligado",
                             "hotwater": "Água quente",
                             "hotwater_cool": "Água quente e resfriamento",
-                            "hotwater_heat": "Aquecimento de água quente"
+                            "hotwater_heat": "Aquecimento de água quente",
+                            "hotwater_auto": "Água quente automática"
                         }
                     }
                 }

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

@@ -767,10 +767,12 @@
                         "state": {
                             "heat": "Нагрев",
                             "cool": "Охлаждение",
+                            "auto": "Авто",
                             "off": "Выкл",
                             "hotwater": "Горячая вода",
                             "hotwater_cool": "Горячая вода и охлаждение",
-                            "hotwater_heat": "Горячая вода и нагрев"
+                            "hotwater_heat": "Горячая вода и нагрев",
+                            "hotwater_auto": "Горячая вода и авто"
                         }
                     }
                 }

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

@@ -770,10 +770,12 @@
                         "state": {
                             "heat": "Нагрівання",
                             "cool": "Охолодження",
+                            "auto": "Авто",
                             "off": "Вимк",
                             "hotwater": "Гаряча вода",
                             "hotwater_cool": "Гаряча вода та охолодження",
-                            "hotwater_heat": "Гаряча вода та нагрівання"
+                            "hotwater_heat": "Гаряча вода та нагрівання",
+                            "hotwater_auto": "Гаряча вода та авто"
                         }
                     }
                 }

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

@@ -770,10 +770,12 @@
                         "state": {
                             "heat": "گرم",
                             "cool": "ٹھنڈا",
+                            "auto": "خود کار",
                             "off": "آف",
                             "hotwater": "گرم پانی",
                             "hotwater_cool": "گرم پانی اور ٹھنڈا",
-                            "hotwater_heat": "گرم پانی اور گرم"
+                            "hotwater_heat": "گرم پانی اور گرم",
+                            "hotwater_auto": "گرم پانی اور خود کار"
                         }
                     }
                 }

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

@@ -767,10 +767,12 @@
                         "state": {
                             "heat": "加热",
                             "cool": "制冷",
+                            "auto": "自动",
                             "off": "关闭",
                             "hotwater": "热水",
                             "hotwater_cool": "热水制冷",
-                            "hotwater_heat": "热水加热"
+                            "hotwater_heat": "热水加热",
+                            "hotwater_auto": "热水自动"
                         }
                     }
                 }

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

@@ -768,10 +768,12 @@
                         "state": {
                             "heat": "加熱",
                             "cool": "冷卻",
+                            "auto": "自動",
                             "off": "關",
                             "hotwater": "熱水",
                             "hotwater_cool": "熱水冷卻",
-                            "hotwater_heat": "熱水加熱"
+                            "hotwater_heat": "熱水加熱",
+                            "hotwater_auto": "熱水自動"
                         }
                     }
                 }