From 2e056aa8d6c162fdc57d747a8ba7dba383410228 Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Mon, 10 Jul 2023 00:19:43 +0200 Subject: [PATCH] Update icons/translations --- custom_components/hon/binary_sensor.py | 35 ++++++++++++--- custom_components/hon/number.py | 7 ++- custom_components/hon/select.py | 3 +- custom_components/hon/switch.py | 6 ++- custom_components/hon/translations/cs.json | 50 ++++++++++++++++++++-- custom_components/hon/translations/de.json | 50 ++++++++++++++++++++-- custom_components/hon/translations/el.json | 50 ++++++++++++++++++++-- custom_components/hon/translations/en.json | 50 ++++++++++++++++++++-- custom_components/hon/translations/es.json | 50 ++++++++++++++++++++-- custom_components/hon/translations/fr.json | 50 ++++++++++++++++++++-- custom_components/hon/translations/he.json | 50 ++++++++++++++++++++-- custom_components/hon/translations/hr.json | 50 ++++++++++++++++++++-- custom_components/hon/translations/it.json | 50 ++++++++++++++++++++-- custom_components/hon/translations/nl.json | 50 ++++++++++++++++++++-- custom_components/hon/translations/pl.json | 50 ++++++++++++++++++++-- custom_components/hon/translations/pt.json | 50 ++++++++++++++++++++-- custom_components/hon/translations/ro.json | 50 ++++++++++++++++++++-- custom_components/hon/translations/ru.json | 50 ++++++++++++++++++++-- custom_components/hon/translations/sk.json | 50 ++++++++++++++++++++-- custom_components/hon/translations/sl.json | 50 ++++++++++++++++++++-- custom_components/hon/translations/sr.json | 50 ++++++++++++++++++++-- custom_components/hon/translations/tr.json | 50 ++++++++++++++++++++-- custom_components/hon/translations/zh.json | 50 ++++++++++++++++++++-- scripts/translation_keys.py | 25 ++++++++++- 24 files changed, 956 insertions(+), 70 deletions(-) diff --git a/custom_components/hon/binary_sensor.py b/custom_components/hon/binary_sensor.py index af9bcac..df61f0c 100644 --- a/custom_components/hon/binary_sensor.py +++ b/custom_components/hon/binary_sensor.py @@ -52,22 +52,40 @@ BINARY_SENSORS: dict[str, tuple[HonBinarySensorEntityDescription, ...]] = { translation_key="door_open", ), HonBinarySensorEntityDescription( - key="startProgram.prewash", name="Pre Wash", translation_key="prewash" + key="prewash", + icon="mdi:tshirt-crew", + name="Pre Wash", + translation_key="prewash", ), HonBinarySensorEntityDescription( - key="extraRinse1", name="Extra Rinse 1", translation_key="extra_rinse_1" + key="extraRinse1", + icon="mdi:numeric-1-box-multiple-outline", + name="Extra Rinse 1", + translation_key="extra_rinse_1", ), HonBinarySensorEntityDescription( - key="extraRinse2", name="Extra Rinse 2", translation_key="extra_rinse_2" + key="extraRinse2", + icon="mdi:numeric-2-box-multiple-outline", + name="Extra Rinse 2", + translation_key="extra_rinse_2", ), HonBinarySensorEntityDescription( - key="extraRinse3", name="Extra Rinse 3", translation_key="extra_rinse_3" + key="extraRinse3", + icon="mdi:numeric-3-box-multiple-outline", + name="Extra Rinse 3", + translation_key="extra_rinse_3", ), HonBinarySensorEntityDescription( - key="goodNight", name="Good Night Mode", translation_key="good_night" + key="goodNight", + icon="mdi:weather-night", + name="Good Night Mode", + translation_key="good_night", ), HonBinarySensorEntityDescription( - key="acquaplus", name="Acqua Plus", translation_key="acqua_plus" + key="acquaplus", + icon="mdi:water-plus", + name="Acqua Plus", + translation_key="acqua_plus", ), ), "TD": ( @@ -86,7 +104,10 @@ BINARY_SENSORS: dict[str, tuple[HonBinarySensorEntityDescription, ...]] = { translation_key="door_open", ), HonBinarySensorEntityDescription( - key="anticrease", name="Anti-Crease", translation_key="anti_crease" + key="anticrease", + name="Anti-Crease", + icon="mdi:iron", + translation_key="anti_crease", ), ), "OV": ( diff --git a/custom_components/hon/number.py b/custom_components/hon/number.py index 1008190..fc8d61b 100644 --- a/custom_components/hon/number.py +++ b/custom_components/hon/number.py @@ -166,18 +166,21 @@ NUMBERS: dict[str, tuple[NumberEntityDescription, ...]] = { HonNumberEntityDescription( key="settings.aromaTimeOn", name="Aroma Time On", - icon="mdi:thermometer", + icon="mdi:scent", native_unit_of_measurement=UnitOfTime.SECONDS, + translation_key="aroma_time_on", ), HonNumberEntityDescription( key="settings.aromaTimeOff", name="Aroma Time Off", - icon="mdi:thermometer", + icon="mdi:scent-off", native_unit_of_measurement=UnitOfTime.SECONDS, + translation_key="aroma_time_off", ), HonNumberEntityDescription( key="settings.pollenLevel", name="Pollen Level", + icon="mdi:flower-pollen", translation_key="pollen_level", ), ), diff --git a/custom_components/hon/select.py b/custom_components/hon/select.py index a2d9f8e..7aba016 100644 --- a/custom_components/hon/select.py +++ b/custom_components/hon/select.py @@ -139,11 +139,12 @@ SELECTS = { name="Diffuser Level", option_list=const.AP_DIFFUSER_LEVEL, translation_key="diffuser", + icon="mdi:air-filter", ), HonSelectEntityDescription( key="settings.machMode", name="Mode", - icon="mdi:run", + icon="mdi:play", option_list=const.AP_MACH_MODE, translation_key="mode", ), diff --git a/custom_components/hon/switch.py b/custom_components/hon/switch.py index 8e919fe..4f4c675 100644 --- a/custom_components/hon/switch.py +++ b/custom_components/hon/switch.py @@ -142,13 +142,13 @@ SWITCHES: dict[str, tuple[HonSwitchEntityDescription, ...]] = { HonConfigSwitchEntityDescription( key="startProgram.antiCreaseTime", name="Anti-Crease", - icon="mdi:timer", + icon="mdi:iron", translation_key="anti_crease", ), HonConfigSwitchEntityDescription( key="startProgram.anticrease", name="Anti-Crease", - icon="mdi:timer", + icon="mdi:iron", translation_key="anti_crease", ), ), @@ -253,6 +253,7 @@ SWITCHES: dict[str, tuple[HonSwitchEntityDescription, ...]] = { HonSwitchEntityDescription( key="ecoMode", name="Eco Mode", + icon="mdi:sprout", translation_key="eco_mode", ), HonSwitchEntityDescription( @@ -334,6 +335,7 @@ SWITCHES: dict[str, tuple[HonSwitchEntityDescription, ...]] = { HonSwitchEntityDescription( key="touchToneStatus", name="Touch Tone", + icon="mdi:account-voice", translation_key="touch_tone", ), ), diff --git a/custom_components/hon/translations/cs.json b/custom_components/hon/translations/cs.json index 62da552..6f31cfc 100644 --- a/custom_components/hon/translations/cs.json +++ b/custom_components/hon/translations/cs.json @@ -808,7 +808,13 @@ "name": "Úroveň páry" }, "dirt_level": { - "name": "Míra znečištění" + "name": "Míra znečištění", + "state": { + "little": "Málo", + "normal": "Normální", + "very": "Velmi", + "unknown": "unknown" + } }, "delay_time": { "name": "Odložené spuštění" @@ -860,6 +866,15 @@ }, "voc": { "name": "Plyn (VOC)" + }, + "steam_level": { + "state": { + "no_steam": "Bez páry", + "cotton": "Bavlna", + "delicate": "Jemné", + "synthetic": "Synthetic" + }, + "name": "Úroveň páry" } }, "select": { @@ -1608,10 +1623,33 @@ "name": "Zbývající čas" }, "diffuser": { - "name": "Difuzér" + "name": "Difuzér", + "state": { + "soft": "Mírná", + "mid": "Střední", + "h_biotics": "H-BIOTICS", + "custom": "Přizpůsobit", + "off": "Vypnout" + } }, "mode": { - "name": "Režim" + "name": "Režim", + "state": { + "standby": "Pohotovostní režim", + "sleep": "Spánek", + "auto": "Auto", + "allergens": "Alergeny", + "max": "Max." + } + }, + "steam_level": { + "state": { + "no_steam": "Bez páry", + "cotton": "Bavlna", + "delicate": "Jemné", + "synthetic": "Synthetic" + }, + "name": "Úroveň páry" } }, "switch": { @@ -1857,6 +1895,12 @@ }, "pollen_level": { "name": "Hladina pylu" + }, + "aroma_time_on": { + "name": "Difuzér (ZAPNOUT)" + }, + "aroma_time_off": { + "name": "Difuzér (VYPNOUT)" } }, "climate": { diff --git a/custom_components/hon/translations/de.json b/custom_components/hon/translations/de.json index 6b29423..ab590b0 100644 --- a/custom_components/hon/translations/de.json +++ b/custom_components/hon/translations/de.json @@ -808,7 +808,13 @@ "name": "Dampfstufe" }, "dirt_level": { - "name": "Verschmutzungsgrad" + "name": "Verschmutzungsgrad", + "state": { + "little": "Wenig", + "normal": "Normal", + "very": "Sehr", + "unknown": "unknown" + } }, "delay_time": { "name": "Einschaltverzögerung" @@ -860,6 +866,15 @@ }, "voc": { "name": "Gas (VOC)" + }, + "steam_level": { + "state": { + "no_steam": "Kein Dampf", + "cotton": "Baumwolle", + "delicate": "Feinwäsche", + "synthetic": "Synthetik" + }, + "name": "Dampfstufe" } }, "select": { @@ -1608,10 +1623,33 @@ "name": "Verbleibende Zeit" }, "diffuser": { - "name": "Luftverteiler" + "name": "Luftverteiler", + "state": { + "soft": "Weich", + "mid": "Mittel", + "h_biotics": "H-BIOTICS", + "custom": "Individuelle Anpassung", + "off": "Aus" + } }, "mode": { - "name": "Modus" + "name": "Modus", + "state": { + "standby": "Standby-Modus", + "sleep": "Sleep", + "auto": "Auto", + "allergens": "Allergene", + "max": "Max" + } + }, + "steam_level": { + "state": { + "no_steam": "Kein Dampf", + "cotton": "Baumwolle", + "delicate": "Feinwäsche", + "synthetic": "Synthetik" + }, + "name": "Dampfstufe" } }, "switch": { @@ -1857,6 +1895,12 @@ }, "pollen_level": { "name": "Pollenkonzentration" + }, + "aroma_time_on": { + "name": "Luftverteiler (AN)" + }, + "aroma_time_off": { + "name": "Luftverteiler (AUS)" } }, "climate": { diff --git a/custom_components/hon/translations/el.json b/custom_components/hon/translations/el.json index feefbb9..f65cde0 100644 --- a/custom_components/hon/translations/el.json +++ b/custom_components/hon/translations/el.json @@ -808,7 +808,13 @@ "name": "Επίπεδο ατμού" }, "dirt_level": { - "name": "Επίπεδο βρωμιάς" + "name": "Επίπεδο βρωμιάς", + "state": { + "little": "Λίγη", + "normal": "Κανονική", + "very": "Πολύ", + "unknown": "unknown" + } }, "delay_time": { "name": "Καθυστερημένη έναρξη" @@ -860,6 +866,15 @@ }, "voc": { "name": "Αέριο (VOC)" + }, + "steam_level": { + "state": { + "no_steam": "Χωρίς ατμό", + "cotton": "Βαμβακερό", + "delicate": "Ευαίσθητα", + "synthetic": "Συνθετικά" + }, + "name": "Επίπεδο ατμού" } }, "select": { @@ -1608,10 +1623,33 @@ "name": "Χρόνος που απομένει" }, "diffuser": { - "name": "Διαχύτης" + "name": "Διαχύτης", + "state": { + "soft": "Μαλακό", + "mid": "Μεσαίο", + "h_biotics": "H-BIOTICS", + "custom": "Προσαρμογή", + "off": "Ανενεργό" + } }, "mode": { - "name": "Mode" + "name": "Mode", + "state": { + "standby": "Αναμονή", + "sleep": "Λειτουργία ύπνου", + "auto": "Αυτόματο", + "allergens": "Αλλεργιογόνα", + "max": "Μέγιστο" + } + }, + "steam_level": { + "state": { + "no_steam": "Χωρίς ατμό", + "cotton": "Βαμβακερό", + "delicate": "Ευαίσθητα", + "synthetic": "Συνθετικά" + }, + "name": "Επίπεδο ατμού" } }, "switch": { @@ -1857,6 +1895,12 @@ }, "pollen_level": { "name": "Επίπεδο γύρης" + }, + "aroma_time_on": { + "name": "Μεταδότης διάχυσης (ΕΝΕΡΓΟΠΟΙΗΣΗ)" + }, + "aroma_time_off": { + "name": "Μεταδότης διάχυσης (ΑΠΕΝΕΡΓΟΠΟΙΗΣΗ)" } }, "climate": { diff --git a/custom_components/hon/translations/en.json b/custom_components/hon/translations/en.json index 434ec0b..052c8a9 100644 --- a/custom_components/hon/translations/en.json +++ b/custom_components/hon/translations/en.json @@ -823,7 +823,13 @@ "name": "Steam Level" }, "dirt_level": { - "name": "Dirt level" + "name": "Dirt level", + "state": { + "little": "Little", + "normal": "Normal", + "very": "Very", + "unknown": "unknown" + } }, "delay_time": { "name": "Delay Start" @@ -880,6 +886,15 @@ }, "voc": { "name": "Gas (VOC)" + }, + "steam_level": { + "state": { + "no_steam": "No steam", + "cotton": "Cotton", + "delicate": "Delicate", + "synthetic": "Synthetic" + }, + "name": "Steam Level" } }, "select": { @@ -1635,10 +1650,33 @@ "name": "Time remaining" }, "diffuser": { - "name": "Diffuser" + "name": "Diffuser", + "state": { + "soft": "Soft", + "mid": "Mid", + "h_biotics": "H-BIOTICS", + "custom": "Customise", + "off": "Off" + } }, "mode": { - "name": "Mode" + "name": "Mode", + "state": { + "standby": "Standby", + "sleep": "Sleep", + "auto": "Auto", + "allergens": "Allergens", + "max": "Max" + } + }, + "steam_level": { + "state": { + "no_steam": "No steam", + "cotton": "Cotton", + "delicate": "Delicate", + "synthetic": "Synthetic" + }, + "name": "Steam Level" } }, "switch": { @@ -1884,6 +1922,12 @@ }, "pollen_level": { "name": "Pollen level" + }, + "aroma_time_on": { + "name": "Diffuser (ON)" + }, + "aroma_time_off": { + "name": "Diffuser (OFF)" } }, "climate": { diff --git a/custom_components/hon/translations/es.json b/custom_components/hon/translations/es.json index cd10c97..57548a6 100644 --- a/custom_components/hon/translations/es.json +++ b/custom_components/hon/translations/es.json @@ -808,7 +808,13 @@ "name": "Nivel de vapor" }, "dirt_level": { - "name": "Nivel de suciedad" + "name": "Nivel de suciedad", + "state": { + "little": "Poco", + "normal": "Normal", + "very": "Mucho", + "unknown": "unknown" + } }, "delay_time": { "name": "Inicio Diferido" @@ -860,6 +866,15 @@ }, "voc": { "name": "Gas (COV)" + }, + "steam_level": { + "state": { + "no_steam": "Sin vapor", + "cotton": "Algodón", + "delicate": "Ropa delicada", + "synthetic": "Synthetic" + }, + "name": "Nivel de vapor" } }, "select": { @@ -1608,10 +1623,33 @@ "name": "Tiempo restante" }, "diffuser": { - "name": "Difusor" + "name": "Difusor", + "state": { + "soft": "Suave", + "mid": "Medio", + "h_biotics": "H-BIOTICS", + "custom": "Personalizar", + "off": "Desactivado" + } }, "mode": { - "name": "Modo" + "name": "Modo", + "state": { + "standby": "En espera", + "sleep": "Reposo", + "auto": "Automático", + "allergens": "Alérgenos", + "max": "Máx." + } + }, + "steam_level": { + "state": { + "no_steam": "Sin vapor", + "cotton": "Algodón", + "delicate": "Ropa delicada", + "synthetic": "Synthetic" + }, + "name": "Nivel de vapor" } }, "switch": { @@ -1857,6 +1895,12 @@ }, "pollen_level": { "name": "Nivel de polen" + }, + "aroma_time_on": { + "name": "Difusor (ENCENDIDO)" + }, + "aroma_time_off": { + "name": "Difusor (APAGADO)" } }, "climate": { diff --git a/custom_components/hon/translations/fr.json b/custom_components/hon/translations/fr.json index bce9694..e937f35 100644 --- a/custom_components/hon/translations/fr.json +++ b/custom_components/hon/translations/fr.json @@ -808,7 +808,13 @@ "name": "Niveau de vapeur" }, "dirt_level": { - "name": "Niveau de saleté" + "name": "Niveau de saleté", + "state": { + "little": "Faible", + "normal": "Normal", + "very": "Élevé", + "unknown": "unknown" + } }, "delay_time": { "name": "Démarrage Différé" @@ -860,6 +866,15 @@ }, "voc": { "name": "COV gazeux" + }, + "steam_level": { + "state": { + "no_steam": "Pas de vapeur", + "cotton": "Coton", + "delicate": "Délicats", + "synthetic": "Synthetic" + }, + "name": "Niveau de vapeur" } }, "select": { @@ -1608,10 +1623,33 @@ "name": "Temps restant" }, "diffuser": { - "name": "Diffuseur" + "name": "Diffuseur", + "state": { + "soft": "Doux", + "mid": "Intermédiaire", + "h_biotics": "H-BIOTICS", + "custom": "Personnaliser", + "off": "Arrêt" + } }, "mode": { - "name": "Mode" + "name": "Mode", + "state": { + "standby": "Pause", + "sleep": "Sleep", + "auto": "Automatique", + "allergens": "Allergènes", + "max": "Max" + } + }, + "steam_level": { + "state": { + "no_steam": "Pas de vapeur", + "cotton": "Coton", + "delicate": "Délicats", + "synthetic": "Synthetic" + }, + "name": "Niveau de vapeur" } }, "switch": { @@ -1857,6 +1895,12 @@ }, "pollen_level": { "name": "Niveau de pollen" + }, + "aroma_time_on": { + "name": "Diffuseur (ON)" + }, + "aroma_time_off": { + "name": "Diffuseur (OFF)" } }, "climate": { diff --git a/custom_components/hon/translations/he.json b/custom_components/hon/translations/he.json index 9477caa..115574a 100644 --- a/custom_components/hon/translations/he.json +++ b/custom_components/hon/translations/he.json @@ -364,7 +364,13 @@ "name": "מפלס קיטור" }, "dirt_level": { - "name": "רמת עפר" + "name": "רמת עפר", + "state": { + "little": "קטן", + "normal": "נוֹרמָלִי", + "very": "מאוד", + "unknown": "unknown" + } }, "delay_time": { "name": "Delay Start" @@ -416,6 +422,15 @@ }, "voc": { "name": "Gas (VOC)" + }, + "steam_level": { + "state": { + "no_steam": "אין קיטור", + "cotton": "כותנה", + "delicate": "עָדִין", + "synthetic": "מְלָאכוּתִי" + }, + "name": "מפלס קיטור" } }, "select": { @@ -729,10 +744,33 @@ "name": "זמן שנותר" }, "diffuser": { - "name": "Diffuser" + "name": "Diffuser", + "state": { + "soft": "Soft", + "mid": "Mid", + "h_biotics": "H-BIOTICS", + "custom": "Customise", + "off": "כבוי" + } }, "mode": { - "name": "Mode" + "name": "Mode", + "state": { + "standby": "Standby", + "sleep": "Sleep", + "auto": "Auto", + "allergens": "Allergens", + "max": "Max" + } + }, + "steam_level": { + "state": { + "no_steam": "אין קיטור", + "cotton": "כותנה", + "delicate": "עָדִין", + "synthetic": "מְלָאכוּתִי" + }, + "name": "מפלס קיטור" } }, "switch": { @@ -978,6 +1016,12 @@ }, "pollen_level": { "name": "Pollen level" + }, + "aroma_time_on": { + "name": "Diffuser (ON)" + }, + "aroma_time_off": { + "name": "Diffuser (OFF)" } }, "climate": { diff --git a/custom_components/hon/translations/hr.json b/custom_components/hon/translations/hr.json index 229b28a..01cd213 100644 --- a/custom_components/hon/translations/hr.json +++ b/custom_components/hon/translations/hr.json @@ -808,7 +808,13 @@ "name": "Razina pare" }, "dirt_level": { - "name": "Stupanj zaprljanosti" + "name": "Stupanj zaprljanosti", + "state": { + "little": "Neznatno", + "normal": "Uobičajeno", + "very": "Izuzetno", + "unknown": "unknown" + } }, "delay_time": { "name": "Odgoda početka" @@ -860,6 +866,15 @@ }, "voc": { "name": "Plinovi (HOS-ovi)" + }, + "steam_level": { + "state": { + "no_steam": "Bez pare", + "cotton": "Pamuk", + "delicate": "Osjetljivo rublje", + "synthetic": "Sintetika" + }, + "name": "Razina pare" } }, "select": { @@ -1608,10 +1623,33 @@ "name": "Preostalo vrijeme" }, "diffuser": { - "name": "Raspršivač" + "name": "Raspršivač", + "state": { + "soft": "Manjeg intenziteta", + "mid": "Srednje", + "h_biotics": "H-BIOTICS", + "custom": "Prilagođavanje", + "off": "Isključeno" + } }, "mode": { - "name": "Mode" + "name": "Mode", + "state": { + "standby": "Stanje pripravnosti", + "sleep": "Način mirovanja", + "auto": "Automatski", + "allergens": "Alergeni", + "max": "Najviše" + } + }, + "steam_level": { + "state": { + "no_steam": "Bez pare", + "cotton": "Pamuk", + "delicate": "Osjetljivo rublje", + "synthetic": "Sintetika" + }, + "name": "Razina pare" } }, "switch": { @@ -1857,6 +1895,12 @@ }, "pollen_level": { "name": "Razina peludi" + }, + "aroma_time_on": { + "name": "Raspršivač (ISKLJUČEN)" + }, + "aroma_time_off": { + "name": "Raspršivač (UKLJUČEN)" } }, "climate": { diff --git a/custom_components/hon/translations/it.json b/custom_components/hon/translations/it.json index dafa2e9..cb9c462 100644 --- a/custom_components/hon/translations/it.json +++ b/custom_components/hon/translations/it.json @@ -808,7 +808,13 @@ "name": "Livello vapore" }, "dirt_level": { - "name": "Livello di sporco" + "name": "Livello di sporco", + "state": { + "little": "Poco", + "normal": "Normale", + "very": "Molto", + "unknown": "unknown" + } }, "delay_time": { "name": "Utilizzo nelle ore notturne" @@ -865,6 +871,15 @@ }, "voc": { "name": "Gas (VOC)" + }, + "steam_level": { + "state": { + "no_steam": "No vapore", + "cotton": "Cotone", + "delicate": "Delicati", + "synthetic": "Sintetici" + }, + "name": "Livello vapore" } }, "select": { @@ -1613,10 +1628,33 @@ "name": "Tempo rimanente" }, "diffuser": { - "name": "Diffusore" + "name": "Diffusore", + "state": { + "soft": "Soft", + "mid": "Medio", + "h_biotics": "H-BIOTICS", + "custom": "Personalizza", + "off": "Off" + } }, "mode": { - "name": "Modalità" + "name": "Modalità", + "state": { + "standby": "Standby", + "sleep": "Sleep", + "auto": "Auto", + "allergens": "Allergeni", + "max": "Max" + } + }, + "steam_level": { + "state": { + "no_steam": "No vapore", + "cotton": "Cotone", + "delicate": "Delicati", + "synthetic": "Sintetici" + }, + "name": "Livello vapore" } }, "switch": { @@ -1862,6 +1900,12 @@ }, "pollen_level": { "name": "Livello di polline" + }, + "aroma_time_on": { + "name": "Diffusore (ON)" + }, + "aroma_time_off": { + "name": "Diffusore (OFF)" } }, "climate": { diff --git a/custom_components/hon/translations/nl.json b/custom_components/hon/translations/nl.json index 34f53dc..a3ab35b 100644 --- a/custom_components/hon/translations/nl.json +++ b/custom_components/hon/translations/nl.json @@ -808,7 +808,13 @@ "name": "Stoomniveau" }, "dirt_level": { - "name": "Vuilheid" + "name": "Vuilheid", + "state": { + "little": "Weinig", + "normal": "Normaal", + "very": "Heel", + "unknown": "unknown" + } }, "delay_time": { "name": "Vertraag Start" @@ -860,6 +866,15 @@ }, "voc": { "name": "Gas (VOC)" + }, + "steam_level": { + "state": { + "no_steam": "Geen stoom", + "cotton": "Katoen", + "delicate": "Fijne was", + "synthetic": "Synthetic" + }, + "name": "Stoomniveau" } }, "select": { @@ -1608,10 +1623,33 @@ "name": "Resterende tijd" }, "diffuser": { - "name": "Diffuser" + "name": "Diffuser", + "state": { + "soft": "Zacht", + "mid": "Medium", + "h_biotics": "H-BIOTICS", + "custom": "Personaliseren", + "off": "Uit" + } }, "mode": { - "name": "Modus" + "name": "Modus", + "state": { + "standby": "Stand-by", + "sleep": "Slaap", + "auto": "Automatisch", + "allergens": "Allergenen", + "max": "Max" + } + }, + "steam_level": { + "state": { + "no_steam": "Geen stoom", + "cotton": "Katoen", + "delicate": "Fijne was", + "synthetic": "Synthetic" + }, + "name": "Stoomniveau" } }, "switch": { @@ -1857,6 +1895,12 @@ }, "pollen_level": { "name": "Pollenniveau" + }, + "aroma_time_on": { + "name": "Diffuser (AAN)" + }, + "aroma_time_off": { + "name": "Diffuser (UIT)" } }, "climate": { diff --git a/custom_components/hon/translations/pl.json b/custom_components/hon/translations/pl.json index 72a6665..8c8bd49 100644 --- a/custom_components/hon/translations/pl.json +++ b/custom_components/hon/translations/pl.json @@ -808,7 +808,13 @@ "name": "Poziom pary" }, "dirt_level": { - "name": "Stopień zabrudzenia" + "name": "Stopień zabrudzenia", + "state": { + "little": "Niskie", + "normal": "Standardowe", + "very": "Wysokie", + "unknown": "unknown" + } }, "delay_time": { "name": "Opóźniony Start" @@ -860,6 +866,15 @@ }, "voc": { "name": "Gaz (VOC)" + }, + "steam_level": { + "state": { + "no_steam": "Bez pary", + "cotton": "Bawełna", + "delicate": "Delikatne", + "synthetic": "Syntetyczne" + }, + "name": "Poziom pary" } }, "select": { @@ -1608,10 +1623,33 @@ "name": "Pozostały czas" }, "diffuser": { - "name": "Dyfuzor" + "name": "Dyfuzor", + "state": { + "soft": "Program", + "mid": "Średnie", + "h_biotics": "H-BIOTICS", + "custom": "Dostosuj", + "off": "Wył." + } }, "mode": { - "name": "Tryb" + "name": "Tryb", + "state": { + "standby": "Czuwanie", + "sleep": "Uśpiony", + "auto": "Auto", + "allergens": "Alergeny", + "max": "Maks." + } + }, + "steam_level": { + "state": { + "no_steam": "Bez pary", + "cotton": "Bawełna", + "delicate": "Delikatne", + "synthetic": "Syntetyczne" + }, + "name": "Poziom pary" } }, "switch": { @@ -1857,6 +1895,12 @@ }, "pollen_level": { "name": "Poziom pyłków" + }, + "aroma_time_on": { + "name": "Dyfuzor (WŁ.)" + }, + "aroma_time_off": { + "name": "Dyfuzor (WYŁ.)" } }, "climate": { diff --git a/custom_components/hon/translations/pt.json b/custom_components/hon/translations/pt.json index 0fb37a9..9da78b9 100644 --- a/custom_components/hon/translations/pt.json +++ b/custom_components/hon/translations/pt.json @@ -808,7 +808,13 @@ "name": "Nível de vapor" }, "dirt_level": { - "name": "Nível de sujidade" + "name": "Nível de sujidade", + "state": { + "little": "Pouco", + "normal": "Normal", + "very": "Muito", + "unknown": "unknown" + } }, "delay_time": { "name": "Início adiado" @@ -860,6 +866,15 @@ }, "voc": { "name": "Gás (VOC)" + }, + "steam_level": { + "state": { + "no_steam": "Sem vapor", + "cotton": "Algodão", + "delicate": "Roupa delicada", + "synthetic": "Sintéticos" + }, + "name": "Nível de vapor" } }, "select": { @@ -1608,10 +1623,33 @@ "name": "Tempo restante" }, "diffuser": { - "name": "Difusor" + "name": "Difusor", + "state": { + "soft": "Suave", + "mid": "Médio", + "h_biotics": "H-BIOTICS", + "custom": "Personalizar", + "off": "Off" + } }, "mode": { - "name": "Modo" + "name": "Modo", + "state": { + "standby": "Em espera", + "sleep": "Sono", + "auto": "Auto", + "allergens": "Alergénios", + "max": "Máx." + } + }, + "steam_level": { + "state": { + "no_steam": "Sem vapor", + "cotton": "Algodão", + "delicate": "Roupa delicada", + "synthetic": "Sintéticos" + }, + "name": "Nível de vapor" } }, "switch": { @@ -1857,6 +1895,12 @@ }, "pollen_level": { "name": "Nível de pólenes" + }, + "aroma_time_on": { + "name": "Difusor (ON)" + }, + "aroma_time_off": { + "name": "Difusor (OFF)" } }, "climate": { diff --git a/custom_components/hon/translations/ro.json b/custom_components/hon/translations/ro.json index f864985..7aefe02 100644 --- a/custom_components/hon/translations/ro.json +++ b/custom_components/hon/translations/ro.json @@ -808,7 +808,13 @@ "name": "Nivel abur" }, "dirt_level": { - "name": "Nivel de murdărie" + "name": "Nivel de murdărie", + "state": { + "little": "Puțin", + "normal": "Normal", + "very": "Foarte", + "unknown": "unknown" + } }, "delay_time": { "name": "Pornire întârziată" @@ -860,6 +866,15 @@ }, "voc": { "name": "Gaze (COV)" + }, + "steam_level": { + "state": { + "no_steam": "Fără abur", + "cotton": "Bumbac", + "delicate": "Delicate", + "synthetic": "Synthetic" + }, + "name": "Nivel abur" } }, "select": { @@ -1608,10 +1623,33 @@ "name": "Timp rămas" }, "diffuser": { - "name": "Difuzor" + "name": "Difuzor", + "state": { + "soft": "încet", + "mid": "Mediu", + "h_biotics": "H-BIOTICS", + "custom": "Personalizați", + "off": "Oprit" + } }, "mode": { - "name": "Mode" + "name": "Mode", + "state": { + "standby": "Mod de așteptare", + "sleep": "Somn", + "auto": "Automat", + "allergens": "Alergeni", + "max": "Max" + } + }, + "steam_level": { + "state": { + "no_steam": "Fără abur", + "cotton": "Bumbac", + "delicate": "Delicate", + "synthetic": "Synthetic" + }, + "name": "Nivel abur" } }, "switch": { @@ -1857,6 +1895,12 @@ }, "pollen_level": { "name": "Nivel polen" + }, + "aroma_time_on": { + "name": "Difuzor (PORNIT)" + }, + "aroma_time_off": { + "name": "Difuzor (OPRIT)" } }, "climate": { diff --git a/custom_components/hon/translations/ru.json b/custom_components/hon/translations/ru.json index 81ac0c3..d78cfb6 100644 --- a/custom_components/hon/translations/ru.json +++ b/custom_components/hon/translations/ru.json @@ -808,7 +808,13 @@ "name": "Уровень пара" }, "dirt_level": { - "name": "Уровень загрязнения" + "name": "Уровень загрязнения", + "state": { + "little": "Мало", + "normal": "Нормально", + "very": "Очень", + "unknown": "unknown" + } }, "delay_time": { "name": "Отложенный пуск" @@ -860,6 +866,15 @@ }, "voc": { "name": "Газ (ЛОС)" + }, + "steam_level": { + "state": { + "no_steam": "Без пара", + "cotton": "Хлопок", + "delicate": "Деликатные ткани", + "synthetic": "Синтетика" + }, + "name": "Уровень пара" } }, "select": { @@ -1608,10 +1623,33 @@ "name": "Оставшееся время" }, "diffuser": { - "name": "Распылитель" + "name": "Распылитель", + "state": { + "soft": "Мягкая", + "mid": "Средний", + "h_biotics": "H-BIOTICS", + "custom": "Настроить", + "off": "Выкл." + } }, "mode": { - "name": "Режим" + "name": "Режим", + "state": { + "standby": "Режим ожидания", + "sleep": "Сон", + "auto": "Авто", + "allergens": "Аллергены", + "max": "Макс." + } + }, + "steam_level": { + "state": { + "no_steam": "Без пара", + "cotton": "Хлопок", + "delicate": "Деликатные ткани", + "synthetic": "Синтетика" + }, + "name": "Уровень пара" } }, "switch": { @@ -1857,6 +1895,12 @@ }, "pollen_level": { "name": "Уровень пыльцы в воздухе" + }, + "aroma_time_on": { + "name": "Распылитель (Вкл.)" + }, + "aroma_time_off": { + "name": "Распылитель (Выкл.)" } }, "climate": { diff --git a/custom_components/hon/translations/sk.json b/custom_components/hon/translations/sk.json index a4acbb0..374d661 100644 --- a/custom_components/hon/translations/sk.json +++ b/custom_components/hon/translations/sk.json @@ -808,7 +808,13 @@ "name": "Úroveň nastavenia pary" }, "dirt_level": { - "name": "Úroveň znečistenia" + "name": "Úroveň znečistenia", + "state": { + "little": "Málo", + "normal": "Normálne", + "very": "Veľa", + "unknown": "unknown" + } }, "delay_time": { "name": "Odložený štart" @@ -860,6 +866,15 @@ }, "voc": { "name": "Plyn (VOC)" + }, + "steam_level": { + "state": { + "no_steam": "Bez pary", + "cotton": "Bavlna", + "delicate": "Jemné materiály", + "synthetic": "Synthetic" + }, + "name": "Úroveň nastavenia pary" } }, "select": { @@ -1608,10 +1623,33 @@ "name": "Zostávajúci čas" }, "diffuser": { - "name": "Difuzér" + "name": "Difuzér", + "state": { + "soft": "Mierny", + "mid": "Stredný", + "h_biotics": "H-BIOTICS", + "custom": "Prispôsobiť", + "off": "Vyp." + } }, "mode": { - "name": "Mode" + "name": "Mode", + "state": { + "standby": "Pohotovostný režim", + "sleep": "Spánok", + "auto": "Automatika", + "allergens": "Alergény", + "max": "Max" + } + }, + "steam_level": { + "state": { + "no_steam": "Bez pary", + "cotton": "Bavlna", + "delicate": "Jemné materiály", + "synthetic": "Synthetic" + }, + "name": "Úroveň nastavenia pary" } }, "switch": { @@ -1857,6 +1895,12 @@ }, "pollen_level": { "name": "Úroveň peľu" + }, + "aroma_time_on": { + "name": "Difuzér (ZAP)" + }, + "aroma_time_off": { + "name": "Difuzér (VYP)" } }, "climate": { diff --git a/custom_components/hon/translations/sl.json b/custom_components/hon/translations/sl.json index 91de5a9..e7068ad 100644 --- a/custom_components/hon/translations/sl.json +++ b/custom_components/hon/translations/sl.json @@ -808,7 +808,13 @@ "name": "Količina pare" }, "dirt_level": { - "name": "Stopnja umazanije" + "name": "Stopnja umazanije", + "state": { + "little": "Malo", + "normal": "Normalno", + "very": "Zelo", + "unknown": "unknown" + } }, "delay_time": { "name": "S funkcijo Zamik vklopa je možno odložiti začetek sušilnega cikla od 1 do 24 ur. Na zaslonu se prikaže izbrana zakasnitev. Da bi videli kako se zmanjšuje iz ure v uro, pritisnite ZAČETEK. Na ta način bo perilo suho takrat, ko boste to želeli, in zagnali cikel, ko vam to najbolj ustreza, celo ponoči." @@ -860,6 +866,15 @@ }, "voc": { "name": "Lahkohlapne organske spojine (HOS)" + }, + "steam_level": { + "state": { + "no_steam": "Brez pare", + "cotton": "Bombaž", + "delicate": "Občutljivo", + "synthetic": "Sintetika" + }, + "name": "Količina pare" } }, "select": { @@ -1608,10 +1623,33 @@ "name": "Time remaining" }, "diffuser": { - "name": "Razpršilnik" + "name": "Razpršilnik", + "state": { + "soft": "Nežno", + "mid": "Srednje", + "h_biotics": "H-BIOTICS", + "custom": "Prilagodi", + "off": "Off" + } }, "mode": { - "name": "Mode" + "name": "Mode", + "state": { + "standby": "Stanje pripravljenosti", + "sleep": "Spanje", + "auto": "Samodejno", + "allergens": "Alergeni", + "max": "Maksimalno" + } + }, + "steam_level": { + "state": { + "no_steam": "Brez pare", + "cotton": "Bombaž", + "delicate": "Občutljivo", + "synthetic": "Sintetika" + }, + "name": "Količina pare" } }, "switch": { @@ -1857,6 +1895,12 @@ }, "pollen_level": { "name": "Raven cvetnega prahu" + }, + "aroma_time_on": { + "name": "Razpršilnik (VKLOP)" + }, + "aroma_time_off": { + "name": "Razpršilnik (IZKLOP)" } }, "climate": { diff --git a/custom_components/hon/translations/sr.json b/custom_components/hon/translations/sr.json index d09c6cb..d3ef545 100644 --- a/custom_components/hon/translations/sr.json +++ b/custom_components/hon/translations/sr.json @@ -808,7 +808,13 @@ "name": "Nivo pare" }, "dirt_level": { - "name": "Nivo zaprljanosti" + "name": "Nivo zaprljanosti", + "state": { + "little": "Malo", + "normal": "Normalno", + "very": "Veoma", + "unknown": "unknown" + } }, "delay_time": { "name": "Odloženi start" @@ -860,6 +866,15 @@ }, "voc": { "name": "Gas (VOC)" + }, + "steam_level": { + "state": { + "no_steam": "Bez vodene pare", + "cotton": "Pamuk", + "delicate": "Osetljivi materijali", + "synthetic": "Sintetika" + }, + "name": "Nivo pare" } }, "select": { @@ -1608,10 +1623,33 @@ "name": "Preostalo vreme" }, "diffuser": { - "name": "Difuzor" + "name": "Difuzor", + "state": { + "soft": "Meki", + "mid": "Srednje", + "h_biotics": "„H-BIOTICS“", + "custom": "Prilagodi", + "off": "Isključeno" + } }, "mode": { - "name": "Mode" + "name": "Mode", + "state": { + "standby": "U pripravnosti", + "sleep": "Spavanje", + "auto": "Automatski", + "allergens": "Alergeni", + "max": "Maks." + } + }, + "steam_level": { + "state": { + "no_steam": "Bez vodene pare", + "cotton": "Pamuk", + "delicate": "Osetljivi materijali", + "synthetic": "Sintetika" + }, + "name": "Nivo pare" } }, "switch": { @@ -1857,6 +1895,12 @@ }, "pollen_level": { "name": "Nivo polena u vazduhu" + }, + "aroma_time_on": { + "name": "Difuzor (UKLJUČENO)" + }, + "aroma_time_off": { + "name": "Difuzor (ISKLJUČENO)" } }, "climate": { diff --git a/custom_components/hon/translations/tr.json b/custom_components/hon/translations/tr.json index 51708f3..c6f8088 100644 --- a/custom_components/hon/translations/tr.json +++ b/custom_components/hon/translations/tr.json @@ -808,7 +808,13 @@ "name": "Buhar Seviyesi" }, "dirt_level": { - "name": "Kir seviyesi" + "name": "Kir seviyesi", + "state": { + "little": "Az", + "normal": "Normal", + "very": "Çok", + "unknown": "unknown" + } }, "delay_time": { "name": "Gecikmeli Başlatma" @@ -860,6 +866,15 @@ }, "voc": { "name": "Gaz (VOC)" + }, + "steam_level": { + "state": { + "no_steam": "Buhar yok", + "cotton": "Pamuk", + "delicate": "Hassas", + "synthetic": "Synthetic" + }, + "name": "Buhar Seviyesi" } }, "select": { @@ -1608,10 +1623,33 @@ "name": "Kalan süre" }, "diffuser": { - "name": "Difüzör" + "name": "Difüzör", + "state": { + "soft": "Yumuşak", + "mid": "Orta", + "h_biotics": "H-BIOTICS", + "custom": "Özelleştir", + "off": "Kapalı" + } }, "mode": { - "name": "Mode" + "name": "Mode", + "state": { + "standby": "Beklemede", + "sleep": "Uyku", + "auto": "Otomatik", + "allergens": "Alerjenler", + "max": "Maks" + } + }, + "steam_level": { + "state": { + "no_steam": "Buhar yok", + "cotton": "Pamuk", + "delicate": "Hassas", + "synthetic": "Synthetic" + }, + "name": "Buhar Seviyesi" } }, "switch": { @@ -1857,6 +1895,12 @@ }, "pollen_level": { "name": "Polen seviyesi" + }, + "aroma_time_on": { + "name": "Difüzör (AÇIK)" + }, + "aroma_time_off": { + "name": "Difüzör (KAPALI)" } }, "climate": { diff --git a/custom_components/hon/translations/zh.json b/custom_components/hon/translations/zh.json index 22ab938..f9a0a26 100644 --- a/custom_components/hon/translations/zh.json +++ b/custom_components/hon/translations/zh.json @@ -808,7 +808,13 @@ "name": "蒸汽档位" }, "dirt_level": { - "name": "脏污程度" + "name": "脏污程度", + "state": { + "little": "少量", + "normal": "正常", + "very": "非常", + "unknown": "unknown" + } }, "delay_time": { "name": "延时启动" @@ -860,6 +866,15 @@ }, "voc": { "name": "气体(VOC)" + }, + "steam_level": { + "state": { + "no_steam": "无蒸汽", + "cotton": "棉布", + "delicate": "精致衣物", + "synthetic": "Synthetic" + }, + "name": "蒸汽档位" } }, "select": { @@ -1608,10 +1623,33 @@ "name": "剩余时间" }, "diffuser": { - "name": "扩散器" + "name": "扩散器", + "state": { + "soft": "“软”程序", + "mid": "中", + "h_biotics": "H-BIOTICS", + "custom": "定制", + "off": "关闭" + } }, "mode": { - "name": "Mode" + "name": "Mode", + "state": { + "standby": "待机", + "sleep": "睡眠", + "auto": "自动", + "allergens": "过敏原", + "max": "最大" + } + }, + "steam_level": { + "state": { + "no_steam": "无蒸汽", + "cotton": "棉布", + "delicate": "精致衣物", + "synthetic": "Synthetic" + }, + "name": "蒸汽档位" } }, "switch": { @@ -1857,6 +1895,12 @@ }, "pollen_level": { "name": "花粉水平" + }, + "aroma_time_on": { + "name": "扩散器(开)" + }, + "aroma_time_off": { + "name": "扩散器(关)" } }, "climate": { diff --git a/scripts/translation_keys.py b/scripts/translation_keys.py index b81f615..013e69c 100644 --- a/scripts/translation_keys.py +++ b/scripts/translation_keys.py @@ -85,6 +85,23 @@ AC_HUMAN_SENSE = { "unknown": "unknown", } +AP_MACH_MODE = { + "standby": "AP.RUNNING_MODE.STANDBY", + "sleep": "AP.RUNNING_MODE.SLEEP", + "auto": "AP.RUNNING_MODE.AUTO", + "allergens": "AP.RUNNING_MODE.ALLERGENS", + "max": "AP.RUNNING_MODE.MAX", +} + +AP_DIFFUSER_LEVEL = { + "off": "GLOBALS.GENERAL.OFF", + "soft": "AP.MODE_DIFFUSER.LEVEL_SOFT", + "mid": "AP.MODE_DIFFUSER.LEVEL_MID", + "h_biotics": "AP.MODE_DIFFUSER.LEVEL_H_BIOTICS", + "custom": "AP.MODE_DIFFUSER.LEVEL_CUSTOM", +} + + REF_ZONES = { "fridge": "REF.ZONES.FRIDGE", "freezer": "REF.ZONES.FREEZER", @@ -100,6 +117,8 @@ SENSOR = { "program_phases_td": TUMBLE_DRYER_PR_PHASE, "program_phases_dw": DISHWASHER_PR_PHASE, "dry_levels": TUMBLE_DRYER_DRY_LEVEL, + "dirt_level": DIRTY_LEVEL, + "steam_level": STEAM_LEVEL, } SELECT = { @@ -107,6 +126,9 @@ SELECT = { "eco_pilot": AC_HUMAN_SENSE, "fan_mode": AC_FAN_MODE, "ref_zones": REF_ZONES, + "steam_level": STEAM_LEVEL, + "mode": AP_MACH_MODE, + "diffuser": AP_DIFFUSER_LEVEL, } PROGRAMS = { @@ -335,10 +357,11 @@ NAMES = { "rinse_iterations": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL.DRAWER_HEADER_RINSE", "wash_time": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL.WASHING_TIME", "dry_time": "WASHING_CMD&CTRL.DRAWER_CYCLE_DRYING.TAB_TIME", - "steam_level": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_MAIN_OPTIONS.STEAM_LEVEL", "freezer_temp_sel": ["OV.COMMON.GOAL_TEMPERATURE", "REF.ZONES.FREEZER"], "fridge_temp_sel": ["OV.COMMON.GOAL_TEMPERATURE", "REF.ZONES.FRIDGE"], "pollen_level": "AP.AIR_QUALITY.POLLEN_LEVEL", + "aroma_time_on": "AP.TITLES.AROMA_ON", + "aroma_time_off": "AP.TITLES.AROMA_OFF", }, "climate": { "air_conditioner": "GLOBALS.APPLIANCES_NAME.AC",