From fb8fba259a177e404ce8712f3cab7fce8fa4e702 Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Mon, 10 Jul 2023 01:00:30 +0200 Subject: [PATCH] Add hygiene switch #91 --- README.md | 2 ++ custom_components/hon/switch.py | 6 ++++++ custom_components/hon/translations/cs.json | 3 +++ custom_components/hon/translations/de.json | 3 +++ custom_components/hon/translations/el.json | 3 +++ custom_components/hon/translations/en.json | 3 +++ custom_components/hon/translations/es.json | 3 +++ custom_components/hon/translations/fr.json | 3 +++ custom_components/hon/translations/he.json | 3 +++ custom_components/hon/translations/hr.json | 3 +++ custom_components/hon/translations/it.json | 3 +++ custom_components/hon/translations/nl.json | 3 +++ custom_components/hon/translations/pl.json | 3 +++ custom_components/hon/translations/pt.json | 3 +++ custom_components/hon/translations/ro.json | 3 +++ custom_components/hon/translations/ru.json | 3 +++ custom_components/hon/translations/sk.json | 3 +++ custom_components/hon/translations/sl.json | 3 +++ custom_components/hon/translations/sr.json | 3 +++ custom_components/hon/translations/tr.json | 3 +++ custom_components/hon/translations/zh.json | 3 +++ scripts/translation_keys.py | 1 + 22 files changed, 66 insertions(+) diff --git a/README.md b/README.md index 2507253..fa3993e 100644 --- a/README.md +++ b/README.md @@ -433,6 +433,7 @@ For every device exists a button under diagnostics which can be used to log all | 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` | +| Hygiene | `lotion-plus` | `switch` | `startProgram.hygiene` | | Keep Fresh | `refresh-circle` | `switch` | `startProgram.permanentPressStatus` | | Liquid Detergent Dose | `cup-water` | `sensor` | `startProgram.liquidDetergentDose` | | Main Wash Time | `clock-start` | `number` | `startProgram.mainWashTime` | @@ -503,6 +504,7 @@ For every device exists a button under diagnostics which can be used to log all | 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` | +| Hygiene | `lotion-plus` | `switch` | `startProgram.hygiene` | | Keep Fresh | `refresh-circle` | `switch` | `startProgram.permanentPressStatus` | | Liquid Detergent Dose | `cup-water` | `sensor` | `startProgram.liquidDetergentDose` | | Main Wash Time | `clock-start` | `number` | `startProgram.mainWashTime` | diff --git a/custom_components/hon/switch.py b/custom_components/hon/switch.py index bb93475..e96a681 100644 --- a/custom_components/hon/switch.py +++ b/custom_components/hon/switch.py @@ -116,6 +116,12 @@ SWITCHES: dict[str, tuple[HonSwitchEntityDescription, ...]] = { icon="mdi:weather-night", translation_key="good_night", ), + HonConfigSwitchEntityDescription( + key="startProgram.hygiene", + name="Hygiene", + icon="mdi:lotion-plus", + translation_key="hygiene", + ), ), "TD": ( HonControlSwitchEntityDescription( diff --git a/custom_components/hon/translations/cs.json b/custom_components/hon/translations/cs.json index 6b20f1c..7540f0c 100644 --- a/custom_components/hon/translations/cs.json +++ b/custom_components/hon/translations/cs.json @@ -1772,6 +1772,9 @@ }, "touch_tone": { "name": "Hlasitost tónu klepnutí" + }, + "hygiene": { + "name": "Hygienický plus" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/de.json b/custom_components/hon/translations/de.json index addc747..1d90d63 100644 --- a/custom_components/hon/translations/de.json +++ b/custom_components/hon/translations/de.json @@ -1772,6 +1772,9 @@ }, "touch_tone": { "name": "Tastentonlautstärke" + }, + "hygiene": { + "name": "Hygiene plus" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/el.json b/custom_components/hon/translations/el.json index 2976aa6..93fe842 100644 --- a/custom_components/hon/translations/el.json +++ b/custom_components/hon/translations/el.json @@ -1772,6 +1772,9 @@ }, "touch_tone": { "name": "Ένταση τόνου αφής" + }, + "hygiene": { + "name": "Hygiene plus" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/en.json b/custom_components/hon/translations/en.json index eb2bb92..88f2fe9 100644 --- a/custom_components/hon/translations/en.json +++ b/custom_components/hon/translations/en.json @@ -1799,6 +1799,9 @@ }, "touch_tone": { "name": "Touch tone volume" + }, + "hygiene": { + "name": "Hygiene plus" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/es.json b/custom_components/hon/translations/es.json index 8d4cad9..5bef66e 100644 --- a/custom_components/hon/translations/es.json +++ b/custom_components/hon/translations/es.json @@ -1772,6 +1772,9 @@ }, "touch_tone": { "name": "Volumen del tono táctil" + }, + "hygiene": { + "name": "Higiene extra" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/fr.json b/custom_components/hon/translations/fr.json index f97a77a..ecafc19 100644 --- a/custom_components/hon/translations/fr.json +++ b/custom_components/hon/translations/fr.json @@ -1772,6 +1772,9 @@ }, "touch_tone": { "name": "Volume des tonalités" + }, + "hygiene": { + "name": "Hygiène plus" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/he.json b/custom_components/hon/translations/he.json index fb71888..e9bbdde 100644 --- a/custom_components/hon/translations/he.json +++ b/custom_components/hon/translations/he.json @@ -893,6 +893,9 @@ }, "touch_tone": { "name": "Touch tone volume" + }, + "hygiene": { + "name": "היגיינה פלוס" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/hr.json b/custom_components/hon/translations/hr.json index 96e38c8..277a235 100644 --- a/custom_components/hon/translations/hr.json +++ b/custom_components/hon/translations/hr.json @@ -1772,6 +1772,9 @@ }, "touch_tone": { "name": "Glasnoća tona pri dodiru" + }, + "hygiene": { + "name": "Hygiene Plus" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/it.json b/custom_components/hon/translations/it.json index 02b9ce0..75e3098 100644 --- a/custom_components/hon/translations/it.json +++ b/custom_components/hon/translations/it.json @@ -1777,6 +1777,9 @@ }, "touch_tone": { "name": "Volume Tasti" + }, + "hygiene": { + "name": "Hygiene plus" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/nl.json b/custom_components/hon/translations/nl.json index e82b6ef..9dd4271 100644 --- a/custom_components/hon/translations/nl.json +++ b/custom_components/hon/translations/nl.json @@ -1772,6 +1772,9 @@ }, "touch_tone": { "name": "Volume van geluid bij aanraking" + }, + "hygiene": { + "name": "Hygiëne plus" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/pl.json b/custom_components/hon/translations/pl.json index 2259488..b742691 100644 --- a/custom_components/hon/translations/pl.json +++ b/custom_components/hon/translations/pl.json @@ -1772,6 +1772,9 @@ }, "touch_tone": { "name": "Dźwięk przycisku dotykowego" + }, + "hygiene": { + "name": "Higiena plus" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/pt.json b/custom_components/hon/translations/pt.json index 68b3506..4cf49c1 100644 --- a/custom_components/hon/translations/pt.json +++ b/custom_components/hon/translations/pt.json @@ -1772,6 +1772,9 @@ }, "touch_tone": { "name": "Volume do tom de toque" + }, + "hygiene": { + "name": "Higiene mais" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/ro.json b/custom_components/hon/translations/ro.json index ac8bfa1..c0a1c0e 100644 --- a/custom_components/hon/translations/ro.json +++ b/custom_components/hon/translations/ro.json @@ -1772,6 +1772,9 @@ }, "touch_tone": { "name": "Volum la atingerea tastelor" + }, + "hygiene": { + "name": "Igienizare plus" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/ru.json b/custom_components/hon/translations/ru.json index f6af1fe..7268daa 100644 --- a/custom_components/hon/translations/ru.json +++ b/custom_components/hon/translations/ru.json @@ -1772,6 +1772,9 @@ }, "touch_tone": { "name": "Громкость сенсорных кнопок" + }, + "hygiene": { + "name": "Гигиена плюс" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/sk.json b/custom_components/hon/translations/sk.json index f34d855..f6bb734 100644 --- a/custom_components/hon/translations/sk.json +++ b/custom_components/hon/translations/sk.json @@ -1772,6 +1772,9 @@ }, "touch_tone": { "name": "Hlasitosť tónu dotyku" + }, + "hygiene": { + "name": "Hygiena plus" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/sl.json b/custom_components/hon/translations/sl.json index 2d1ea9c..9b50292 100644 --- a/custom_components/hon/translations/sl.json +++ b/custom_components/hon/translations/sl.json @@ -1772,6 +1772,9 @@ }, "touch_tone": { "name": "Glasnost tona dotika" + }, + "hygiene": { + "name": "Higiena plus" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/sr.json b/custom_components/hon/translations/sr.json index 357f0f4..61e12aa 100644 --- a/custom_components/hon/translations/sr.json +++ b/custom_components/hon/translations/sr.json @@ -1772,6 +1772,9 @@ }, "touch_tone": { "name": "Jačina tona dodira" + }, + "hygiene": { + "name": "Higijenski plus" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/tr.json b/custom_components/hon/translations/tr.json index 30d30b2..4880fb9 100644 --- a/custom_components/hon/translations/tr.json +++ b/custom_components/hon/translations/tr.json @@ -1772,6 +1772,9 @@ }, "touch_tone": { "name": "Dokunma tonu seviyesi" + }, + "hygiene": { + "name": "Hygiene plus" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/zh.json b/custom_components/hon/translations/zh.json index 1d62115..684d7a5 100644 --- a/custom_components/hon/translations/zh.json +++ b/custom_components/hon/translations/zh.json @@ -1772,6 +1772,9 @@ }, "touch_tone": { "name": "按键音量" + }, + "hygiene": { + "name": "卫生增强" } }, "binary_sensor": { diff --git a/scripts/translation_keys.py b/scripts/translation_keys.py index 2855a0a..a427cb6 100644 --- a/scripts/translation_keys.py +++ b/scripts/translation_keys.py @@ -240,6 +240,7 @@ NAMES = { "super_freeze": "REF_CMD&CTRL.MODALITIES.SUPER_FREEZE", "refrigerator": "REF.NAME", "touch_tone": "AP.FOOTER_MENU_MORE.TOUCH_TONE_VOLUME", + "hygiene": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.HYGIENE", }, "binary_sensor": { "door_lock": "WASHING_CMD&CTRL.CHECK_UP_RESULTS.DOOR_LOCK",