From 593d3912afd9cfe054634b43994cc2d424f95e5b Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Sat, 13 May 2023 01:20:02 +0200 Subject: [PATCH] Fix wrong wm keep fresh key --- README.md | 11 +++++++---- custom_components/hon/switch.py | 13 ++++++++++--- 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 | 10 ++++++++-- 22 files changed, 139 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 5104554..ba27525 100644 --- a/README.md +++ b/README.md @@ -146,6 +146,7 @@ For every device exists a hidden button which can be used to log all infos of yo - to the patience of my girlfriend as I work on this integration. ## Appliance Features + ### Air conditioner #### Controls | Name | Icon | Entity | Key | @@ -311,7 +312,8 @@ For every device exists a hidden button which can be used to log all infos of yo | Acqua Plus | `water-plus` | `switch` | `startProgram.acquaplus` | | Anti-Crease | `timer` | `switch` | `startProgram.antiCreaseTime` | | Anti-Crease | `timer` | `switch` | `startProgram.anticrease` | -| Auto Dose | `cup` | `switch` | `startProgram.autoDetergentStatus` | +| Auto Dose Detergent | `cup` | `switch` | `startProgram.autoDetergentStatus` | +| Auto Dose Softener | `teddy-bear` | `switch` | `startProgram.autoSoftenerStatus` | | Delay Status | `timer-check` | `switch` | `startProgram.delayStatus` | | Delay Time | `timer-plus` | `number` | `startProgram.delayTime` | | Dry Time | | `number` | `startProgram.dryTime` | @@ -322,7 +324,7 @@ For every device exists a hidden button which can be used to log all infos of yo | Extra Rinse 2 | `numeric-2-box-multiple-outline` | `switch` | `startProgram.extraRinse2` | | Extra Rinse 3 | `numeric-3-box-multiple-outline` | `switch` | `startProgram.extraRinse3` | | Good Night | `weather-night` | `switch` | `startProgram.goodNight` | -| Keep Fresh | `refresh-circle` | `switch` | `startProgram.autoSoftenerStatus` | +| Keep Fresh | `refresh-circle` | `switch` | `startProgram.permanentPressStatus` | | Liquid Detergent Dose | `cup-water` | `sensor` | `startProgram.liquidDetergentDose` | | Main Wash Time | `clock-start` | `number` | `startProgram.mainWashTime` | | Powder Detergent Dose | `cup` | `sensor` | `startProgram.powderDetergentDose` | @@ -383,7 +385,8 @@ For every device exists a hidden button which can be used to log all infos of yo | Name | Icon | Entity | Key | | --- | --- | --- | --- | | Acqua Plus | `water-plus` | `switch` | `startProgram.acquaplus` | -| Auto Dose | `cup` | `switch` | `startProgram.autoDetergentStatus` | +| Auto Dose Detergent | `cup` | `switch` | `startProgram.autoDetergentStatus` | +| Auto Dose Softener | `teddy-bear` | `switch` | `startProgram.autoSoftenerStatus` | | Delay Status | `timer-check` | `switch` | `startProgram.delayStatus` | | Delay Time | `timer-plus` | `number` | `startProgram.delayTime` | | Energy Label | `lightning-bolt-circle` | `sensor` | `startProgram.energyLabel` | @@ -391,7 +394,7 @@ For every device exists a hidden button which can be used to log all infos of yo | Extra Rinse 2 | `numeric-2-box-multiple-outline` | `switch` | `startProgram.extraRinse2` | | Extra Rinse 3 | `numeric-3-box-multiple-outline` | `switch` | `startProgram.extraRinse3` | | Good Night | `weather-night` | `switch` | `startProgram.goodNight` | -| Keep Fresh | `refresh-circle` | `switch` | `startProgram.autoSoftenerStatus` | +| Keep Fresh | `refresh-circle` | `switch` | `startProgram.permanentPressStatus` | | Liquid Detergent Dose | `cup-water` | `sensor` | `startProgram.liquidDetergentDose` | | Main Wash Time | `clock-start` | `number` | `startProgram.mainWashTime` | | Powder Detergent Dose | `cup` | `sensor` | `startProgram.powderDetergentDose` | diff --git a/custom_components/hon/switch.py b/custom_components/hon/switch.py index 8b7e0f5..2240491 100644 --- a/custom_components/hon/switch.py +++ b/custom_components/hon/switch.py @@ -61,18 +61,25 @@ SWITCHES: dict[str, tuple[HonSwitchEntityDescription, ...]] = { translation_key="prewash", ), HonSwitchEntityDescription( - key="startProgram.autoSoftenerStatus", + key="startProgram.permanentPressStatus", name="Keep Fresh", entity_category=EntityCategory.CONFIG, icon="mdi:refresh-circle", translation_key="keep_fresh", ), + HonSwitchEntityDescription( + key="startProgram.autoSoftenerStatus", + name="Auto Dose Softener", + entity_category=EntityCategory.CONFIG, + icon="mdi:teddy-bear", + translation_key="auto_dose_softener", + ), HonSwitchEntityDescription( key="startProgram.autoDetergentStatus", - name="Auto Dose", + name="Auto Dose Detergent", entity_category=EntityCategory.CONFIG, icon="mdi:cup", - translation_key="auto_dose", + translation_key="auto_dose_detergent", ), HonSwitchEntityDescription( key="startProgram.acquaplus", diff --git a/custom_components/hon/translations/cs.json b/custom_components/hon/translations/cs.json index b2e7522..1747903 100644 --- a/custom_components/hon/translations/cs.json +++ b/custom_components/hon/translations/cs.json @@ -1133,6 +1133,12 @@ }, "good_night": { "name": "Dobrou noc" + }, + "auto_dose_softener": { + "name": "Automatické dávkování Avivážní prostředek" + }, + "auto_dose_detergent": { + "name": "Automatické dávkování Prací prostředek" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/de.json b/custom_components/hon/translations/de.json index 38539b8..d2f5c3f 100644 --- a/custom_components/hon/translations/de.json +++ b/custom_components/hon/translations/de.json @@ -1133,6 +1133,12 @@ }, "good_night": { "name": "Gute Nacht" + }, + "auto_dose_softener": { + "name": "Autodosierung Weichspüler" + }, + "auto_dose_detergent": { + "name": "Autodosierung Spülmittel" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/el.json b/custom_components/hon/translations/el.json index ed35e25..8f7a4a9 100644 --- a/custom_components/hon/translations/el.json +++ b/custom_components/hon/translations/el.json @@ -1133,6 +1133,12 @@ }, "good_night": { "name": "Καληνυχτα" + }, + "auto_dose_softener": { + "name": "Αυτόματη Δοσολογία Μαλακτικό" + }, + "auto_dose_detergent": { + "name": "Αυτόματη Δοσολογία Απορρυπαντικό" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/en.json b/custom_components/hon/translations/en.json index 6bdb794..e317c31 100644 --- a/custom_components/hon/translations/en.json +++ b/custom_components/hon/translations/en.json @@ -464,6 +464,12 @@ }, "good_night": { "name": "Good Night" + }, + "auto_dose_softener": { + "name": "Autodose Softener" + }, + "auto_dose_detergent": { + "name": "Autodose Detergent" } }, "select": { diff --git a/custom_components/hon/translations/es.json b/custom_components/hon/translations/es.json index 22c4e1d..e9ce449 100644 --- a/custom_components/hon/translations/es.json +++ b/custom_components/hon/translations/es.json @@ -1133,6 +1133,12 @@ }, "good_night": { "name": "Buenas noches" + }, + "auto_dose_softener": { + "name": "Dosificación automática Suavizante" + }, + "auto_dose_detergent": { + "name": "Dosificación automática Detergente" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/fr.json b/custom_components/hon/translations/fr.json index 468ce20..3aee4c1 100644 --- a/custom_components/hon/translations/fr.json +++ b/custom_components/hon/translations/fr.json @@ -1133,6 +1133,12 @@ }, "good_night": { "name": "Bonne nuit" + }, + "auto_dose_softener": { + "name": "Dose automatique Adoucissant" + }, + "auto_dose_detergent": { + "name": "Dose automatique Lessive" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/he.json b/custom_components/hon/translations/he.json index 742ff8f..99a6e01 100644 --- a/custom_components/hon/translations/he.json +++ b/custom_components/hon/translations/he.json @@ -586,6 +586,12 @@ }, "good_night": { "name": "לילה טוב" + }, + "auto_dose_softener": { + "name": "מינון אוטומטי מרכך" + }, + "auto_dose_detergent": { + "name": "מינון אוטומטי חומר ניקוי" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/hr.json b/custom_components/hon/translations/hr.json index 55d72b2..b0546a6 100644 --- a/custom_components/hon/translations/hr.json +++ b/custom_components/hon/translations/hr.json @@ -1133,6 +1133,12 @@ }, "good_night": { "name": "Good Night" + }, + "auto_dose_softener": { + "name": "Automatsko doziranje Omekšivač" + }, + "auto_dose_detergent": { + "name": "Automatsko doziranje Deterdžent" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/it.json b/custom_components/hon/translations/it.json index 5103d9c..fdaf966 100644 --- a/custom_components/hon/translations/it.json +++ b/custom_components/hon/translations/it.json @@ -1185,6 +1185,12 @@ }, "good_night": { "name": "Buona notte" + }, + "auto_dose_softener": { + "name": "Autodose Ammorbidente" + }, + "auto_dose_detergent": { + "name": "Autodose Detergente" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/nl.json b/custom_components/hon/translations/nl.json index 66c5455..4129beb 100644 --- a/custom_components/hon/translations/nl.json +++ b/custom_components/hon/translations/nl.json @@ -1133,6 +1133,12 @@ }, "good_night": { "name": "Goede nacht" + }, + "auto_dose_softener": { + "name": "Automatisch doseren Wasverzachter" + }, + "auto_dose_detergent": { + "name": "Automatisch doseren Wasmiddel" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/pl.json b/custom_components/hon/translations/pl.json index 6f8a19b..982e653 100644 --- a/custom_components/hon/translations/pl.json +++ b/custom_components/hon/translations/pl.json @@ -1133,6 +1133,12 @@ }, "good_night": { "name": "Dobranoc" + }, + "auto_dose_softener": { + "name": "Automatyczne dozowanie Środek zmiękczający" + }, + "auto_dose_detergent": { + "name": "Automatyczne dozowanie Detergent" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/pt.json b/custom_components/hon/translations/pt.json index df61677..a6853aa 100644 --- a/custom_components/hon/translations/pt.json +++ b/custom_components/hon/translations/pt.json @@ -1133,6 +1133,12 @@ }, "good_night": { "name": "Boa Noite" + }, + "auto_dose_softener": { + "name": "Autodosagem Amaciador" + }, + "auto_dose_detergent": { + "name": "Autodosagem Detergente" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/ro.json b/custom_components/hon/translations/ro.json index 18d5b3a..c7b49cc 100644 --- a/custom_components/hon/translations/ro.json +++ b/custom_components/hon/translations/ro.json @@ -1133,6 +1133,12 @@ }, "good_night": { "name": "Noapte bună" + }, + "auto_dose_softener": { + "name": "Autodozare Balsam" + }, + "auto_dose_detergent": { + "name": "Autodozare Detergent" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/ru.json b/custom_components/hon/translations/ru.json index faa5767..56d4969 100644 --- a/custom_components/hon/translations/ru.json +++ b/custom_components/hon/translations/ru.json @@ -1133,6 +1133,12 @@ }, "good_night": { "name": "Спокойной ночи" + }, + "auto_dose_softener": { + "name": "Автодозирование Кондиционер" + }, + "auto_dose_detergent": { + "name": "Автодозирование Средство для стирки" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/sk.json b/custom_components/hon/translations/sk.json index cfc4520..a247594 100644 --- a/custom_components/hon/translations/sk.json +++ b/custom_components/hon/translations/sk.json @@ -1133,6 +1133,12 @@ }, "good_night": { "name": "Dobrú noc" + }, + "auto_dose_softener": { + "name": "Automatická dávka Aviváž" + }, + "auto_dose_detergent": { + "name": "Automatická dávka Prací prostriedok" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/sl.json b/custom_components/hon/translations/sl.json index 15983be..32d0800 100644 --- a/custom_components/hon/translations/sl.json +++ b/custom_components/hon/translations/sl.json @@ -1133,6 +1133,12 @@ }, "good_night": { "name": "Lahko noč" + }, + "auto_dose_softener": { + "name": "Samodejno odmerjanje Mehčalec" + }, + "auto_dose_detergent": { + "name": "Samodejno odmerjanje Detergent" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/sr.json b/custom_components/hon/translations/sr.json index d96ab97..005291e 100644 --- a/custom_components/hon/translations/sr.json +++ b/custom_components/hon/translations/sr.json @@ -1133,6 +1133,12 @@ }, "good_night": { "name": "Laku noć" + }, + "auto_dose_softener": { + "name": "Automatsko doziranje Omekšivač" + }, + "auto_dose_detergent": { + "name": "Automatsko doziranje Deterdžent" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/tr.json b/custom_components/hon/translations/tr.json index 3670fdb..1a7ea62 100644 --- a/custom_components/hon/translations/tr.json +++ b/custom_components/hon/translations/tr.json @@ -1133,6 +1133,12 @@ }, "good_night": { "name": "İyi Geceler" + }, + "auto_dose_softener": { + "name": "Otomatik doz Yumuşatıcı" + }, + "auto_dose_detergent": { + "name": "Otomatik doz Deterjan" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/zh.json b/custom_components/hon/translations/zh.json index 3357bfb..2e17260 100644 --- a/custom_components/hon/translations/zh.json +++ b/custom_components/hon/translations/zh.json @@ -1133,6 +1133,12 @@ }, "good_night": { "name": "晚安" + }, + "auto_dose_softener": { + "name": "自动定量 柔软剂" + }, + "auto_dose_detergent": { + "name": "自动定量 洗涤剂" } }, "binary_sensor": { diff --git a/scripts/generate_translation.py b/scripts/generate_translation.py index 5cfbffa..4b43d08 100755 --- a/scripts/generate_translation.py +++ b/scripts/generate_translation.py @@ -73,7 +73,14 @@ NAMES = { "extra_rinse_2": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.EXTRARINSE2", "extra_rinse_3": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.EXTRARINSE3", "acqua_plus": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.ACQUAPLUS", - "auto_dose": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.AUTODOSE", + "auto_dose_softener": [ + "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.AUTODOSE", + "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.SOFTENER", + ], + "auto_dose_detergent": [ + "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.AUTODOSE", + "WASHING_CMD&CTRL.DASHBOARD_MENU_MORE_SETTINGS_WATER.DETERGENT", + ], "good_night": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.GOODNIGHT", }, "binary_sensor": { @@ -84,7 +91,6 @@ NAMES = { "good_night": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.GOODNIGHT", "anti_crease": "HDRY_CMD&CTRL.PROGRAM_CYCLE_DETAIL.ANTICREASE_TITLE", "acqua_plus": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.ACQUAPLUS", - "auto_dose": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.AUTODOSE", "spin_speed": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_MAIN_OPTIONS.SPINSPEED", "still_hot": "IH.COILS_STATUS.STILL_HOT", "pan_status": "IH.COILS_STATUS.PAN",