From e777fe1ec93b44cdc92b1a1d6323a1affbdc90ac Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Sun, 14 May 2023 03:17:58 +0200 Subject: [PATCH] Add more dw conifgs --- README.md | 3 +++ custom_components/hon/select.py | 16 ++++++++++++++++ custom_components/hon/switch.py | 7 +++++++ custom_components/hon/translations/cs.json | 6 ++++++ custom_components/hon/translations/de.json | 6 ++++++ custom_components/hon/translations/el.json | 6 ++++++ custom_components/hon/translations/en.json | 6 ++++++ custom_components/hon/translations/es.json | 6 ++++++ custom_components/hon/translations/fr.json | 6 ++++++ custom_components/hon/translations/he.json | 6 ++++++ custom_components/hon/translations/hr.json | 6 ++++++ custom_components/hon/translations/it.json | 6 ++++++ custom_components/hon/translations/nl.json | 6 ++++++ custom_components/hon/translations/pl.json | 6 ++++++ custom_components/hon/translations/pt.json | 6 ++++++ custom_components/hon/translations/ro.json | 6 ++++++ custom_components/hon/translations/ru.json | 6 ++++++ custom_components/hon/translations/sk.json | 6 ++++++ custom_components/hon/translations/sl.json | 6 ++++++ custom_components/hon/translations/sr.json | 6 ++++++ custom_components/hon/translations/tr.json | 6 ++++++ custom_components/hon/translations/zh.json | 6 ++++++ scripts/generate_translation.py | 2 ++ 23 files changed, 142 insertions(+) diff --git a/README.md b/README.md index ba27525..3569143 100644 --- a/README.md +++ b/README.md @@ -178,6 +178,7 @@ For every device exists a hidden button which can be used to log all infos of yo | Name | Icon | Entity | Key | | --- | --- | --- | --- | | Add Dish | `silverware-fork-knife` | `switch` | `startProgram.addDish` | +| Buzzer Disabled | `volume-off` | `switch` | `settings.buzzerDisabled` | | Delay time | `timer-plus` | `number` | `startProgram.delayTime` | | Eco Express | `sprout` | `switch` | `startProgram.ecoExpress` | | Eco Index | `sprout` | `sensor` | `startProgram.ecoIndex` | @@ -186,6 +187,8 @@ For every device exists a hidden button which can be used to log all infos of yo | Half Load | `fraction-one-half` | `switch` | `startProgram.halfLoad` | | Open Door | `door-open` | `switch` | `startProgram.openDoor` | | Program | | `select` | `startProgram.program` | +| Remaining Time | `timer` | `select` | `startProgram.remainingTime` | +| Temperature | `thermometer` | `select` | `startProgram.temp` | | Temperature | `thermometer` | `sensor` | `startProgram.temp` | | Three in One | `numeric-3-box-outline` | `switch` | `startProgram.threeInOne` | | Time | `timer` | `sensor` | `startProgram.remainingTime` | diff --git a/custom_components/hon/select.py b/custom_components/hon/select.py index 3a75fea..46d077f 100644 --- a/custom_components/hon/select.py +++ b/custom_components/hon/select.py @@ -87,6 +87,22 @@ SELECTS = { entity_category=EntityCategory.CONFIG, translation_key="programs_dw", ), + SelectEntityDescription( + key="startProgram.temp", + name="Temperature", + entity_category=EntityCategory.CONFIG, + icon="mdi:thermometer", + unit_of_measurement=UnitOfTemperature.CELSIUS, + translation_key="temperature", + ), + SelectEntityDescription( + key="startProgram.remainingTime", + name="Remaining Time", + entity_category=EntityCategory.CONFIG, + icon="mdi:timer", + unit_of_measurement=UnitOfTime.MINUTES, + translation_key="remaining_time", + ), ), "AC": ( SelectEntityDescription( diff --git a/custom_components/hon/switch.py b/custom_components/hon/switch.py index 17487f1..7e872c9 100644 --- a/custom_components/hon/switch.py +++ b/custom_components/hon/switch.py @@ -241,6 +241,13 @@ SWITCHES: dict[str, tuple[HonSwitchEntityDescription, ...]] = { entity_category=EntityCategory.CONFIG, translation_key="add_dish", ), + HonSwitchEntityDescription( + key="settings.buzzerDisabled", + name="Buzzer Disabled", + icon="mdi:volume-off", + entity_category=EntityCategory.CONFIG, + translation_key="buzzer", + ), ), "AC": ( HonSwitchEntityDescription( diff --git a/custom_components/hon/translations/cs.json b/custom_components/hon/translations/cs.json index 1747903..58d0d31 100644 --- a/custom_components/hon/translations/cs.json +++ b/custom_components/hon/translations/cs.json @@ -1041,6 +1041,9 @@ "tea": "Cold drinks or Beverages", "zero_fresh": "0° Fresh" } + }, + "remaining_time": { + "name": "Zbývající čas" } }, "switch": { @@ -1216,6 +1219,9 @@ }, "auto_dose": { "name": "Automatické dávkování" + }, + "buzzer": { + "name": "Zvuková signalizace konce cyklu" } }, "number": { diff --git a/custom_components/hon/translations/de.json b/custom_components/hon/translations/de.json index d2f5c3f..11e1594 100644 --- a/custom_components/hon/translations/de.json +++ b/custom_components/hon/translations/de.json @@ -1041,6 +1041,9 @@ "tea": "Cold drinks or Beverages", "zero_fresh": "0° Fresh" } + }, + "remaining_time": { + "name": "Verbleibende Zeit" } }, "switch": { @@ -1216,6 +1219,9 @@ }, "auto_dose": { "name": "Autodosierung" + }, + "buzzer": { + "name": "Signalton zum Programmende" } }, "number": { diff --git a/custom_components/hon/translations/el.json b/custom_components/hon/translations/el.json index 8f7a4a9..a5b2cd2 100644 --- a/custom_components/hon/translations/el.json +++ b/custom_components/hon/translations/el.json @@ -1041,6 +1041,9 @@ "tea": "Cold drinks or Beverages", "zero_fresh": "0° Fresh" } + }, + "remaining_time": { + "name": "Χρόνος που απομένει" } }, "switch": { @@ -1216,6 +1219,9 @@ }, "auto_dose": { "name": "Αυτόματη Δοσολογία" + }, + "buzzer": { + "name": "Κουδούνισμα τέλους κύκλου" } }, "number": { diff --git a/custom_components/hon/translations/en.json b/custom_components/hon/translations/en.json index e317c31..ef7520f 100644 --- a/custom_components/hon/translations/en.json +++ b/custom_components/hon/translations/en.json @@ -1207,6 +1207,9 @@ "tea": "Cold drinks or Beverages", "zero_fresh": "0° Fresh" } + }, + "remaining_time": { + "name": "Time remaining" } }, "binary_sensor": { @@ -1284,6 +1287,9 @@ }, "auto_dose": { "name": "Autodose" + }, + "buzzer": { + "name": "Cycle end chime" } }, "number": { diff --git a/custom_components/hon/translations/es.json b/custom_components/hon/translations/es.json index e9ce449..79b2180 100644 --- a/custom_components/hon/translations/es.json +++ b/custom_components/hon/translations/es.json @@ -1041,6 +1041,9 @@ "tea": "Cold drinks or Beverages", "zero_fresh": "0° Fresh" } + }, + "remaining_time": { + "name": "Tiempo restante" } }, "switch": { @@ -1216,6 +1219,9 @@ }, "auto_dose": { "name": "Dosificación automática" + }, + "buzzer": { + "name": "Campana de fin de ciclo" } }, "number": { diff --git a/custom_components/hon/translations/fr.json b/custom_components/hon/translations/fr.json index 3aee4c1..54b6c92 100644 --- a/custom_components/hon/translations/fr.json +++ b/custom_components/hon/translations/fr.json @@ -1041,6 +1041,9 @@ "tea": "Cold drinks or Beverages", "zero_fresh": "0° Fresh" } + }, + "remaining_time": { + "name": "Temps restant" } }, "switch": { @@ -1216,6 +1219,9 @@ }, "auto_dose": { "name": "Dose automatique" + }, + "buzzer": { + "name": "Sonnerie de fin de cycle" } }, "number": { diff --git a/custom_components/hon/translations/he.json b/custom_components/hon/translations/he.json index 99a6e01..6ac3918 100644 --- a/custom_components/hon/translations/he.json +++ b/custom_components/hon/translations/he.json @@ -494,6 +494,9 @@ "soft_frozen": "Soft freezing", "tea": "Cold drinks or Beverages" } + }, + "remaining_time": { + "name": "זמן שנותר" } }, "switch": { @@ -669,6 +672,9 @@ }, "auto_dose": { "name": "מינון אוטומטי" + }, + "buzzer": { + "name": "Cycle end chime" } }, "number": { diff --git a/custom_components/hon/translations/hr.json b/custom_components/hon/translations/hr.json index b0546a6..63f3f39 100644 --- a/custom_components/hon/translations/hr.json +++ b/custom_components/hon/translations/hr.json @@ -1041,6 +1041,9 @@ "tea": "Hladna pića i napitci", "zero_fresh": "0° Fresh" } + }, + "remaining_time": { + "name": "Preostalo vrijeme" } }, "switch": { @@ -1216,6 +1219,9 @@ }, "auto_dose": { "name": "Automatsko doziranje" + }, + "buzzer": { + "name": "Zvono za završetak ciklusa" } }, "number": { diff --git a/custom_components/hon/translations/it.json b/custom_components/hon/translations/it.json index fdaf966..e518dfa 100644 --- a/custom_components/hon/translations/it.json +++ b/custom_components/hon/translations/it.json @@ -1093,6 +1093,9 @@ "tea": "Cold drinks or Beverages", "zero_fresh": "0° Fresh" } + }, + "remaining_time": { + "name": "Tempo rimanente" } }, "switch": { @@ -1268,6 +1271,9 @@ }, "auto_dose": { "name": "Autodose" + }, + "buzzer": { + "name": "Avviso di fine ciclo" } }, "number": { diff --git a/custom_components/hon/translations/nl.json b/custom_components/hon/translations/nl.json index 4129beb..50d376b 100644 --- a/custom_components/hon/translations/nl.json +++ b/custom_components/hon/translations/nl.json @@ -1041,6 +1041,9 @@ "tea": "Cold drinks or Beverages", "zero_fresh": "0° Fresh" } + }, + "remaining_time": { + "name": "Resterende tijd" } }, "switch": { @@ -1216,6 +1219,9 @@ }, "auto_dose": { "name": "Automatisch doseren" + }, + "buzzer": { + "name": "Bel voor einde cyclus" } }, "number": { diff --git a/custom_components/hon/translations/pl.json b/custom_components/hon/translations/pl.json index 982e653..36f4a22 100644 --- a/custom_components/hon/translations/pl.json +++ b/custom_components/hon/translations/pl.json @@ -1041,6 +1041,9 @@ "tea": "Cold drinks or Beverages", "zero_fresh": "0° Fresh" } + }, + "remaining_time": { + "name": "Pozostały czas" } }, "switch": { @@ -1216,6 +1219,9 @@ }, "auto_dose": { "name": "Automatyczne dozowanie" + }, + "buzzer": { + "name": "Sygnał dźwiękowy końca cyklu" } }, "number": { diff --git a/custom_components/hon/translations/pt.json b/custom_components/hon/translations/pt.json index a6853aa..c9420cd 100644 --- a/custom_components/hon/translations/pt.json +++ b/custom_components/hon/translations/pt.json @@ -1041,6 +1041,9 @@ "tea": "Cold drinks or Beverages", "zero_fresh": "0° Fresh" } + }, + "remaining_time": { + "name": "Tempo restante" } }, "switch": { @@ -1216,6 +1219,9 @@ }, "auto_dose": { "name": "Autodosagem" + }, + "buzzer": { + "name": "Besouro de fim de ciclo" } }, "number": { diff --git a/custom_components/hon/translations/ro.json b/custom_components/hon/translations/ro.json index c7b49cc..37e0742 100644 --- a/custom_components/hon/translations/ro.json +++ b/custom_components/hon/translations/ro.json @@ -1041,6 +1041,9 @@ "tea": "Cold drinks or Beverages", "zero_fresh": "0° Fresh" } + }, + "remaining_time": { + "name": "Timp rămas" } }, "switch": { @@ -1216,6 +1219,9 @@ }, "auto_dose": { "name": "Autodozare" + }, + "buzzer": { + "name": "Sonerie la finalul ciclului" } }, "number": { diff --git a/custom_components/hon/translations/ru.json b/custom_components/hon/translations/ru.json index 56d4969..28423de 100644 --- a/custom_components/hon/translations/ru.json +++ b/custom_components/hon/translations/ru.json @@ -1041,6 +1041,9 @@ "tea": "Cold drinks or Beverages", "zero_fresh": "0° Fresh" } + }, + "remaining_time": { + "name": "Оставшееся время" } }, "switch": { @@ -1216,6 +1219,9 @@ }, "auto_dose": { "name": "Автодозирование" + }, + "buzzer": { + "name": "Звуковой сигнал окончания цикла" } }, "number": { diff --git a/custom_components/hon/translations/sk.json b/custom_components/hon/translations/sk.json index a247594..beca28f 100644 --- a/custom_components/hon/translations/sk.json +++ b/custom_components/hon/translations/sk.json @@ -1041,6 +1041,9 @@ "tea": "Cold drinks or Beverages", "zero_fresh": "0° Fresh" } + }, + "remaining_time": { + "name": "Zostávajúci čas" } }, "switch": { @@ -1216,6 +1219,9 @@ }, "auto_dose": { "name": "Automatická dávka" + }, + "buzzer": { + "name": "Signál na konci cyklu" } }, "number": { diff --git a/custom_components/hon/translations/sl.json b/custom_components/hon/translations/sl.json index 32d0800..bb433de 100644 --- a/custom_components/hon/translations/sl.json +++ b/custom_components/hon/translations/sl.json @@ -1041,6 +1041,9 @@ "tea": "Cold drinks or Beverages", "zero_fresh": "0° Fresh" } + }, + "remaining_time": { + "name": "Time remaining" } }, "switch": { @@ -1216,6 +1219,9 @@ }, "auto_dose": { "name": "Samodejno odmerjanje" + }, + "buzzer": { + "name": "Zvočni signal ob koncu cikla" } }, "number": { diff --git a/custom_components/hon/translations/sr.json b/custom_components/hon/translations/sr.json index 005291e..4675a34 100644 --- a/custom_components/hon/translations/sr.json +++ b/custom_components/hon/translations/sr.json @@ -1041,6 +1041,9 @@ "tea": "Cold drinks or Beverages", "zero_fresh": "0° Fresh" } + }, + "remaining_time": { + "name": "Preostalo vreme" } }, "switch": { @@ -1216,6 +1219,9 @@ }, "auto_dose": { "name": "Automatsko doziranje" + }, + "buzzer": { + "name": "Zvono na kraju ciklusa" } }, "number": { diff --git a/custom_components/hon/translations/tr.json b/custom_components/hon/translations/tr.json index 1a7ea62..36b8692 100644 --- a/custom_components/hon/translations/tr.json +++ b/custom_components/hon/translations/tr.json @@ -1041,6 +1041,9 @@ "tea": "Cold drinks or Beverages", "zero_fresh": "0° Fresh" } + }, + "remaining_time": { + "name": "Kalan süre" } }, "switch": { @@ -1216,6 +1219,9 @@ }, "auto_dose": { "name": "Otomatik doz" + }, + "buzzer": { + "name": "Program sonu zili" } }, "number": { diff --git a/custom_components/hon/translations/zh.json b/custom_components/hon/translations/zh.json index 2e17260..39605c7 100644 --- a/custom_components/hon/translations/zh.json +++ b/custom_components/hon/translations/zh.json @@ -1041,6 +1041,9 @@ "tea": "Cold drinks or Beverages", "zero_fresh": "0° Fresh" } + }, + "remaining_time": { + "name": "剩余时间" } }, "switch": { @@ -1216,6 +1219,9 @@ }, "auto_dose": { "name": "自动定量" + }, + "buzzer": { + "name": "循环结束提示音" } }, "number": { diff --git a/scripts/generate_translation.py b/scripts/generate_translation.py index 4b43d08..04cdaa7 100755 --- a/scripts/generate_translation.py +++ b/scripts/generate_translation.py @@ -102,6 +102,7 @@ NAMES = { "child_lock": "AP.FOOTER_MENU_MORE.SECURITY_LOCK_TITLE", "on": "GLOBALS.GENERAL.ON", "prewash": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.PREWASH", + "buzzer": "DW_CMD&CTRL.SETTINGS.END_CYCLE_BUZZER", }, "button": { "induction_hob": "GLOBALS.APPLIANCES_NAME.IH", @@ -117,6 +118,7 @@ NAMES = { "programs_td": "WC.SET_PROGRAM.PROGRAM", "programs_wm": "WC.SET_PROGRAM.PROGRAM", "eco_pilot": "AC.PROGRAM_DETAIL.ECO_PILOT", + "remaining_time": "ENROLLMENT_COMMON.GENERAL.REMAINING_TIME", }, "sensor": { "dry_levels": "WASHING_CMD&CTRL.DRAWER_CYCLE_DRYING.TAB_LEVEL",