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

feat(rhinoking*): use combo_floor translations

- expand translations to cover air and floor combined heating and cooling
Jason Rumney 1 день назад
Родитель
Сommit
d1667df860
25 измененных файлов с 81 добавлено и 33 удалено
  1. 5 4
      custom_components/tuya_local/devices/rhinoking_3speed_airconditioner.yaml
  2. 7 6
      custom_components/tuya_local/devices/rhinoking_ac_thermostat.yaml
  3. 3 1
      custom_components/tuya_local/translations/bg.json
  4. 3 1
      custom_components/tuya_local/translations/ca.json
  5. 3 1
      custom_components/tuya_local/translations/cz.json
  6. 3 1
      custom_components/tuya_local/translations/de.json
  7. 3 1
      custom_components/tuya_local/translations/el.json
  8. 3 1
      custom_components/tuya_local/translations/en.json
  9. 3 1
      custom_components/tuya_local/translations/es.json
  10. 3 1
      custom_components/tuya_local/translations/fr.json
  11. 3 1
      custom_components/tuya_local/translations/hu.json
  12. 3 1
      custom_components/tuya_local/translations/id.json
  13. 3 1
      custom_components/tuya_local/translations/it.json
  14. 3 1
      custom_components/tuya_local/translations/ja.json
  15. 3 1
      custom_components/tuya_local/translations/no-NB.json
  16. 3 1
      custom_components/tuya_local/translations/pl.json
  17. 3 1
      custom_components/tuya_local/translations/pt-BR.json
  18. 3 1
      custom_components/tuya_local/translations/pt-PT.json
  19. 3 1
      custom_components/tuya_local/translations/ro.json
  20. 3 1
      custom_components/tuya_local/translations/ru.json
  21. 3 1
      custom_components/tuya_local/translations/sv.json
  22. 3 1
      custom_components/tuya_local/translations/uk.json
  23. 3 1
      custom_components/tuya_local/translations/ur.json
  24. 3 1
      custom_components/tuya_local/translations/zh-Hans.json
  25. 3 1
      custom_components/tuya_local/translations/zh-Hant.json

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

@@ -8,6 +8,7 @@ products:
     model: XNW-AC
 entities:
   - entity: climate
+    translation_key: combo_floor
     dps:
       - id: 1
         type: boolean
@@ -32,13 +33,13 @@ entities:
         name: preset_mode
         mapping:
           - dps_val: wind
-            value: Fan only
+            value: fan_only
           - dps_val: cold
-            value: Cooling
+            value: cool
           - dps_val: hot
-            value: Heating
+            value: heat
           - dps_val: floor_heat
-            value: Floor heating
+            value: floor_heat
       - id: 16
         type: integer
         name: temperature

+ 7 - 6
custom_components/tuya_local/devices/rhinoking_ac_thermostat.yaml

@@ -5,6 +5,7 @@ products:
     model: Smart Thermostat
 entities:
   - entity: climate
+    translation_key: combo_floor
     dps:
       - id: 1
         type: boolean
@@ -36,17 +37,17 @@ entities:
         name: preset_mode
         mapping:
           - dps_val: wind
-            value: Fan only
+            value: fan_only
           - dps_val: cold
-            value: Cooling
+            value: cool
           - dps_val: hot
-            value: Heating
+            value: heat
           - dps_val: floor_heat
-            value: Floor heating
+            value: floor_heat
           - dps_val: heat_floorheat
-            value: Heating + floor heating
+            value: air_floor_heat
           - dps_val: cold_floorcold
-            value: Cooling + floor cooling
+            value: air_floor_cool
       - id: 16
         type: integer
         name: temperature

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

@@ -310,7 +310,9 @@
                             "fan_only": "Вентилатор",
                             "heat": "Топлинен въздух",
                             "floor_cool": "Хладен под",
-                            "floor_heat": "Топъл под"
+                            "floor_heat": "Топъл под",
+                            "air_floor_cool": "Въздушно и подово охлаждане",
+                            "air_floor_heat": "Въздушно и подово отопление"
                         }
                     }
                 }

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

@@ -310,7 +310,9 @@
                             "fan_only": "Ventilador",
                             "heat": "Aire calent",
                             "floor_cool": "Terra fred",
-                            "floor_heat": "Terra calent"
+                            "floor_heat": "Terra calent",
+                            "air_floor_cool": "Aire i terra freds",
+                            "air_floor_heat": "Aire i terra calents",
                         }
                     }
                 }

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

