From 269a521435a208c32e5b8ed68f7c78e676b65f85 Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Sat, 1 Jul 2023 01:45:32 +0200 Subject: [PATCH] Add more translation keys for ap #72 --- README.md | 6 +++--- custom_components/hon/const.py | 18 ++++++++++++++++++ custom_components/hon/light.py | 17 +++++++++++++++-- custom_components/hon/number.py | 1 + custom_components/hon/select.py | 2 ++ custom_components/hon/sensor.py | 5 +++-- custom_components/hon/switch.py | 2 ++ custom_components/hon/translations/cs.json | 20 ++++++++++++++++++++ custom_components/hon/translations/de.json | 20 ++++++++++++++++++++ custom_components/hon/translations/el.json | 20 ++++++++++++++++++++ custom_components/hon/translations/en.json | 20 ++++++++++++++++++++ custom_components/hon/translations/es.json | 20 ++++++++++++++++++++ custom_components/hon/translations/fr.json | 20 ++++++++++++++++++++ custom_components/hon/translations/he.json | 20 ++++++++++++++++++++ custom_components/hon/translations/hr.json | 20 ++++++++++++++++++++ custom_components/hon/translations/it.json | 20 ++++++++++++++++++++ custom_components/hon/translations/nl.json | 20 ++++++++++++++++++++ custom_components/hon/translations/pl.json | 20 ++++++++++++++++++++ custom_components/hon/translations/pt.json | 20 ++++++++++++++++++++ custom_components/hon/translations/ro.json | 20 ++++++++++++++++++++ custom_components/hon/translations/ru.json | 20 ++++++++++++++++++++ custom_components/hon/translations/sk.json | 20 ++++++++++++++++++++ custom_components/hon/translations/sl.json | 20 ++++++++++++++++++++ custom_components/hon/translations/sr.json | 20 ++++++++++++++++++++ custom_components/hon/translations/tr.json | 20 ++++++++++++++++++++ custom_components/hon/translations/zh.json | 20 ++++++++++++++++++++ scripts/translation_keys.py | 6 ++++++ 27 files changed, 430 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 844bbae..cb0fbc6 100644 --- a/README.md +++ b/README.md @@ -194,13 +194,13 @@ For every device exists a button under diagnostics which can be used to log all | Humidity | | `sensor` | `humidityIndoor` | | Main Filter Status | | `sensor` | `mainFilterStatus` | | On | `power-cycle` | `binary_sensor` | `attributes.parameters.onOffStatus` | +| PM 10 | | `sensor` | `pm10ValueIndoor` | +| PM 2.5 | | `sensor` | `pm2p5ValueIndoor` | | Pre Filter Status | | `sensor` | `preFilterStatus` | | Temperature | | `sensor` | `temp` | | Total Work Time | | `sensor` | `totalWorkTime` | | VOC | | `sensor` | `vocValueIndoor` | | Wind Speed | | `sensor` | `windSpeed` | -| pm10 | | `sensor` | `pm10ValueIndoor` | -| pm2p5 | | `sensor` | `pm2p5ValueIndoor` | ### Dish Washer #### Controls @@ -294,8 +294,8 @@ For every device exists a button under diagnostics which can be used to log all #### Controls | Name | Icon | Entity | Key | | --- | --- | --- | --- | -| Oven | `toaster-oven` | `switch` | `startProgram` / `stopProgram` | | Oven | `thermometer` | `climate` | `settings.tempSel` | +| Oven | `toaster-oven` | `switch` | `startProgram` / `stopProgram` | #### Configs | Name | Icon | Entity | Key | | --- | --- | --- | --- | diff --git a/custom_components/hon/const.py b/custom_components/hon/const.py index d43308d..d2155ac 100644 --- a/custom_components/hon/const.py +++ b/custom_components/hon/const.py @@ -21,6 +21,24 @@ PLATFORMS = [ "light", ] +APPLIANCES = { + "AC": "Air Conditioner", + "AP": "Air Purifier", + "AS": "Air Scanner", + "DW": "Dish Washer", + "HO": "Hood", + "IH": "Induction Hob", + "MW": "Microwave", + "OV": "Oven", + "REF": "Fridge", + "RVC": "Robot Vacuum Cleaner", + "TD": "Tumble Dryer", + "WC": "Wine Cellar", + "WD": "Washer Dryer", + "WH": "Water Heater", + "WM": "Washing Machine", +} + HON_HVAC_MODE = { 0: HVACMode.AUTO, 1: HVACMode.COOL, diff --git a/custom_components/hon/light.py b/custom_components/hon/light.py index 3f12647..7e8633f 100644 --- a/custom_components/hon/light.py +++ b/custom_components/hon/light.py @@ -19,14 +19,27 @@ _LOGGER = logging.getLogger(__name__) LIGHTS = { - "WC": (LightEntityDescription(key="settings.lightStatus", name="Light"),), + "WC": ( + LightEntityDescription( + key="settings.lightStatus", + name="Light", + translation_key="light", + ), + ), "HO": ( LightEntityDescription( key="startProgram.lightStatus", name="Light status", + translation_key="light", + ), + ), + "AP": ( + LightEntityDescription( + key="settings.lightStatus", + name="Light status", + translation_key="light", ), ), - "AP": (LightEntityDescription(key="settings.lightStatus", name="Light status"),), } diff --git a/custom_components/hon/number.py b/custom_components/hon/number.py index ba148e9..1008190 100644 --- a/custom_components/hon/number.py +++ b/custom_components/hon/number.py @@ -178,6 +178,7 @@ NUMBERS: dict[str, tuple[NumberEntityDescription, ...]] = { HonNumberEntityDescription( key="settings.pollenLevel", name="Pollen Level", + translation_key="pollen_level", ), ), } diff --git a/custom_components/hon/select.py b/custom_components/hon/select.py index f238b68..a2d9f8e 100644 --- a/custom_components/hon/select.py +++ b/custom_components/hon/select.py @@ -138,12 +138,14 @@ SELECTS = { key="settings.aromaStatus", name="Diffuser Level", option_list=const.AP_DIFFUSER_LEVEL, + translation_key="diffuser", ), HonSelectEntityDescription( key="settings.machMode", name="Mode", icon="mdi:run", option_list=const.AP_MACH_MODE, + translation_key="mode", ), ), } diff --git a/custom_components/hon/sensor.py b/custom_components/hon/sensor.py index 68886fe..cb54814 100644 --- a/custom_components/hon/sensor.py +++ b/custom_components/hon/sensor.py @@ -719,14 +719,14 @@ SENSORS: dict[str, tuple[SensorEntityDescription, ...]] = { ), HonSensorEntityDescription( key="pm10ValueIndoor", - name="pm10", + name="PM 10", state_class=SensorStateClass.MEASUREMENT, device_class=SensorDeviceClass.PM10, native_unit_of_measurement=CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, ), HonSensorEntityDescription( key="pm2p5ValueIndoor", - name="pm2p5", + name="PM 2.5", state_class=SensorStateClass.MEASUREMENT, device_class=SensorDeviceClass.PM25, native_unit_of_measurement=CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, @@ -737,6 +737,7 @@ SENSORS: dict[str, tuple[SensorEntityDescription, ...]] = { state_class=SensorStateClass.MEASUREMENT, device_class=SensorDeviceClass.VOLATILE_ORGANIC_COMPOUNDS, native_unit_of_measurement=CONCENTRATION_PARTS_PER_BILLION, + translation_key="voc", ), HonSensorEntityDescription( key="humidityIndoor", diff --git a/custom_components/hon/switch.py b/custom_components/hon/switch.py index 3b8e059..3823643 100644 --- a/custom_components/hon/switch.py +++ b/custom_components/hon/switch.py @@ -334,10 +334,12 @@ SWITCHES: dict[str, tuple[HonSwitchEntityDescription, ...]] = { HonSwitchEntityDescription( key="touchToneStatus", name="Touch Tone", + translation_key="touch_tone", ), HonSwitchEntityDescription( key="lockStatus", name="Lock Status", + translation_key="mode", ), ), } diff --git a/custom_components/hon/translations/cs.json b/custom_components/hon/translations/cs.json index b78c475..62da552 100644 --- a/custom_components/hon/translations/cs.json +++ b/custom_components/hon/translations/cs.json @@ -857,6 +857,9 @@ }, "fridge_temp": { "name": "Teplota chladničky" + }, + "voc": { + "name": "Plyn (VOC)" } }, "select": { @@ -1603,6 +1606,12 @@ }, "remaining_time": { "name": "Zbývající čas" + }, + "diffuser": { + "name": "Difuzér" + }, + "mode": { + "name": "Režim" } }, "switch": { @@ -1713,6 +1722,9 @@ }, "night_mode": { "name": "Noční režim" + }, + "touch_tone": { + "name": "Hlasitost tónu klepnutí" } }, "binary_sensor": { @@ -1842,6 +1854,9 @@ }, "fridge_temp_sel": { "name": "Cílová teplota Chladnička" + }, + "pollen_level": { + "name": "Hladina pylu" } }, "climate": { @@ -1982,6 +1997,11 @@ "air_extraction": { "name": "Odsávání vzduchu" } + }, + "light": { + "light": { + "name": "Světlo" + } } }, "config": { diff --git a/custom_components/hon/translations/de.json b/custom_components/hon/translations/de.json index e14f7ed..6b29423 100644 --- a/custom_components/hon/translations/de.json +++ b/custom_components/hon/translations/de.json @@ -857,6 +857,9 @@ }, "fridge_temp": { "name": "Temperatur des Kühlschranks" + }, + "voc": { + "name": "Gas (VOC)" } }, "select": { @@ -1603,6 +1606,12 @@ }, "remaining_time": { "name": "Verbleibende Zeit" + }, + "diffuser": { + "name": "Luftverteiler" + }, + "mode": { + "name": "Modus" } }, "switch": { @@ -1713,6 +1722,9 @@ }, "night_mode": { "name": "Nachtmodus" + }, + "touch_tone": { + "name": "Tastentonlautstärke" } }, "binary_sensor": { @@ -1842,6 +1854,9 @@ }, "fridge_temp_sel": { "name": "Zieltemperatur Kühlschrank" + }, + "pollen_level": { + "name": "Pollenkonzentration" } }, "climate": { @@ -1982,6 +1997,11 @@ "air_extraction": { "name": "Dunstabzug" } + }, + "light": { + "light": { + "name": "Licht" + } } }, "config": { diff --git a/custom_components/hon/translations/el.json b/custom_components/hon/translations/el.json index 5112860..feefbb9 100644 --- a/custom_components/hon/translations/el.json +++ b/custom_components/hon/translations/el.json @@ -857,6 +857,9 @@ }, "fridge_temp": { "name": "Θερμοκρασία ψυγείου" + }, + "voc": { + "name": "Αέριο (VOC)" } }, "select": { @@ -1603,6 +1606,12 @@ }, "remaining_time": { "name": "Χρόνος που απομένει" + }, + "diffuser": { + "name": "Διαχύτης" + }, + "mode": { + "name": "Mode" } }, "switch": { @@ -1713,6 +1722,9 @@ }, "night_mode": { "name": "Νυχτερινή λειτουργία" + }, + "touch_tone": { + "name": "Ένταση τόνου αφής" } }, "binary_sensor": { @@ -1842,6 +1854,9 @@ }, "fridge_temp_sel": { "name": "Στοχευμένη θερμοκρασία Ψυγείο" + }, + "pollen_level": { + "name": "Επίπεδο γύρης" } }, "climate": { @@ -1982,6 +1997,11 @@ "air_extraction": { "name": "Εξαγωγή αέρα" } + }, + "light": { + "light": { + "name": "Φως" + } } }, "config": { diff --git a/custom_components/hon/translations/en.json b/custom_components/hon/translations/en.json index 65cd887..434ec0b 100644 --- a/custom_components/hon/translations/en.json +++ b/custom_components/hon/translations/en.json @@ -877,6 +877,9 @@ }, "fridge_temp": { "name": "Fridge temperature" + }, + "voc": { + "name": "Gas (VOC)" } }, "select": { @@ -1630,6 +1633,12 @@ }, "remaining_time": { "name": "Time remaining" + }, + "diffuser": { + "name": "Diffuser" + }, + "mode": { + "name": "Mode" } }, "switch": { @@ -1740,6 +1749,9 @@ }, "night_mode": { "name": "Night mode" + }, + "touch_tone": { + "name": "Touch tone volume" } }, "binary_sensor": { @@ -1869,6 +1881,9 @@ }, "fridge_temp_sel": { "name": "Target temperature Fridge" + }, + "pollen_level": { + "name": "Pollen level" } }, "climate": { @@ -2011,6 +2026,11 @@ "air_extraction": { "name": "Air extraction" } + }, + "light": { + "light": { + "name": "Light" + } } }, "config": { diff --git a/custom_components/hon/translations/es.json b/custom_components/hon/translations/es.json index 6930167..cd10c97 100644 --- a/custom_components/hon/translations/es.json +++ b/custom_components/hon/translations/es.json @@ -857,6 +857,9 @@ }, "fridge_temp": { "name": "Temperatura del frigorífico" + }, + "voc": { + "name": "Gas (COV)" } }, "select": { @@ -1603,6 +1606,12 @@ }, "remaining_time": { "name": "Tiempo restante" + }, + "diffuser": { + "name": "Difusor" + }, + "mode": { + "name": "Modo" } }, "switch": { @@ -1713,6 +1722,9 @@ }, "night_mode": { "name": "Modo nocturno" + }, + "touch_tone": { + "name": "Volumen del tono táctil" } }, "binary_sensor": { @@ -1842,6 +1854,9 @@ }, "fridge_temp_sel": { "name": "Temperatura deseada Frigorífico" + }, + "pollen_level": { + "name": "Nivel de polen" } }, "climate": { @@ -1982,6 +1997,11 @@ "air_extraction": { "name": "Extracción de aire" } + }, + "light": { + "light": { + "name": "Luz" + } } }, "config": { diff --git a/custom_components/hon/translations/fr.json b/custom_components/hon/translations/fr.json index b594498..bce9694 100644 --- a/custom_components/hon/translations/fr.json +++ b/custom_components/hon/translations/fr.json @@ -857,6 +857,9 @@ }, "fridge_temp": { "name": "Température du réfrigérateur" + }, + "voc": { + "name": "COV gazeux" } }, "select": { @@ -1603,6 +1606,12 @@ }, "remaining_time": { "name": "Temps restant" + }, + "diffuser": { + "name": "Diffuseur" + }, + "mode": { + "name": "Mode" } }, "switch": { @@ -1713,6 +1722,9 @@ }, "night_mode": { "name": "Mode nuit" + }, + "touch_tone": { + "name": "Volume des tonalités" } }, "binary_sensor": { @@ -1842,6 +1854,9 @@ }, "fridge_temp_sel": { "name": "Température cible Réfrigérateur" + }, + "pollen_level": { + "name": "Niveau de pollen" } }, "climate": { @@ -1982,6 +1997,11 @@ "air_extraction": { "name": "Extraction de l'air" } + }, + "light": { + "light": { + "name": "Luminosité" + } } }, "config": { diff --git a/custom_components/hon/translations/he.json b/custom_components/hon/translations/he.json index 6ecbb49..9477caa 100644 --- a/custom_components/hon/translations/he.json +++ b/custom_components/hon/translations/he.json @@ -413,6 +413,9 @@ }, "fridge_temp": { "name": "Fridge temperature" + }, + "voc": { + "name": "Gas (VOC)" } }, "select": { @@ -724,6 +727,12 @@ }, "remaining_time": { "name": "זמן שנותר" + }, + "diffuser": { + "name": "Diffuser" + }, + "mode": { + "name": "Mode" } }, "switch": { @@ -834,6 +843,9 @@ }, "night_mode": { "name": "Night mode" + }, + "touch_tone": { + "name": "Touch tone volume" } }, "binary_sensor": { @@ -963,6 +975,9 @@ }, "fridge_temp_sel": { "name": "Target temperature Fridge" + }, + "pollen_level": { + "name": "Pollen level" } }, "climate": { @@ -1030,6 +1045,11 @@ "air_extraction": { "name": "Air extraction" } + }, + "light": { + "light": { + "name": "Light" + } } }, "config": { diff --git a/custom_components/hon/translations/hr.json b/custom_components/hon/translations/hr.json index 39814c9..229b28a 100644 --- a/custom_components/hon/translations/hr.json +++ b/custom_components/hon/translations/hr.json @@ -857,6 +857,9 @@ }, "fridge_temp": { "name": "Temperatura hladnjaka" + }, + "voc": { + "name": "Plinovi (HOS-ovi)" } }, "select": { @@ -1603,6 +1606,12 @@ }, "remaining_time": { "name": "Preostalo vrijeme" + }, + "diffuser": { + "name": "Raspršivač" + }, + "mode": { + "name": "Mode" } }, "switch": { @@ -1713,6 +1722,9 @@ }, "night_mode": { "name": "Noćni način rada" + }, + "touch_tone": { + "name": "Glasnoća tona pri dodiru" } }, "binary_sensor": { @@ -1842,6 +1854,9 @@ }, "fridge_temp_sel": { "name": "Ciljana temperatura Hladnjak" + }, + "pollen_level": { + "name": "Razina peludi" } }, "climate": { @@ -1982,6 +1997,11 @@ "air_extraction": { "name": "Odvođenje zraka" } + }, + "light": { + "light": { + "name": "Svjetlo" + } } }, "config": { diff --git a/custom_components/hon/translations/it.json b/custom_components/hon/translations/it.json index 546b945..dafa2e9 100644 --- a/custom_components/hon/translations/it.json +++ b/custom_components/hon/translations/it.json @@ -862,6 +862,9 @@ }, "fridge_temp": { "name": "Temperatura del frigorifero" + }, + "voc": { + "name": "Gas (VOC)" } }, "select": { @@ -1608,6 +1611,12 @@ }, "remaining_time": { "name": "Tempo rimanente" + }, + "diffuser": { + "name": "Diffusore" + }, + "mode": { + "name": "Modalità" } }, "switch": { @@ -1718,6 +1727,9 @@ }, "night_mode": { "name": "Modalità notte" + }, + "touch_tone": { + "name": "Volume Tasti" } }, "binary_sensor": { @@ -1847,6 +1859,9 @@ }, "fridge_temp_sel": { "name": "Temperatura target Frigorifero" + }, + "pollen_level": { + "name": "Livello di polline" } }, "climate": { @@ -1987,6 +2002,11 @@ "air_extraction": { "name": "Aspirazione aria" } + }, + "light": { + "light": { + "name": "Illuminazione" + } } }, "config": { diff --git a/custom_components/hon/translations/nl.json b/custom_components/hon/translations/nl.json index 4f85a2d..34f53dc 100644 --- a/custom_components/hon/translations/nl.json +++ b/custom_components/hon/translations/nl.json @@ -857,6 +857,9 @@ }, "fridge_temp": { "name": "Koelkasttemperatuur" + }, + "voc": { + "name": "Gas (VOC)" } }, "select": { @@ -1603,6 +1606,12 @@ }, "remaining_time": { "name": "Resterende tijd" + }, + "diffuser": { + "name": "Diffuser" + }, + "mode": { + "name": "Modus" } }, "switch": { @@ -1713,6 +1722,9 @@ }, "night_mode": { "name": "Nachtmodus" + }, + "touch_tone": { + "name": "Volume van geluid bij aanraking" } }, "binary_sensor": { @@ -1842,6 +1854,9 @@ }, "fridge_temp_sel": { "name": "Doeltemperatuur Koelkast" + }, + "pollen_level": { + "name": "Pollenniveau" } }, "climate": { @@ -1982,6 +1997,11 @@ "air_extraction": { "name": "Luchtafvoer" } + }, + "light": { + "light": { + "name": "Licht" + } } }, "config": { diff --git a/custom_components/hon/translations/pl.json b/custom_components/hon/translations/pl.json index 6d2e167..72a6665 100644 --- a/custom_components/hon/translations/pl.json +++ b/custom_components/hon/translations/pl.json @@ -857,6 +857,9 @@ }, "fridge_temp": { "name": "Temperatura lodówki" + }, + "voc": { + "name": "Gaz (VOC)" } }, "select": { @@ -1603,6 +1606,12 @@ }, "remaining_time": { "name": "Pozostały czas" + }, + "diffuser": { + "name": "Dyfuzor" + }, + "mode": { + "name": "Tryb" } }, "switch": { @@ -1713,6 +1722,9 @@ }, "night_mode": { "name": "Tryb nocny" + }, + "touch_tone": { + "name": "Dźwięk przycisku dotykowego" } }, "binary_sensor": { @@ -1842,6 +1854,9 @@ }, "fridge_temp_sel": { "name": "Temperatura docelowa Lodówka" + }, + "pollen_level": { + "name": "Poziom pyłków" } }, "climate": { @@ -1982,6 +1997,11 @@ "air_extraction": { "name": "Wyciąg powietrza" } + }, + "light": { + "light": { + "name": "Światło" + } } }, "config": { diff --git a/custom_components/hon/translations/pt.json b/custom_components/hon/translations/pt.json index 7ef49ca..0fb37a9 100644 --- a/custom_components/hon/translations/pt.json +++ b/custom_components/hon/translations/pt.json @@ -857,6 +857,9 @@ }, "fridge_temp": { "name": "Temperatura do frigorífico" + }, + "voc": { + "name": "Gás (VOC)" } }, "select": { @@ -1603,6 +1606,12 @@ }, "remaining_time": { "name": "Tempo restante" + }, + "diffuser": { + "name": "Difusor" + }, + "mode": { + "name": "Modo" } }, "switch": { @@ -1713,6 +1722,9 @@ }, "night_mode": { "name": "Modo noturno" + }, + "touch_tone": { + "name": "Volume do tom de toque" } }, "binary_sensor": { @@ -1842,6 +1854,9 @@ }, "fridge_temp_sel": { "name": "Temperatura alvo Frigorífico" + }, + "pollen_level": { + "name": "Nível de pólenes" } }, "climate": { @@ -1982,6 +1997,11 @@ "air_extraction": { "name": "Extração de ar" } + }, + "light": { + "light": { + "name": "Luz" + } } }, "config": { diff --git a/custom_components/hon/translations/ro.json b/custom_components/hon/translations/ro.json index 3189d00..f864985 100644 --- a/custom_components/hon/translations/ro.json +++ b/custom_components/hon/translations/ro.json @@ -857,6 +857,9 @@ }, "fridge_temp": { "name": "Temperatura frigiderului" + }, + "voc": { + "name": "Gaze (COV)" } }, "select": { @@ -1603,6 +1606,12 @@ }, "remaining_time": { "name": "Timp rămas" + }, + "diffuser": { + "name": "Difuzor" + }, + "mode": { + "name": "Mode" } }, "switch": { @@ -1713,6 +1722,9 @@ }, "night_mode": { "name": "Modul noapte" + }, + "touch_tone": { + "name": "Volum la atingerea tastelor" } }, "binary_sensor": { @@ -1842,6 +1854,9 @@ }, "fridge_temp_sel": { "name": "Temperatură vizată Frigider" + }, + "pollen_level": { + "name": "Nivel polen" } }, "climate": { @@ -1982,6 +1997,11 @@ "air_extraction": { "name": "Extracția aerului" } + }, + "light": { + "light": { + "name": "Lumină" + } } }, "config": { diff --git a/custom_components/hon/translations/ru.json b/custom_components/hon/translations/ru.json index b9de6ae..81ac0c3 100644 --- a/custom_components/hon/translations/ru.json +++ b/custom_components/hon/translations/ru.json @@ -857,6 +857,9 @@ }, "fridge_temp": { "name": "Температура в холодильнике" + }, + "voc": { + "name": "Газ (ЛОС)" } }, "select": { @@ -1603,6 +1606,12 @@ }, "remaining_time": { "name": "Оставшееся время" + }, + "diffuser": { + "name": "Распылитель" + }, + "mode": { + "name": "Режим" } }, "switch": { @@ -1713,6 +1722,9 @@ }, "night_mode": { "name": "Ночной режим" + }, + "touch_tone": { + "name": "Громкость сенсорных кнопок" } }, "binary_sensor": { @@ -1842,6 +1854,9 @@ }, "fridge_temp_sel": { "name": "Заданная температура Холодильник" + }, + "pollen_level": { + "name": "Уровень пыльцы в воздухе" } }, "climate": { @@ -1982,6 +1997,11 @@ "air_extraction": { "name": "Отвод воздуха" } + }, + "light": { + "light": { + "name": "Свет" + } } }, "config": { diff --git a/custom_components/hon/translations/sk.json b/custom_components/hon/translations/sk.json index 37ca163..a4acbb0 100644 --- a/custom_components/hon/translations/sk.json +++ b/custom_components/hon/translations/sk.json @@ -857,6 +857,9 @@ }, "fridge_temp": { "name": "Teplota chladničky" + }, + "voc": { + "name": "Plyn (VOC)" } }, "select": { @@ -1603,6 +1606,12 @@ }, "remaining_time": { "name": "Zostávajúci čas" + }, + "diffuser": { + "name": "Difuzér" + }, + "mode": { + "name": "Mode" } }, "switch": { @@ -1713,6 +1722,9 @@ }, "night_mode": { "name": "Nočný režim" + }, + "touch_tone": { + "name": "Hlasitosť tónu dotyku" } }, "binary_sensor": { @@ -1842,6 +1854,9 @@ }, "fridge_temp_sel": { "name": "Cieľová teplota Chladnička" + }, + "pollen_level": { + "name": "Úroveň peľu" } }, "climate": { @@ -1982,6 +1997,11 @@ "air_extraction": { "name": "Odsávanie vzduchu" } + }, + "light": { + "light": { + "name": "Osvetlenie" + } } }, "config": { diff --git a/custom_components/hon/translations/sl.json b/custom_components/hon/translations/sl.json index ce5c072..91de5a9 100644 --- a/custom_components/hon/translations/sl.json +++ b/custom_components/hon/translations/sl.json @@ -857,6 +857,9 @@ }, "fridge_temp": { "name": "Temperatura hladilnika" + }, + "voc": { + "name": "Lahkohlapne organske spojine (HOS)" } }, "select": { @@ -1603,6 +1606,12 @@ }, "remaining_time": { "name": "Time remaining" + }, + "diffuser": { + "name": "Razpršilnik" + }, + "mode": { + "name": "Mode" } }, "switch": { @@ -1713,6 +1722,9 @@ }, "night_mode": { "name": "Nočni način" + }, + "touch_tone": { + "name": "Glasnost tona dotika" } }, "binary_sensor": { @@ -1842,6 +1854,9 @@ }, "fridge_temp_sel": { "name": "Ciljna temperatura Hladilnik" + }, + "pollen_level": { + "name": "Raven cvetnega prahu" } }, "climate": { @@ -1982,6 +1997,11 @@ "air_extraction": { "name": "Odvajanje zraka" } + }, + "light": { + "light": { + "name": "Osvetljava" + } } }, "config": { diff --git a/custom_components/hon/translations/sr.json b/custom_components/hon/translations/sr.json index e30669c..d09c6cb 100644 --- a/custom_components/hon/translations/sr.json +++ b/custom_components/hon/translations/sr.json @@ -857,6 +857,9 @@ }, "fridge_temp": { "name": "Temperatura frižidera" + }, + "voc": { + "name": "Gas (VOC)" } }, "select": { @@ -1603,6 +1606,12 @@ }, "remaining_time": { "name": "Preostalo vreme" + }, + "diffuser": { + "name": "Difuzor" + }, + "mode": { + "name": "Mode" } }, "switch": { @@ -1713,6 +1722,9 @@ }, "night_mode": { "name": "Noćni režim" + }, + "touch_tone": { + "name": "Jačina tona dodira" } }, "binary_sensor": { @@ -1842,6 +1854,9 @@ }, "fridge_temp_sel": { "name": "Željena temperatura Frižider" + }, + "pollen_level": { + "name": "Nivo polena u vazduhu" } }, "climate": { @@ -1982,6 +1997,11 @@ "air_extraction": { "name": "Usisavanje vazduha" } + }, + "light": { + "light": { + "name": "Svetlo" + } } }, "config": { diff --git a/custom_components/hon/translations/tr.json b/custom_components/hon/translations/tr.json index 61b2261..51708f3 100644 --- a/custom_components/hon/translations/tr.json +++ b/custom_components/hon/translations/tr.json @@ -857,6 +857,9 @@ }, "fridge_temp": { "name": "Buzdolabı sıcaklığı" + }, + "voc": { + "name": "Gaz (VOC)" } }, "select": { @@ -1603,6 +1606,12 @@ }, "remaining_time": { "name": "Kalan süre" + }, + "diffuser": { + "name": "Difüzör" + }, + "mode": { + "name": "Mode" } }, "switch": { @@ -1713,6 +1722,9 @@ }, "night_mode": { "name": "Gece modu" + }, + "touch_tone": { + "name": "Dokunma tonu seviyesi" } }, "binary_sensor": { @@ -1842,6 +1854,9 @@ }, "fridge_temp_sel": { "name": "Hedef sıcaklık Buzdolabı" + }, + "pollen_level": { + "name": "Polen seviyesi" } }, "climate": { @@ -1982,6 +1997,11 @@ "air_extraction": { "name": "Hava tahliyesi" } + }, + "light": { + "light": { + "name": "Işık" + } } }, "config": { diff --git a/custom_components/hon/translations/zh.json b/custom_components/hon/translations/zh.json index 855e698..22ab938 100644 --- a/custom_components/hon/translations/zh.json +++ b/custom_components/hon/translations/zh.json @@ -857,6 +857,9 @@ }, "fridge_temp": { "name": "冰箱温度" + }, + "voc": { + "name": "气体(VOC)" } }, "select": { @@ -1603,6 +1606,12 @@ }, "remaining_time": { "name": "剩余时间" + }, + "diffuser": { + "name": "扩散器" + }, + "mode": { + "name": "Mode" } }, "switch": { @@ -1713,6 +1722,9 @@ }, "night_mode": { "name": "夜间模式" + }, + "touch_tone": { + "name": "按键音量" } }, "binary_sensor": { @@ -1842,6 +1854,9 @@ }, "fridge_temp_sel": { "name": "目标温度 冰箱" + }, + "pollen_level": { + "name": "花粉水平" } }, "climate": { @@ -1982,6 +1997,11 @@ "air_extraction": { "name": "抽气" } + }, + "light": { + "light": { + "name": "照明" + } } }, "config": { diff --git a/scripts/translation_keys.py b/scripts/translation_keys.py index 41da415..b81f615 100644 --- a/scripts/translation_keys.py +++ b/scripts/translation_keys.py @@ -216,6 +216,7 @@ NAMES = { "super_cool": "REF_CMD&CTRL.MODALITIES.SUPER_COOL", "super_freeze": "REF_CMD&CTRL.MODALITIES.SUPER_FREEZE", "refrigerator": "REF.NAME", + "touch_tone": "AP.FOOTER_MENU_MORE.TOUCH_TONE_VOLUME", }, "binary_sensor": { "door_lock": "WASHING_CMD&CTRL.CHECK_UP_RESULTS.DOOR_LOCK", @@ -265,6 +266,8 @@ NAMES = { "eco_pilot": "AC.PROGRAM_DETAIL.ECO_PILOT", "remaining_time": "ENROLLMENT_COMMON.GENERAL.REMAINING_TIME", "ref_zones": "IH.COMMON.COIL", + "diffuser": "AP.TITLES.DIFFUSER", + "mode": "CUBE90_GLOBAL.GENERAL.MODE", }, "sensor": { "dry_levels": "WASHING_CMD&CTRL.DRAWER_CYCLE_DRYING.TAB_LEVEL", @@ -320,6 +323,7 @@ NAMES = { "programs_wm": "WC.SET_PROGRAM.PROGRAM", "programs_ac": "WC.SET_PROGRAM.PROGRAM", "programs_ref": "WC.SET_PROGRAM.PROGRAM", + "voc": "HINTS.WHAT_POLLUTES_THE_AIR_IN_OUR_HOMES.GAS_VOC_TITLE", }, "number": { "power_management": "HINTS.COOKING_WITH_INDUCTION.POWER_MANAGEMENT", @@ -334,6 +338,7 @@ NAMES = { "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", }, "climate": { "air_conditioner": "GLOBALS.APPLIANCES_NAME.AC", @@ -342,4 +347,5 @@ NAMES = { "oven": "GLOBALS.APPLIANCES_NAME.OV", }, "fan": {"air_extraction": "HO.DASHBOARD.AIR_EXTRACTION_TITLE"}, + "light": {"light": "WC.DASHBOARD_MENU_MORE.LIGHT"}, }