Quellcode durchsuchen

feat!(devices): add translations for uncovered light_mode selects

Issue #1708

No migrations from old values possible.
Jason Rumney vor 1 Tag
Ursprung
Commit
25475f9178
27 geänderte Dateien mit 241 neuen und 33 gelöschten Zeilen
  1. 2 2
      custom_components/tuya_local/devices/asahom_outdoor_rgbcw_lights.yaml
  2. 5 4
      custom_components/tuya_local/devices/dhcsk03w_dehumidifier.yaml
  3. 2 2
      custom_components/tuya_local/devices/loycco_sound_nightlight.yaml
  4. 2 2
      custom_components/tuya_local/devices/tesla_aroma_diffuser.yaml
  5. 10 1
      custom_components/tuya_local/translations/bg.json
  6. 10 1
      custom_components/tuya_local/translations/ca.json
  7. 10 1
      custom_components/tuya_local/translations/cs.json
  8. 10 1
      custom_components/tuya_local/translations/de.json
  9. 10 1
      custom_components/tuya_local/translations/el.json
  10. 10 1
      custom_components/tuya_local/translations/en.json
  11. 10 1
      custom_components/tuya_local/translations/es.json
  12. 10 1
      custom_components/tuya_local/translations/fr.json
  13. 10 1
      custom_components/tuya_local/translations/hu.json
  14. 10 1
      custom_components/tuya_local/translations/id.json
  15. 10 1
      custom_components/tuya_local/translations/it.json
  16. 10 1
      custom_components/tuya_local/translations/ja.json
  17. 10 1
      custom_components/tuya_local/translations/no-NB.json
  18. 10 1
      custom_components/tuya_local/translations/pl.json
  19. 10 1
      custom_components/tuya_local/translations/pt-BR.json
  20. 10 1
      custom_components/tuya_local/translations/pt-PT.json
  21. 10 1
      custom_components/tuya_local/translations/ro.json
  22. 10 1
      custom_components/tuya_local/translations/ru.json
  23. 10 1
      custom_components/tuya_local/translations/sv.json
  24. 10 1
      custom_components/tuya_local/translations/uk.json
  25. 10 1
      custom_components/tuya_local/translations/ur.json
  26. 10 1
      custom_components/tuya_local/translations/zh-Hans.json
  27. 10 1
      custom_components/tuya_local/translations/zh-Hant.json

+ 2 - 2
custom_components/tuya_local/devices/asahom_outdoor_rgbcw_lights.yaml

@@ -154,9 +154,9 @@ entities:
         name: option
         mapping:
           - dps_val: color
-            value: Color
+            value: color
           - dps_val: fav
-            value: Favorite
+            value: favorite
   - entity: switch
     name: Color sync
     category: config

+ 5 - 4
custom_components/tuya_local/devices/DH-CSK03W_dehumidifier.yaml → custom_components/tuya_local/devices/dhcsk03w_dehumidifier.yaml

@@ -1,4 +1,5 @@
 name: Dehumidifier
+legacy_type: DH-CSK03W_dehumidifier
 entities:
   - entity: humidifier
     class: dehumidifier
@@ -62,13 +63,13 @@ entities:
         optional: true
         mapping:
           - dps_val: "ligth_off"
-            value: "Light Off"
+            value: "off"
           - dps_val: "light_mode1"
-            value: "Light mode 1"
+            value: mode_1
           - dps_val: "light_mode2"
-            value: "Light mode 2"
+            value: mode_2
           - dps_val: "light_mode3"
-            value: "Light mode 3"
+            value: mode_3
   - entity: sensor
     class: temperature
     dps:

+ 2 - 2
custom_components/tuya_local/devices/loycco_sound_nightlight.yaml

@@ -63,13 +63,13 @@ entities:
         name: option
         mapping:
           - dps_val: breath
-            value: Breathing
+            value: breathe
           - dps_val: light_on
             value: "on"
           - dps_val: light_off
             value: "off"
           - dps_val: change
-            value: Random
+            value: random
   - entity: siren
     name: Sound
     icon: "mdi:music"

+ 2 - 2
custom_components/tuya_local/devices/tesla_aroma_diffuser.yaml

@@ -119,6 +119,6 @@ entities:
         name: option
         mapping:
           - dps_val: "1"
-            value: Multicolor
+            value: multi_color
           - dps_val: "2"
-            value: Chosen color
+            value: custom

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

@@ -714,7 +714,16 @@
                     "state": "Състояние",
                     "locator": "Локатор",
                     "auto": "Автоматично",
