diff --git a/README.md b/README.md index e5e4f34..67777c5 100644 --- a/README.md +++ b/README.md @@ -148,12 +148,12 @@ For every device exists a hidden button which can be used to log all infos of yo | Eco Mode | | `switch` | `ecoMode` | | Eco Pilot | `run` | `select` | `settings.humanSensingStatus` | | Health Mode | `medication-outline` | `switch` | `healthMode` | -| Mute | `volume-off` | `switch` | `muteStatus` | +| Night Mode | `bed` | `switch` | `silentSleepStatus` | | Rapid Mode | `run-fast` | `switch` | `rapidMode` | | Screen Display | `monitor-small` | `switch` | `screenDisplayStatus` | | Self Cleaning | `air-filter` | `switch` | `selfCleaningStatus` | | Self Cleaning 56 | `air-filter` | `switch` | `selfCleaning56Status` | -| Silent Sleep | `bed` | `switch` | `silentSleepStatus` | +| Silent Mode | `volume-off` | `switch` | `muteStatus` | | Target Temperature | `thermometer` | `number` | `settings.tempSel` | #### Sensors | Name | Icon | Entity | Key | diff --git a/custom_components/hon/switch.py b/custom_components/hon/switch.py index e69eaa5..a77aacd 100644 --- a/custom_components/hon/switch.py +++ b/custom_components/hon/switch.py @@ -5,8 +5,8 @@ from typing import Any from homeassistant.components.switch import SwitchEntityDescription, SwitchEntity from homeassistant.config_entries import ConfigEntry -from homeassistant.helpers.entity import EntityCategory from homeassistant.core import callback +from homeassistant.helpers.entity import EntityCategory from pyhon.parameter.base import HonParameter from pyhon.parameter.range import HonParameterRange @@ -262,9 +262,9 @@ SWITCHES: dict[str, tuple[HonSwitchEntityDescription, ...]] = { ), HonSwitchEntityDescription( key="muteStatus", - name="Mute", + name="Silent Mode", icon="mdi:volume-off", - translation_key="mute_mode", + translation_key="silent_mode", ), HonSwitchEntityDescription( key="rapidMode", @@ -291,9 +291,9 @@ SWITCHES: dict[str, tuple[HonSwitchEntityDescription, ...]] = { ), HonSwitchEntityDescription( key="silentSleepStatus", - name="Silent Sleep", + name="Night Mode", icon="mdi:bed", - translation_key="silent_mode", + translation_key="night_mode", ), ), "REF": ( diff --git a/custom_components/hon/translations/cs.json b/custom_components/hon/translations/cs.json index f801b0d..2bb309f 100644 --- a/custom_components/hon/translations/cs.json +++ b/custom_components/hon/translations/cs.json @@ -1706,6 +1706,9 @@ }, "refrigerator": { "name": "Chladnička" + }, + "night_mode": { + "name": "Noční režim" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/de.json b/custom_components/hon/translations/de.json index d2df5ef..c9a8302 100644 --- a/custom_components/hon/translations/de.json +++ b/custom_components/hon/translations/de.json @@ -1706,6 +1706,9 @@ }, "refrigerator": { "name": "Kühlschrank" + }, + "night_mode": { + "name": "Nachtmodus" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/el.json b/custom_components/hon/translations/el.json index 8fe6ba1..10c28a4 100644 --- a/custom_components/hon/translations/el.json +++ b/custom_components/hon/translations/el.json @@ -1706,6 +1706,9 @@ }, "refrigerator": { "name": "Ψυγείο" + }, + "night_mode": { + "name": "Νυχτερινή λειτουργία" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/en.json b/custom_components/hon/translations/en.json index 514c214..20bbfaa 100644 --- a/custom_components/hon/translations/en.json +++ b/custom_components/hon/translations/en.json @@ -1735,6 +1735,9 @@ }, "refrigerator": { "name": "Refrigerator" + }, + "night_mode": { + "name": "Night mode" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/es.json b/custom_components/hon/translations/es.json index cc3d0b6..12579ac 100644 --- a/custom_components/hon/translations/es.json +++ b/custom_components/hon/translations/es.json @@ -1706,6 +1706,9 @@ }, "refrigerator": { "name": "Frigorífico" + }, + "night_mode": { + "name": "Modo nocturno" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/fr.json b/custom_components/hon/translations/fr.json index 2478178..97024e1 100644 --- a/custom_components/hon/translations/fr.json +++ b/custom_components/hon/translations/fr.json @@ -1706,6 +1706,9 @@ }, "refrigerator": { "name": "Réfrigérateur" + }, + "night_mode": { + "name": "Mode nuit" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/he.json b/custom_components/hon/translations/he.json index a68d88c..ee08a39 100644 --- a/custom_components/hon/translations/he.json +++ b/custom_components/hon/translations/he.json @@ -831,6 +831,9 @@ }, "refrigerator": { "name": "Refrigerator" + }, + "night_mode": { + "name": "Night mode" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/hr.json b/custom_components/hon/translations/hr.json index 2c66312..4fe7c1d 100644 --- a/custom_components/hon/translations/hr.json +++ b/custom_components/hon/translations/hr.json @@ -1706,6 +1706,9 @@ }, "refrigerator": { "name": "Hladnjak" + }, + "night_mode": { + "name": "Noćni način rada" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/it.json b/custom_components/hon/translations/it.json index fe02131..2ca238f 100644 --- a/custom_components/hon/translations/it.json +++ b/custom_components/hon/translations/it.json @@ -1711,6 +1711,9 @@ }, "refrigerator": { "name": "Frigo" + }, + "night_mode": { + "name": "Modalità notte" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/nl.json b/custom_components/hon/translations/nl.json index 524522a..2e99758 100644 --- a/custom_components/hon/translations/nl.json +++ b/custom_components/hon/translations/nl.json @@ -1706,6 +1706,9 @@ }, "refrigerator": { "name": "Koelkast" + }, + "night_mode": { + "name": "Nachtmodus" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/pl.json b/custom_components/hon/translations/pl.json index 9a9513b..bead418 100644 --- a/custom_components/hon/translations/pl.json +++ b/custom_components/hon/translations/pl.json @@ -1706,6 +1706,9 @@ }, "refrigerator": { "name": "Lodówka" + }, + "night_mode": { + "name": "Tryb nocny" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/pt.json b/custom_components/hon/translations/pt.json index 1ad5fe1..a71e789 100644 --- a/custom_components/hon/translations/pt.json +++ b/custom_components/hon/translations/pt.json @@ -1706,6 +1706,9 @@ }, "refrigerator": { "name": "Frigorífico" + }, + "night_mode": { + "name": "Modo noturno" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/ro.json b/custom_components/hon/translations/ro.json index 820a2d7..4a562a1 100644 --- a/custom_components/hon/translations/ro.json +++ b/custom_components/hon/translations/ro.json @@ -1706,6 +1706,9 @@ }, "refrigerator": { "name": "Frigider" + }, + "night_mode": { + "name": "Modul noapte" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/ru.json b/custom_components/hon/translations/ru.json index 7c8eb0e..452bbb2 100644 --- a/custom_components/hon/translations/ru.json +++ b/custom_components/hon/translations/ru.json @@ -1706,6 +1706,9 @@ }, "refrigerator": { "name": "Холодильник" + }, + "night_mode": { + "name": "Ночной режим" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/sk.json b/custom_components/hon/translations/sk.json index 1967d9f..cfd0db3 100644 --- a/custom_components/hon/translations/sk.json +++ b/custom_components/hon/translations/sk.json @@ -1706,6 +1706,9 @@ }, "refrigerator": { "name": "Chladnička" + }, + "night_mode": { + "name": "Nočný režim" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/sl.json b/custom_components/hon/translations/sl.json index 5c22857..379f258 100644 --- a/custom_components/hon/translations/sl.json +++ b/custom_components/hon/translations/sl.json @@ -1706,6 +1706,9 @@ }, "refrigerator": { "name": "Hladilnik" + }, + "night_mode": { + "name": "Nočni način" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/sr.json b/custom_components/hon/translations/sr.json index f86e6de..7ba5f27 100644 --- a/custom_components/hon/translations/sr.json +++ b/custom_components/hon/translations/sr.json @@ -1706,6 +1706,9 @@ }, "refrigerator": { "name": "Frižider" + }, + "night_mode": { + "name": "Noćni režim" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/tr.json b/custom_components/hon/translations/tr.json index c32c931..3220505 100644 --- a/custom_components/hon/translations/tr.json +++ b/custom_components/hon/translations/tr.json @@ -1706,6 +1706,9 @@ }, "refrigerator": { "name": "Buzdolabı" + }, + "night_mode": { + "name": "Gece modu" } }, "binary_sensor": { diff --git a/custom_components/hon/translations/zh.json b/custom_components/hon/translations/zh.json index c6a628c..1f2292b 100644 --- a/custom_components/hon/translations/zh.json +++ b/custom_components/hon/translations/zh.json @@ -1706,6 +1706,9 @@ }, "refrigerator": { "name": "冰箱" + }, + "night_mode": { + "name": "夜间模式" } }, "binary_sensor": { diff --git a/scripts/translation_keys.py b/scripts/translation_keys.py index 3f45cb1..41da415 100644 --- a/scripts/translation_keys.py +++ b/scripts/translation_keys.py @@ -198,7 +198,7 @@ NAMES = { "self_clean": "PROGRAMS.AC.IOT_SELF_CLEAN", "self_clean_56": "PROGRAMS.AC.IOT_SELF_CLEAN_56", "silent_mode": "AC.PROGRAM_DETAIL.SILENT_MODE", - "mute_mode": "AC.PROGRAM_DETAIL.MUTE_MODE", + "night_mode": "AC.PROGRAM_CARD.NIGHT", "extra_rinse_1": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.EXTRARINSE1", "extra_rinse_2": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.EXTRARINSE2", "extra_rinse_3": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.EXTRARINSE3",