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 Mode | | `switch` | `ecoMode` |
| Eco Pilot | `run` | `select` | `settings.humanSensingStatus` | | Eco Pilot | `run` | `select` | `settings.humanSensingStatus` |
| Health Mode | `medication-outline` | `switch` | `healthMode` | | Health Mode | `medication-outline` | `switch` | `healthMode` |
| Mute | `volume-off` | `switch` | `muteStatus` | | Night Mode | `bed` | `switch` | `silentSleepStatus` |
| Rapid Mode | `run-fast` | `switch` | `rapidMode` | | Rapid Mode | `run-fast` | `switch` | `rapidMode` |
| Screen Display | `monitor-small` | `switch` | `screenDisplayStatus` | | Screen Display | `monitor-small` | `switch` | `screenDisplayStatus` |
| Self Cleaning | `air-filter` | `switch` | `selfCleaningStatus` | | Self Cleaning | `air-filter` | `switch` | `selfCleaningStatus` |
| Self Cleaning 56 | `air-filter` | `switch` | `selfCleaning56Status` | | Self Cleaning 56 | `air-filter` | `switch` | `selfCleaning56Status` |
| Silent Sleep | `bed` | `switch` | `silentSleepStatus` | | Silent Mode | `volume-off` | `switch` | `muteStatus` |
| Target Temperature | `thermometer` | `number` | `settings.tempSel` | | Target Temperature | `thermometer` | `number` | `settings.tempSel` |
#### Sensors #### Sensors
| Name | Icon | Entity | Key | | Name | Icon | Entity | Key |

View file

@ -5,8 +5,8 @@ from typing import Any
from homeassistant.components.switch import SwitchEntityDescription, SwitchEntity from homeassistant.components.switch import SwitchEntityDescription, SwitchEntity
from homeassistant.config_entries import ConfigEntry from homeassistant.config_entries import ConfigEntry
from homeassistant.helpers.entity import EntityCategory
from homeassistant.core import callback from homeassistant.core import callback
from homeassistant.helpers.entity import EntityCategory
from pyhon.parameter.base import HonParameter from pyhon.parameter.base import HonParameter
from pyhon.parameter.range import HonParameterRange from pyhon.parameter.range import HonParameterRange
@ -262,9 +262,9 @@ SWITCHES: dict[str, tuple[HonSwitchEntityDescription, ...]] = {
), ),
HonSwitchEntityDescription( HonSwitchEntityDescription(
key="muteStatus", key="muteStatus",
name="Mute", name="Silent Mode",
icon="mdi:volume-off", icon="mdi:volume-off",
translation_key="mute_mode", translation_key="silent_mode",
), ),
HonSwitchEntityDescription( HonSwitchEntityDescription(
key="rapidMode", key="rapidMode",
@ -291,9 +291,9 @@ SWITCHES: dict[str, tuple[HonSwitchEntityDescription, ...]] = {
), ),
HonSwitchEntityDescription( HonSwitchEntityDescription(
key="silentSleepStatus", key="silentSleepStatus",
name="Silent Sleep", name="Night Mode",
icon="mdi:bed", icon="mdi:bed",
translation_key="silent_mode", translation_key="night_mode",
), ),
), ),
"REF": ( "REF": (

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -198,7 +198,7 @@ NAMES = {
"self_clean": "PROGRAMS.AC.IOT_SELF_CLEAN", "self_clean": "PROGRAMS.AC.IOT_SELF_CLEAN",
"self_clean_56": "PROGRAMS.AC.IOT_SELF_CLEAN_56", "self_clean_56": "PROGRAMS.AC.IOT_SELF_CLEAN_56",
"silent_mode": "AC.PROGRAM_DETAIL.SILENT_MODE", "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_1": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.EXTRARINSE1",
"extra_rinse_2": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.EXTRARINSE2", "extra_rinse_2": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.EXTRARINSE2",
"extra_rinse_3": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.EXTRARINSE3", "extra_rinse_3": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.EXTRARINSE3",