@@ -310,7 +310,9 @@
                             "fan_only": "Ventilátor",
                             "heat": "Ohřejte vzduch",
                             "floor_cool": "Chladná podlaha",
-                            "floor_heat": "Tepelná podlaha"
+                            "floor_heat": "Tepelná podlaha",
+                            "air_floor_cool": "Chladný vzduch a podlaha",
+                            "air_floor_heat": "Ohřejte vzduch a podlahu"
                         }
                     }
                 }

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

@@ -310,7 +310,9 @@
                             "fan_only": "Ventilator",
                             "heat": "Luft erwärmen",
                             "floor_cool": "Boden kühlen",
-                            "floor_heat": "Boden heizen"
+                            "floor_heat": "Boden heizen",
+                            "air_floor_cool": "Luft und Boden kühlen",
+                            "air_floor_heat": "Luft und Boden heizen"
                         }
                     }
                 }

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

@@ -310,7 +310,9 @@
                             "fan_only": "Ανεμιστήρας",
                             "heat": "Θέρμανση αέρα",
                             "floor_cool": "Ψύξη πατώματος",
-                            "floor_heat": "Θέρμανση πατώματος"
+                            "floor_heat": "Θέρμανση πατώματος",
+                            "air_floor_cool": "Ψύξη αέρα και πατώματος",
+                            "air_floor_heat": "Θέρμανση αέρα και πατώματος"
                         }
                     }
                 }

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

@@ -310,7 +310,9 @@
                             "fan_only": "Fan",
                             "heat": "Heat air",
                             "floor_cool": "Cool floor",
-                            "floor_heat": "Heat floor"
+                            "floor_heat": "Heat floor",
+                            "air_floor_cool": "Cool air & floor",
+                            "air_floor_heat": "Heat air & floor"
                         }
                     }
                 }

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

@@ -310,7 +310,9 @@
                             "fan_only": "Ventilador",
                             "heat": "Calentar aire",
                             "floor_cool": "Piso fresco",
-                            "floor_heat": "Piso caliente"
+                            "floor_heat": "Piso caliente",
+                            "air_floor_cool": "Aire y piso fresco",
+                            "air_floor_heat": "Aire y piso caliente"
                         }
                     }
                 }

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

@@ -310,7 +310,9 @@
                             "fan_only": "Ventilation",
                             "heat": "Air Chaud",
                             "floor_cool": "Sol froid",
-                            "floor_heat": "Sol chaud"
+                            "floor_heat": "Sol chaud",
+                            "air_floor_cool": "Air et sol froid",
+                            "air_floor_heat": "Air et sol chaud"
                         }
                     }
                 }

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

@@ -310,7 +310,9 @@
                             "fan_only": "Ventilátor",
                             "heat": "Meleg levegő",
                             "floor_cool": "Hűvös padló",
-                            "floor_heat": "Meleg padló"
+                            "floor_heat": "Meleg padló",
+                            "air_floor_cool": "Hűvös levegő és padló",
+                            "air_floor_heat": "Meleg levegő és padló"
                         }
                     }
                 }

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

@@ -310,7 +310,9 @@
                             "fan_only": "Hanya kipas",
                             "heat": "Pemanas udara",
                             "floor_cool": "Pendingin lantai",
-                            "floor_heat": "Pemanas lantai"
+                            "floor_heat": "Pemanas lantai",
+                            "air_floor_cool": "Pendingin udara dan lantai",
+                            "air_floor_heat": "Pemanas udara dan lantai"
                         }
                     }
                 }

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

@@ -310,7 +310,9 @@
                             "fan_only": "Solo ventola",
                             "heat": "Aria riscaldata",
                             "floor_cool": "Pavimento fresco",
-                            "floor_heat": "Pavimento riscaldato"
+                            "floor_heat": "Pavimento riscaldato",
+                            "air_floor_cool": "Aria e pavimento freschi",
+                            "air_floor_heat": "Aria e pavimento riscaldati"
                         }
                     }
                 }

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

@@ -310,7 +310,9 @@
                             "fan_only": "ファン",
                             "heat": "温風",
                             "floor_cool": "冷却床",
-                            "floor_heat": "床暖房"
+                            "floor_heat": "床暖房",
+                            "air_floor_cool": "空気と床冷却",
+                            "air_floor_heat": "空気と床暖房"
                         }
                     }
                 }

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

@@ -310,7 +310,9 @@
                             "fan_only": "Vifte",
                             "heat": "Varm luft",
                             "floor_cool": "Kjøl gulv",