-                    "flash": "Флаш"
+                    "flash": "Флаш",
+                    "breathe": "Дишане",
+                    "random": "Случайно",
+                    "color": "Цвят",
+                    "favorite": "Любим",
+                    "multi_color": "Многоцветен",
+                    "custom": "Потребителски",
+                    "mode_1": "Режим 1",
+                    "mode_2": "Режим 2",
+                    "mode_3": "Режим 3"
                 }
             },
             "mopping": {

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

@@ -713,7 +713,16 @@
                     "state": "Estat",
                     "locator": "Localitzador",
                     "auto": "Automàtic",
-                    "flash": "Destell"
+                    "flash": "Destell",
+                    "breathe": "Respiració",
+                    "random": "Aleatori",
+                    "color": "Color",
+                    "favorite": "Preferit",
+                    "multi_color": "Multicolor",
+                    "custom": "Personalitzat",
+                    "mode_1": "Mode 1",
+                    "mode_2": "Mode 2",
+                    "mode_3": "Mode 3"
                 }
             },
             "mopping": {

+ 10 - 1
custom_components/tuya_local/translations/cs.json

@@ -713,7 +713,16 @@
                     "state": "Stav",
                     "locator": "Lokalizátor",
                     "auto": "Auto",
-                    "flash": "Blesk"
+                    "flash": "Blesk",
+                    "breathe": "Dýchat",
+                    "random": "Náhodný",
+                    "color": "Barva",
+                    "favorite": "Oblíbený",
+                    "multi_color": "Vícebarevný",
+                    "custom": "Vlastní",
+                    "mode_1": "Režim 1",
+                    "mode_2": "Režim 2",
+                    "mode_3": "Režim 3"
                 }
             },
             "mopping": {

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

@@ -713,7 +713,16 @@
                     "state": "Zustand",
                     "locator": "Locator",
                     "auto": "Auto",
-                    "flash": "Blitz"
+                    "flash": "Blitz",
+                    "breathe": "Atmen",
+                    "random": "Zufällig",
+                    "color": "Farbe",
+                    "favorite": "Favorit",
+                    "multi_color": "Mehrfarbig",
+                    "custom": "Benutzerdefiniert",
+                    "mode_1": "Modus 1",
+                    "mode_2": "Modus 2",
+                    "mode_3": "Modus 3"
                 }
             },
             "mopping": {

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

@@ -713,7 +713,16 @@
                     "state": "Κατάσταση",
                     "locator": "Εντοπισμός",
                     "auto": "Αυτόματο",
-                    "flash": "Φλας"
+                    "flash": "Φλας",
+                    "breathe": "Αναπνοή",
+                    "random": "Τυχαίο",
+                    "color": "Χρώμα",
+                    "favorite": "Αγαπημένο",
+                    "multi_color": "Πολύχρωμο",
+                    "custom": "Προσαρμοσμένο",
+                    "mode_1": "Λειτουργία 1",
+                    "mode_2": "Λειτουργία 2",
+                    "mode_3": "Λειτουργία 3"
                 }
             },
             "mopping": {

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

@@ -713,7 +713,16 @@
                     "state": "State",
                     "locator": "Locator",
                     "auto": "Auto",
-                    "flash": "Flash"
+                    "flash": "Flash",
+                    "breathe": "Breathe",
+                    "random": "Random",
+                    "color": "Color",
+                    "favorite": "Favorite",
+                    "multi_color": "Multi-color",
+                    "custom": "Custom",
+                    "mode_1": "Mode 1",
+                    "mode_2": "Mode 2",
+                    "mode_3": "Mode 3"
                 }
             },
             "mopping": {

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

@@ -713,7 +713,16 @@
                     "state": "Estado",
                     "locator": "Localizador",
                     "auto": "Auto",
-                    "flash": "Destello"
+                    "flash": "Destello",
+                    "breathe": "Respirar",
+                    "random": "Aleatorio",
+                    "color": "Color",
+                    "favorite": "Favorito",
+                    "multi_color": "Multicolor",
+                    "custom": "Personalizado",
+                    "mode_1": "Modo 1",
+                    "mode_2": "Modo 2",
+                    "mode_3": "Modo 3"
                 }
             },
             "mopping": {

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

@@ -713,7 +713,16 @@
                     "state": "État",
                     "locator": "Localisateur",
                     "auto": "Auto",
-                    "flash": "Flash"
+                    "flash": "Flash",
+                    "breathe": "Respirer",
+                    "random": "Aléatoire",
+                    "color": "Couleur",
+                    "favorite": "Favori",
+                    "multi_color": "Multi-couleur",
+                    "custom": "Personnalisé",
+                    "mode_1": "Mode 1",
+                    "mode_2": "Mode 2",
+                    "mode_3": "Mode 3"
                 }
             },
             "mopping": {

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

@@ -713,7 +713,16 @@
                     "state": "Állapot",
                     "locator": "Helymeghatározó",
                     "auto": "Auto",
-                    "flash": "Villogás"
+                    "flash": "Villogás",
+                    "breathe": "Lélegzés",
+                    "random": "Véletlenszerű",
+                    "color": "Szín",
+                    "favorite": "Kedvenc",
+                    "multi_color": "Többszínű",
+                    "custom": "Egyéni",
+                    "mode_1": "Mód 1",
+                    "mode_2": "Mód 2",
+                    "mode_3": "Mód 3"
                 }
             },
             "mopping": {

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

@@ -713,7 +713,16 @@
                     "state": "Status",
                     "locator": "Penanda",
                     "auto": "Otomatis",
-                    "flash": "Kedip"
+                    "flash": "Kedip",
+                    "breathe": "Napas",
+                    "random": "Acak",
+                    "color": "Warna",
+                    "favorite": "Favorit",
+                    "multi_color": "Multi warna",
+                    "custom": "Kustom",
+                    "mode_1": "Mode 1",
+                    "mode_2": "Mode 2",
+                    "mode_3": "Mode 3"
                 }
             },
             "mopping": {

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

@@ -713,7 +713,16 @@
                     "state": "Stato",
                     "locator": "Localizzatore",
                     "auto": "Auto",
-                    "flash": "Flash"
+                    "flash": "Flash",
+                    "breathe": "Respira",
+                    "random": "Casuale",
+                    "color": "Colore",
+                    "favorite": "Preferito",
+                    "multi_color": "Multicolore",
+                    "custom": "Personalizzato",
+                    "mode_1": "Modalità 1",
+                    "mode_2": "Modalità 2",
+                    "mode_3": "Modalità 3"
                 }
             },
             "mopping": {

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

@@ -713,7 +713,16 @@
                     "state": "状態",
                     "locator": "ロケーター",
                     "auto": "自動",
-                    "flash": "フラッシュ"
+                    "flash": "フラッシュ",
+                    "breathe": "ブリーズ",
+                    "random": "ランダム",
+                    "color": "カラー",
+                    "favorite": "お気に入り",
+                    "multi_color": "マルチカラー",
+                    "custom": "カスタム",
+                    "mode_1": "モード 1",
+                    "mode_2": "モード 2",
+                    "mode_3": "モード 3"
                 }
             },
             "mopping": {

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

@@ -713,7 +713,16 @@
                     "state": "Tilstand",
                     "locator": "Lokaliser",
                     "auto": "Auto",
-                    "flash": "Blinke"
+                    "flash": "Blinke",
+                    "breathe": "Puste",
+                    "random": "Tilfeldig",
+                    "color": "Farge",
+                    "favorite": "Favoritt",
+                    "multi_color": "Flerfarget",
+                    "custom": "Egendefinert",
+                    "mode_1": "Modus 1",
+                    "mode_2": "Modus 2",
+                    "mode_3": "Modus 3"
                 }
             },
             "mopping": {

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

@@ -713,7 +713,16 @@
                     "state": "Stan",
                     "locator": "Lokalizator",
                     "auto": "Auto",
-                    "flash": "Błysk"
+                    "flash": "Błysk",
+                    "breathe": "Oddychanie",
+                    "random": "Losowy",
+                    "color": "Kolor",
+                    "favorite": "Ulubiony",
+                    "multi_color": "Wielokolorowy",
+                    "custom": "Niestandardowy",
+                    "mode_1": "Tryb 1",
+                    "mode_2": "Tryb 2",
+                    "mode_3": "Tryb 3"
                 }
             },
             "mopping": {

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

@@ -713,7 +713,16 @@
                     "state": "Estado",
                     "locator": "Localizador",
                     "auto": "Automático",
-                    "flash": "Flash"
+                    "flash": "Flash",
+                    "breathe": "Respirar",
+                    "random": "Aleatório",
+                    "color": "Cor",
+                    "favorite": "Favorito",
+                    "multi_color": "Multicolorido",
+                    "custom": "Personalizado",
+                    "mode_1": "Modo 1",
+                    "mode_2": "Modo 2",
+                    "mode_3": "Modo 3"
                 }
             },
             "mopping": {

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

@@ -713,7 +713,16 @@
                     "state": "Estado",
                     "locator": "Localizador",
                     "auto": "Automático",
-                    "flash": "Flash"
+                    "flash": "Flash",
+                    "breathe": "Respirar",
+                    "random": "Aleatório",
+                    "color": "Cor",
+                    "favorite": "Favorito",
+                    "multi_color": "Multicolorido",
+                    "custom": "Personalizado",
+                    "mode_1": "Modo 1",
+                    "mode_2": "Modo 2",
+                    "mode_3": "Modo 3"
                 }
             },
             "mopping": {

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

@@ -713,7 +713,16 @@
                     "state": "Stare",
                     "locator": "Locator",
                     "auto": "Auto",
-                    "flash": "Flash"
+                    "flash": "Flash",
+                    "breathe": "Respirație",
+                    "random": "Aleatoriu",
+                    "color": "Culoare",
+                    "favorite": "Favorit",
+                    "multi_color": "Multicolor",
+                    "custom": "Personalizat",
+                    "mode_1": "Mod 1",
+                    "mode_2": "Mod 2",
+                    "mode_3": "Mod 3"
                 }
             },
             "mopping": {

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

@@ -713,7 +713,16 @@
                     "state": "Состояние",
                     "locator": "Локатор",
                     "auto": "Авто",
-                    "flash": "Мигание"
+                    "flash": "Мигание",
+                    "breathe": "Дыхание",
+                    "random": "Случайный",
+                    "color": "Цвет",
+                    "favorite": "Избранное",
+                    "multi_color": "Многоцветный",
+                    "custom": "Пользовательский",
+                    "mode_1": "Режим 1",
+                    "mode_2": "Режим 2",
+                    "mode_3": "Режим 3"
                 }
             },
             "mopping": {

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

@@ -713,7 +713,16 @@
                     "state": "Läge",
                     "locator": "Lokaliserare",
                     "auto": "Auto",
-                    "flash": "Blinka"
+                    "flash": "Blinka",
+                    "breathe": "Andas",
+                    "random": "Slumpmässig",
+                    "color": "Färg",
+                    "favorite": "Favorit",
+                    "multi_color": "Flerfärg",
+                    "custom": "Anpassad",
+                    "mode_1": "Läge 1",
+                    "mode_2": "Läge 2",
+                    "mode_3": "Läge 3"
                 }
             },
             "mopping": {

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

@@ -713,7 +713,16 @@
                     "state": "Стан",
                     "locator": "Локатор",
                     "auto": "Авто",
-                    "flash": "Спалах"
+                    "flash": "Спалах",
+                    "breathe": "Дихати",
+                    "random": "Випадковий",
+                    "color": "Колір",
+                    "favorite": "Улюблений",
+                    "multi_color": "Багатобарвний",
+                    "custom": "Користувацький",
+                    "mode_1": "Режим 1",
+                    "mode_2": "Режим 2",
+                    "mode_3": "Режим 3"
                 }
             },
             "mopping": {

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

@@ -713,7 +713,16 @@
                     "state": "حالت",
                     "locator": "لوکیٹر",
                     "auto": "خود کار",
-                    "flash": "فلیش"
+                    "flash": "فلیش",
+                    "breathe": "سانس لینا",
+                    "random": "بے ترتیب",
+                    "color": "رنگ",
+                    "favorite": "پسندیدہ",
+                    "multi_color": "کئی رنگ",
+                    "custom": "اپنی مرضی",
+                    "mode_1": "موڈ 1",
+                    "mode_2": "موڈ 2",
+                    "mode_3": "موڈ 3"
                 }
             },
             "mopping": {

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

@@ -713,7 +713,16 @@
                     "state": "状态",
                     "locator": "定位",
                     "auto": "自动",
-                    "flash": "闪烁"
+                    "flash": "闪烁",
+                    "breathe": "呼吸",
+                    "random": "随机",
+                    "color": "颜色",
+                    "favorite": "最爱",
+                    "multi_color": "多色",
+                    "custom": "自定义",
+                    "mode_1": "模式1",
+                    "mode_2": "模式2",
+                    "mode_3": "模式3"
                 }
             },
             "mopping": {

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

@@ -713,7 +713,16 @@
                     "state": "狀態",
                     "locator": "定位",
                     "auto": "自動",
-                    "flash": "閃爍"
+                    "flash": "閃爍",
+                    "breathe": "呼吸",
+                    "random": "隨機",
+                    "color": "顏色",
+                    "favorite": "最愛",
+                    "multi_color": "多色",
+                    "custom": "自訂",
+                    "mode_1": "模式1",
+                    "mode_2": "模式2",
+                    "mode_3": "模式3"
                 }
             },
             "mopping": {