Fix wrong name for silent mode #52

This commit is contained in:
Andre Basche 2023-06-22 13:31:26 +02:00
parent 0d43eeff3d
commit 4b1f500f90
22 changed files with 65 additions and 8 deletions

View file

@ -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 |

View file

@ -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": (

View file

@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Chladnička"
},
"night_mode": {
"name": "Noční režim"
}
},
"binary_sensor": {

View file

@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Kühlschrank"
},
"night_mode": {
"name": "Nachtmodus"
}
},
"binary_sensor": {

View file

@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Ψυγείο"
},
"night_mode": {
"name": "Νυχτερινή λειτουργία"
}
},
"binary_sensor": {

View file

@ -1735,6 +1735,9 @@
},
"refrigerator": {
"name": "Refrigerator"
},
"night_mode": {
"name": "Night mode"
}
},
"binary_sensor": {

View file

@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Frigorífico"
},
"night_mode": {
"name": "Modo nocturno"
}
},
"binary_sensor": {

View file

@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Réfrigérateur"
},
"night_mode": {
"name": "Mode nuit"
}
},
"binary_sensor": {

View file

@ -831,6 +831,9 @@
},
"refrigerator": {
"name": "Refrigerator"
},
"night_mode": {
"name": "Night mode"
}
},
"binary_sensor": {

View file

@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Hladnjak"
},
"night_mode": {
"name": "Noćni način rada"
}
},
"binary_sensor": {

View file

@ -1711,6 +1711,9 @@
},
"refrigerator": {
"name": "Frigo"
},
"night_mode": {
"name": "Modalità notte"
}
},
"binary_sensor": {

View file

@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Koelkast"
},
"night_mode": {
"name": "Nachtmodus"
}
},
"binary_sensor": {

View file

@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Lodówka"
},
"night_mode": {
"name": "Tryb nocny"
}
},
"binary_sensor": {

View file

@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Frigorífico"
},
"night_mode": {
"name": "Modo noturno"
}
},
"binary_sensor": {

View file

@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Frigider"
},
"night_mode": {
"name": "Modul noapte"
}
},
"binary_sensor": {

View file

@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Холодильник"
},
"night_mode": {
"name": "Ночной режим"
}
},
"binary_sensor": {

View file

@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Chladnička"
},
"night_mode": {
"name": "Nočný režim"
}
},
"binary_sensor": {

View file

@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Hladilnik"
},
"night_mode": {
"name": "Nočni način"
}
},
"binary_sensor": {

View file

@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Frižider"
},
"night_mode": {
"name": "Noćni režim"
}
},
"binary_sensor": {

View file

@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "Buzdolabı"
},
"night_mode": {
"name": "Gece modu"
}
},
"binary_sensor": {

View file

@ -1706,6 +1706,9 @@
},
"refrigerator": {
"name": "冰箱"
},
"night_mode": {
"name": "夜间模式"
}
},
"binary_sensor": {

View file

@ -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",