-                            "floor_heat": "Varm gulv"
+                            "floor_heat": "Varm gulv",
+                            "air_floor_cool": "Kjølig luft + gulv",
+                            "air_floor_heat": "Varm luft + gulv"
                         }
                     }
                 }

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

@@ -310,7 +310,9 @@
                             "fan_only": "Wiatrak",
                             "heat": "Gorące powietrze",
                             "floor_cool": "Chłodzenie podłogi",
-                            "floor_heat": "Ogrzewanie podłogi"
+                            "floor_heat": "Ogrzewanie podłogi",
+                            "air_floor_cool": "Chłodzenie powietrza i podłogi",
+                            "air_floor_heat": "Ogrzewanie powietrza i podłogi"
                         }
                     }
                 }

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

@@ -310,7 +310,9 @@
                             "fan_only": "Ventilador",
                             "heat": "Ar aquecido",
                             "floor_cool": "Chão fresco",
-                            "floor_heat": "Chão aquecido"
+                            "floor_heat": "Chão aquecido",
+                            "air_floor_cool": "Ar e chão frescos",
+                            "air_floor_heat": "Ar e chão aquecidos"
                         }
                     }
                 }

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

@@ -310,7 +310,9 @@
                             "fan_only": "Ventilador",
                             "heat": "Ar aquecido",
                             "floor_cool": "Chão fresco",
-                            "floor_heat": "Chão aquecido"
+                            "floor_heat": "Chão aquecido",
+                            "air_floor_cool": "Ar e chão frescos",
+                            "air_floor_heat": "Ar e chão aquecidos"
                         }
                     }
                 }

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

@@ -310,7 +310,9 @@
                             "fan_only": "Ventilator",
                             "heat": "Aer cald",
                             "floor_cool": "Răcire podea",
-                            "floor_heat": "Încălzire podea"
+                            "floor_heat": "Încălzire podea",
+                            "air_floor_cool": "Răcire aer + podea",
+                            "air_floor_heat": "Încălzire aer + podea"
                         }
                     }
                 }

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

@@ -310,7 +310,9 @@
                             "fan_only": "Вентилятор",
                             "heat": "Теплый воздух",
                             "floor_cool": "Прохладный пол",
-                            "floor_heat": "Теплый пол"
+                            "floor_heat": "Теплый пол",
+                            "air_floor_cool": "Прохладный воздух и пол",
+                            "air_floor_heat": "Теплый воздух и пол"
                         }
                     }
                 }

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

@@ -310,7 +310,9 @@
                             "fan_only": "Fläkt",
                             "heat": "Värmeluft",
                             "floor_cool": "Kylgolv",
-                            "floor_heat": "Värmegolv"
+                            "floor_heat": "Värmegolv",
+                            "air_floor_cool": "Kylning luft + golv",
+                            "air_floor_heat": "Värme luft + golv"
                         }
                     }
                 }

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

@@ -310,7 +310,9 @@
                             "fan_only": "Вентилятор",
                             "heat": "Підігріте повітря",
                             "floor_cool": "Прохолодна підлога",
-                            "floor_heat": "Тепла підлога"
+                            "floor_heat": "Тепла підлога",
+                            "air_floor_cool": "Прохолодне повітря та підлога",
+                            "air_floor_heat": "Підігріте повітря та підлога"
                         }
                     }
                 }

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

@@ -310,7 +310,9 @@
                             "fan_only": "پنکھا",
                             "heat": "گرم ہوا",
                             "floor_cool": "ٹھنڈا فرش",
-                            "floor_heat": "گرم فرش"
+                            "floor_heat": "گرم فرش",
+                            "air_floor_cool": "ہوا اور فرش ٹھنڈا",
+                            "air_floor_heat": "ہوا اور فرش گرم"
                         }
                     }
                 }

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

@@ -310,7 +310,9 @@
                             "fan_only": "风扇",
                             "heat": "热风",
                             "floor_cool": "冷地板",
-                            "floor_heat": "热地板"
+                            "floor_heat": "热地板",
+                            "air_floor_cool": "空气冷却",
+                            "air_floor_heat": "空气加热"
                         }
                     }
                 }

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

@@ -310,7 +310,9 @@
                             "fan_only": "風扇",
                             "heat": "熱風",
                             "floor_cool": "冷地板",
-                            "floor_heat": "熱地板"
+                            "floor_heat": "熱地板",
+                            "air_floor_cool": "冷風+冷地板",
+                            "air_floor_heat": "熱風+熱地板"
                         }
                     }
                 }