mirror of
https://github.com/Andre0512/hon.git
synced 2024-01-19 02:50:19 +00:00
Add some fridge sensors, change some configs to controls
This commit is contained in:
parent
604cf1b3c6
commit
81676771c7
33
README.md
33
README.md
|
@ -151,34 +151,37 @@ For every device exists a hidden button which can be used to log all infos of yo
|
||||||
#### Controls
|
#### Controls
|
||||||
| Name | Icon | Entity | Key |
|
| Name | Icon | Entity | Key |
|
||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| Air Conditioner | `air-conditioner` | `climate` | `settings` |
|
|
||||||
#### Configs
|
|
||||||
| Name | Icon | Entity | Key |
|
|
||||||
| --- | --- | --- | --- |
|
|
||||||
| 10° Heating | `heat-wave` | `switch` | `settings.10degreeHeatingStatus` |
|
| 10° Heating | `heat-wave` | `switch` | `settings.10degreeHeatingStatus` |
|
||||||
|
| Air Conditioner | `air-conditioner` | `climate` | `settings` |
|
||||||
| Echo | `account-voice` | `switch` | `settings.echoStatus` |
|
| Echo | `account-voice` | `switch` | `settings.echoStatus` |
|
||||||
| Eco Mode | | `switch` | `settings.ecoMode` |
|
| Eco Mode | | `switch` | `settings.ecoMode` |
|
||||||
| Eco Pilot | `run` | `select` | `settings.humanSensingStatus` |
|
|
||||||
| Health Mode | `medication-outline` | `switch` | `settings.healthMode` |
|
| Health Mode | `medication-outline` | `switch` | `settings.healthMode` |
|
||||||
| Mute | `volume-off` | `switch` | `settings.muteStatus` |
|
| Mute | `volume-off` | `switch` | `settings.muteStatus` |
|
||||||
| Program | | `select` | `startProgram.program` |
|
|
||||||
| Rapid Mode | `run-fast` | `switch` | `settings.rapidMode` |
|
| Rapid Mode | `run-fast` | `switch` | `settings.rapidMode` |
|
||||||
| Screen Display | `monitor-small` | `switch` | `settings.screenDisplayStatus` |
|
| Screen Display | `monitor-small` | `switch` | `settings.screenDisplayStatus` |
|
||||||
| Self Cleaning | `air-filter` | `switch` | `settings.selfCleaningStatus` |
|
| Self Cleaning | `air-filter` | `switch` | `settings.selfCleaningStatus` |
|
||||||
| Self Cleaning 56 | `air-filter` | `switch` | `settings.selfCleaning56Status` |
|
| Self Cleaning 56 | `air-filter` | `switch` | `settings.selfCleaning56Status` |
|
||||||
| Silent Sleep | `bed` | `switch` | `settings.silentSleepStatus` |
|
| Silent Sleep | `bed` | `switch` | `settings.silentSleepStatus` |
|
||||||
|
#### Configs
|
||||||
|
| Name | Icon | Entity | Key |
|
||||||
|
| --- | --- | --- | --- |
|
||||||
|
| Program | | `select` | `startProgram.program` |
|
||||||
|
#### Sensors
|
||||||
|
| Name | Icon | Entity | Key |
|
||||||
|
| --- | --- | --- | --- |
|
||||||
|
| Eco Pilot | `run` | `select` | `settings.humanSensingStatus` |
|
||||||
| Target Temperature | `thermometer` | `number` | `settings.tempSel` |
|
| Target Temperature | `thermometer` | `number` | `settings.tempSel` |
|
||||||
|
|
||||||
### Dish washer
|
### Dish washer
|
||||||
#### Controls
|
#### Controls
|
||||||
| Name | Icon | Entity | Key |
|
| Name | Icon | Entity | Key |
|
||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
|
| Buzzer Disabled | `volume-off` | `switch` | `settings.buzzerDisabled` |
|
||||||
| Dish Washer | `dishwasher` | `switch` | `startProgram` / `stopProgram` |
|
| Dish Washer | `dishwasher` | `switch` | `startProgram` / `stopProgram` |
|
||||||
#### Configs
|
#### Configs
|
||||||
| Name | Icon | Entity | Key |
|
| Name | Icon | Entity | Key |
|
||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| Add Dish | `silverware-fork-knife` | `switch` | `startProgram.addDish` |
|
| Add Dish | `silverware-fork-knife` | `switch` | `startProgram.addDish` |
|
||||||
| Buzzer Disabled | `volume-off` | `switch` | `settings.buzzerDisabled` |
|
|
||||||
| Delay time | `timer-plus` | `number` | `startProgram.delayTime` |
|
| Delay time | `timer-plus` | `number` | `startProgram.delayTime` |
|
||||||
| Eco Express | `sprout` | `switch` | `startProgram.ecoExpress` |
|
| Eco Express | `sprout` | `switch` | `startProgram.ecoExpress` |
|
||||||
| Eco Index | `sprout` | `sensor` | `startProgram.ecoIndex` |
|
| Eco Index | `sprout` | `sensor` | `startProgram.ecoIndex` |
|
||||||
|
@ -255,23 +258,31 @@ For every device exists a hidden button which can be used to log all infos of yo
|
||||||
| Temperature Selected | `thermometer` | `sensor` | `tempSel` |
|
| Temperature Selected | `thermometer` | `sensor` | `tempSel` |
|
||||||
|
|
||||||
### Fridge
|
### Fridge
|
||||||
|
#### Controls
|
||||||
|
| Name | Icon | Entity | Key |
|
||||||
|
| --- | --- | --- | --- |
|
||||||
|
| Auto-Set Mode | `thermometer-auto` | `switch` | `settings.intelligenceMode` |
|
||||||
|
| Super Cool | `snowflake` | `switch` | `settings.quickModeZ2` |
|
||||||
|
| Super Freeze | `snowflake-variant` | `switch` | `settings.quickModeZ1` |
|
||||||
#### Configs
|
#### Configs
|
||||||
| Name | Icon | Entity | Key |
|
| Name | Icon | Entity | Key |
|
||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| Freezer Temperature | `thermometer` | `number` | `settings.tempSelZ2` |
|
|
||||||
| Fridge Temperature | `thermometer` | `number` | `settings.tempSelZ1` |
|
|
||||||
| Program | | `select` | `startProgram.program` |
|
| Program | | `select` | `startProgram.program` |
|
||||||
#### Sensors
|
#### Sensors
|
||||||
| Name | Icon | Entity | Key |
|
| Name | Icon | Entity | Key |
|
||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| Auto-Set Mode | `robot-outline` | `binary_sensor` | `intelligenceMode` |
|
| Auto-Set Mode | `thermometer-auto` | `binary_sensor` | `intelligenceMode` |
|
||||||
| Door Status Freezer | `fridge-top` | `binary_sensor` | `doorStatusZ1` |
|
| Door Status Freezer | `fridge-top` | `binary_sensor` | `doorStatusZ1` |
|
||||||
| Door Status Fridge | `fridge-bottom` | `binary_sensor` | `door2StatusZ1` |
|
| Door Status Fridge | `fridge-bottom` | `binary_sensor` | `door2StatusZ1` |
|
||||||
|
| Freezer Temperature | `thermometer` | `number` | `settings.tempSelZ2` |
|
||||||
|
| Fridge Temperature | `thermometer` | `number` | `settings.tempSelZ1` |
|
||||||
| Holiday Mode | `palm-tree` | `binary_sensor` | `holidayMode` |
|
| Holiday Mode | `palm-tree` | `binary_sensor` | `holidayMode` |
|
||||||
| Room Humidity | `water-percent` | `sensor` | `humidityEnv` |
|
| Room Humidity | `water-percent` | `sensor` | `humidityEnv` |
|
||||||
| Room Temperature | `thermometer` | `sensor` | `tempEnv` |
|
| Room Temperature | `home-thermometer-outline` | `sensor` | `tempEnv` |
|
||||||
| Super Cool | `snowflake` | `binary_sensor` | `quickModeZ2` |
|
| Super Cool | `snowflake` | `binary_sensor` | `quickModeZ2` |
|
||||||
| Super Freeze | `snowflake-variant` | `binary_sensor` | `quickModeZ1` |
|
| Super Freeze | `snowflake-variant` | `binary_sensor` | `quickModeZ1` |
|
||||||
|
| Temperature Freezer | `snowflake-thermometer` | `sensor` | `tempZ2` |
|
||||||
|
| Temperature Fridge | `thermometer` | `sensor` | `tempZ1` |
|
||||||
|
|
||||||
### Tumble dryer
|
### Tumble dryer
|
||||||
#### Controls
|
#### Controls
|
||||||
|
|
|
@ -215,7 +215,7 @@ BINARY_SENSORS: dict[str, tuple[HonBinarySensorEntityDescription, ...]] = {
|
||||||
HonBinarySensorEntityDescription(
|
HonBinarySensorEntityDescription(
|
||||||
key="intelligenceMode",
|
key="intelligenceMode",
|
||||||
name="Auto-Set Mode",
|
name="Auto-Set Mode",
|
||||||
icon="mdi:robot-outline",
|
icon="mdi:thermometer-auto",
|
||||||
device_class=BinarySensorDeviceClass.RUNNING,
|
device_class=BinarySensorDeviceClass.RUNNING,
|
||||||
on_value="1",
|
on_value="1",
|
||||||
translation_key="auto_set",
|
translation_key="auto_set",
|
||||||
|
|
|
@ -147,7 +147,6 @@ NUMBERS: dict[str, tuple[NumberEntityDescription, ...]] = {
|
||||||
NumberEntityDescription(
|
NumberEntityDescription(
|
||||||
key="settings.tempSel",
|
key="settings.tempSel",
|
||||||
name="Target Temperature",
|
name="Target Temperature",
|
||||||
entity_category=EntityCategory.CONFIG,
|
|
||||||
icon="mdi:thermometer",
|
icon="mdi:thermometer",
|
||||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
translation_key="target_temperature",
|
translation_key="target_temperature",
|
||||||
|
@ -157,7 +156,6 @@ NUMBERS: dict[str, tuple[NumberEntityDescription, ...]] = {
|
||||||
NumberEntityDescription(
|
NumberEntityDescription(
|
||||||
key="settings.tempSelZ1",
|
key="settings.tempSelZ1",
|
||||||
name="Fridge Temperature",
|
name="Fridge Temperature",
|
||||||
entity_category=EntityCategory.CONFIG,
|
|
||||||
icon="mdi:thermometer",
|
icon="mdi:thermometer",
|
||||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
translation_key="fridge_temp_sel",
|
translation_key="fridge_temp_sel",
|
||||||
|
@ -165,7 +163,6 @@ NUMBERS: dict[str, tuple[NumberEntityDescription, ...]] = {
|
||||||
NumberEntityDescription(
|
NumberEntityDescription(
|
||||||
key="settings.tempSelZ2",
|
key="settings.tempSelZ2",
|
||||||
name="Freezer Temperature",
|
name="Freezer Temperature",
|
||||||
entity_category=EntityCategory.CONFIG,
|
|
||||||
icon="mdi:thermometer",
|
icon="mdi:thermometer",
|
||||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
translation_key="freezer_temp_sel",
|
translation_key="freezer_temp_sel",
|
||||||
|
@ -226,8 +223,6 @@ class HonNumberEntity(HonEntity, NumberEntity):
|
||||||
setting.value = value
|
setting.value = value
|
||||||
if "settings." in self.entity_description.key:
|
if "settings." in self.entity_description.key:
|
||||||
await self._device.commands["settings"].send()
|
await self._device.commands["settings"].send()
|
||||||
elif self._device.appliance_type in ["AC"]:
|
|
||||||
await self._device.commands["startProgram"].send()
|
|
||||||
await self.coordinator.async_refresh()
|
await self.coordinator.async_refresh()
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
|
@ -239,3 +234,16 @@ class HonNumberEntity(HonEntity, NumberEntity):
|
||||||
self._attr_native_step = setting.step
|
self._attr_native_step = setting.step
|
||||||
self._attr_native_value = setting.value
|
self._attr_native_value = setting.value
|
||||||
self.async_write_ha_state()
|
self.async_write_ha_state()
|
||||||
|
|
||||||
|
@property
|
||||||
|
def available(self) -> bool:
|
||||||
|
"""Return True if entity is available."""
|
||||||
|
if self.entity_category == EntityCategory.CONFIG:
|
||||||
|
return super().available
|
||||||
|
else:
|
||||||
|
return (
|
||||||
|
super().available
|
||||||
|
and self._device.get("remoteCtrValid") == "1"
|
||||||
|
and self._device.get("attributes.lastConnEvent.category")
|
||||||
|
!= "DISCONNECTED"
|
||||||
|
)
|
||||||
|
|
|
@ -2,15 +2,15 @@ from __future__ import annotations
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from pyhon import Hon
|
||||||
|
from pyhon.appliance import HonAppliance
|
||||||
|
from pyhon.parameter.fixed import HonParameterFixed
|
||||||
|
|
||||||
from homeassistant.components.select import SelectEntity, SelectEntityDescription
|
from homeassistant.components.select import SelectEntity, SelectEntityDescription
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import UnitOfTemperature, UnitOfTime, REVOLUTIONS_PER_MINUTE
|
from homeassistant.const import UnitOfTemperature, UnitOfTime, REVOLUTIONS_PER_MINUTE
|
||||||
from homeassistant.core import callback
|
from homeassistant.core import callback
|
||||||
from homeassistant.helpers.entity import EntityCategory
|
from homeassistant.helpers.entity import EntityCategory
|
||||||
from pyhon import Hon
|
|
||||||
from pyhon.appliance import HonAppliance
|
|
||||||
from pyhon.parameter.fixed import HonParameterFixed
|
|
||||||
|
|
||||||
from .const import DOMAIN
|
from .const import DOMAIN
|
||||||
from .hon import HonEntity, HonCoordinator, unique_entities
|
from .hon import HonEntity, HonCoordinator, unique_entities
|
||||||
|
|
||||||
|
@ -115,7 +115,6 @@ SELECTS = {
|
||||||
key="settings.humanSensingStatus",
|
key="settings.humanSensingStatus",
|
||||||
name="Eco Pilot",
|
name="Eco Pilot",
|
||||||
icon="mdi:run",
|
icon="mdi:run",
|
||||||
entity_category=EntityCategory.CONFIG,
|
|
||||||
translation_key="eco_pilot",
|
translation_key="eco_pilot",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -168,7 +167,7 @@ class HonSelectEntity(HonEntity, SelectEntity):
|
||||||
if not (setting := self._device.settings.get(description.key)):
|
if not (setting := self._device.settings.get(description.key)):
|
||||||
self._attr_options: list[str] = []
|
self._attr_options: list[str] = []
|
||||||
elif not isinstance(setting, HonParameterFixed):
|
elif not isinstance(setting, HonParameterFixed):
|
||||||
self._attr_options: list[str] = setting.value
|
self._attr_options: list[str] = setting.values
|
||||||
else:
|
else:
|
||||||
self._attr_options: list[str] = [setting.value]
|
self._attr_options: list[str] = [setting.value]
|
||||||
|
|
||||||
|
@ -199,3 +198,16 @@ class HonSelectEntity(HonEntity, SelectEntity):
|
||||||
self._attr_options: list[str] = setting.values
|
self._attr_options: list[str] = setting.values
|
||||||
self._attr_native_value = setting.value
|
self._attr_native_value = setting.value
|
||||||
self.async_write_ha_state()
|
self.async_write_ha_state()
|
||||||
|
|
||||||
|
@property
|
||||||
|
def available(self) -> bool:
|
||||||
|
"""Return True if entity is available."""
|
||||||
|
if self.entity_category == EntityCategory.CONFIG:
|
||||||
|
return super().available
|
||||||
|
else:
|
||||||
|
return (
|
||||||
|
super().available
|
||||||
|
and self._device.get("remoteCtrValid") == "1"
|
||||||
|
and self._device.get("attributes.lastConnEvent.category")
|
||||||
|
!= "DISCONNECTED"
|
||||||
|
)
|
||||||
|
|
|
@ -412,12 +412,30 @@ SENSORS: dict[str, tuple[SensorEntityDescription, ...]] = {
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="tempEnv",
|
key="tempEnv",
|
||||||
name="Room Temperature",
|
name="Room Temperature",
|
||||||
icon="mdi:thermometer",
|
icon="mdi:home-thermometer-outline",
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
device_class=SensorDeviceClass.TEMPERATURE,
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
translation_key="room_temperature",
|
translation_key="room_temperature",
|
||||||
),
|
),
|
||||||
|
SensorEntityDescription(
|
||||||
|
key="tempZ1",
|
||||||
|
name="Temperature Fridge",
|
||||||
|
icon="mdi:thermometer",
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
|
translation_key="fridge_temp",
|
||||||
|
),
|
||||||
|
SensorEntityDescription(
|
||||||
|
key="tempZ2",
|
||||||
|
name="Temperature Freezer",
|
||||||
|
icon="mdi:snowflake-thermometer",
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
|
translation_key="freezer_temp",
|
||||||
|
),
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
SENSORS["WD"] = unique_entities(SENSORS["WM"], SENSORS["TD"])
|
SENSORS["WD"] = unique_entities(SENSORS["WM"], SENSORS["TD"])
|
||||||
|
|
|
@ -245,7 +245,6 @@ SWITCHES: dict[str, tuple[HonSwitchEntityDescription, ...]] = {
|
||||||
key="settings.buzzerDisabled",
|
key="settings.buzzerDisabled",
|
||||||
name="Buzzer Disabled",
|
name="Buzzer Disabled",
|
||||||
icon="mdi:volume-off",
|
icon="mdi:volume-off",
|
||||||
entity_category=EntityCategory.CONFIG,
|
|
||||||
translation_key="buzzer",
|
translation_key="buzzer",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -254,69 +253,79 @@ SWITCHES: dict[str, tuple[HonSwitchEntityDescription, ...]] = {
|
||||||
key="settings.10degreeHeatingStatus",
|
key="settings.10degreeHeatingStatus",
|
||||||
name="10° Heating",
|
name="10° Heating",
|
||||||
icon="mdi:heat-wave",
|
icon="mdi:heat-wave",
|
||||||
entity_category=EntityCategory.CONFIG,
|
|
||||||
translation_key="10_degree_heating",
|
translation_key="10_degree_heating",
|
||||||
),
|
),
|
||||||
HonSwitchEntityDescription(
|
HonSwitchEntityDescription(
|
||||||
key="settings.echoStatus",
|
key="settings.echoStatus",
|
||||||
name="Echo",
|
name="Echo",
|
||||||
icon="mdi:account-voice",
|
icon="mdi:account-voice",
|
||||||
entity_category=EntityCategory.CONFIG,
|
|
||||||
),
|
),
|
||||||
HonSwitchEntityDescription(
|
HonSwitchEntityDescription(
|
||||||
key="settings.ecoMode",
|
key="settings.ecoMode",
|
||||||
name="Eco Mode",
|
name="Eco Mode",
|
||||||
entity_category=EntityCategory.CONFIG,
|
|
||||||
translation_key="eco_mode",
|
translation_key="eco_mode",
|
||||||
),
|
),
|
||||||
HonSwitchEntityDescription(
|
HonSwitchEntityDescription(
|
||||||
key="settings.healthMode",
|
key="settings.healthMode",
|
||||||
name="Health Mode",
|
name="Health Mode",
|
||||||
icon="mdi:medication-outline",
|
icon="mdi:medication-outline",
|
||||||
entity_category=EntityCategory.CONFIG,
|
|
||||||
),
|
),
|
||||||
HonSwitchEntityDescription(
|
HonSwitchEntityDescription(
|
||||||
key="settings.muteStatus",
|
key="settings.muteStatus",
|
||||||
name="Mute",
|
name="Mute",
|
||||||
icon="mdi:volume-off",
|
icon="mdi:volume-off",
|
||||||
entity_category=EntityCategory.CONFIG,
|
|
||||||
translation_key="mute_mode",
|
translation_key="mute_mode",
|
||||||
),
|
),
|
||||||
HonSwitchEntityDescription(
|
HonSwitchEntityDescription(
|
||||||
key="settings.rapidMode",
|
key="settings.rapidMode",
|
||||||
name="Rapid Mode",
|
name="Rapid Mode",
|
||||||
icon="mdi:run-fast",
|
icon="mdi:run-fast",
|
||||||
entity_category=EntityCategory.CONFIG,
|
|
||||||
translation_key="rapid_mode",
|
translation_key="rapid_mode",
|
||||||
),
|
),
|
||||||
HonSwitchEntityDescription(
|
HonSwitchEntityDescription(
|
||||||
key="settings.screenDisplayStatus",
|
key="settings.screenDisplayStatus",
|
||||||
name="Screen Display",
|
name="Screen Display",
|
||||||
icon="mdi:monitor-small",
|
icon="mdi:monitor-small",
|
||||||
entity_category=EntityCategory.CONFIG,
|
|
||||||
),
|
),
|
||||||
HonSwitchEntityDescription(
|
HonSwitchEntityDescription(
|
||||||
key="settings.selfCleaning56Status",
|
key="settings.selfCleaning56Status",
|
||||||
name="Self Cleaning 56",
|
name="Self Cleaning 56",
|
||||||
icon="mdi:air-filter",
|
icon="mdi:air-filter",
|
||||||
entity_category=EntityCategory.CONFIG,
|
|
||||||
translation_key="self_clean_56",
|
translation_key="self_clean_56",
|
||||||
),
|
),
|
||||||
HonSwitchEntityDescription(
|
HonSwitchEntityDescription(
|
||||||
key="settings.selfCleaningStatus",
|
key="settings.selfCleaningStatus",
|
||||||
name="Self Cleaning",
|
name="Self Cleaning",
|
||||||
icon="mdi:air-filter",
|
icon="mdi:air-filter",
|
||||||
entity_category=EntityCategory.CONFIG,
|
|
||||||
translation_key="self_clean",
|
translation_key="self_clean",
|
||||||
),
|
),
|
||||||
HonSwitchEntityDescription(
|
HonSwitchEntityDescription(
|
||||||
key="settings.silentSleepStatus",
|
key="settings.silentSleepStatus",
|
||||||
name="Silent Sleep",
|
name="Silent Sleep",
|
||||||
icon="mdi:bed",
|
icon="mdi:bed",
|
||||||
entity_category=EntityCategory.CONFIG,
|
|
||||||
translation_key="silent_mode",
|
translation_key="silent_mode",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
"REF": (
|
||||||
|
HonSwitchEntityDescription(
|
||||||
|
key="settings.intelligenceMode",
|
||||||
|
name="Auto-Set Mode",
|
||||||
|
icon="mdi:thermometer-auto",
|
||||||
|
translation_key="auto_set",
|
||||||
|
),
|
||||||
|
HonSwitchEntityDescription(
|
||||||
|
key="settings.quickModeZ1",
|
||||||
|
name="Super Freeze",
|
||||||
|
icon="mdi:snowflake-variant",
|
||||||
|
translation_key="super_freeze",
|
||||||
|
),
|
||||||
|
HonSwitchEntityDescription(
|
||||||
|
key="settings.quickModeZ2",
|
||||||
|
name="Super Cool",
|
||||||
|
icon="mdi:snowflake",
|
||||||
|
translation_key="super_cool",
|
||||||
|
),
|
||||||
|
),
|
||||||
}
|
}
|
||||||
|
|
||||||
SWITCHES["WD"] = unique_entities(SWITCHES["WD"], SWITCHES["WM"])
|
SWITCHES["WD"] = unique_entities(SWITCHES["WD"], SWITCHES["WM"])
|
||||||
|
@ -386,7 +395,10 @@ class HonSwitchEntity(HonEntity, SwitchEntity):
|
||||||
return self._device.get(self.entity_description.key, False)
|
return self._device.get(self.entity_description.key, False)
|
||||||
|
|
||||||
async def async_turn_on(self, **kwargs: Any) -> None:
|
async def async_turn_on(self, **kwargs: Any) -> None:
|
||||||
if self.entity_category == EntityCategory.CONFIG:
|
if (
|
||||||
|
self.entity_category == EntityCategory.CONFIG
|
||||||
|
or "settings." in self.entity_description.key
|
||||||
|
):
|
||||||
setting = self._device.settings[self.entity_description.key]
|
setting = self._device.settings[self.entity_description.key]
|
||||||
setting.value = (
|
setting.value = (
|
||||||
setting.max if isinstance(setting, HonParameterRange) else "1"
|
setting.max if isinstance(setting, HonParameterRange) else "1"
|
||||||
|
@ -394,14 +406,15 @@ class HonSwitchEntity(HonEntity, SwitchEntity):
|
||||||
self.async_write_ha_state()
|
self.async_write_ha_state()
|
||||||
if "settings." in self.entity_description.key:
|
if "settings." in self.entity_description.key:
|
||||||
await self._device.commands["settings"].send()
|
await self._device.commands["settings"].send()
|
||||||
elif self._device.appliance_type in ["AC"]:
|
|
||||||
await self._device.commands["startProgram"].send()
|
|
||||||
await self.coordinator.async_refresh()
|
await self.coordinator.async_refresh()
|
||||||
else:
|
else:
|
||||||
await self._device.commands[self.entity_description.turn_on_key].send()
|
await self._device.commands[self.entity_description.turn_on_key].send()
|
||||||
|
|
||||||
async def async_turn_off(self, **kwargs: Any) -> None:
|
async def async_turn_off(self, **kwargs: Any) -> None:
|
||||||
if self.entity_category == EntityCategory.CONFIG:
|
if (
|
||||||
|
self.entity_category == EntityCategory.CONFIG
|
||||||
|
or "settings." in self.entity_description.key
|
||||||
|
):
|
||||||
setting = self._device.settings[self.entity_description.key]
|
setting = self._device.settings[self.entity_description.key]
|
||||||
setting.value = (
|
setting.value = (
|
||||||
setting.min if isinstance(setting, HonParameterRange) else "0"
|
setting.min if isinstance(setting, HonParameterRange) else "0"
|
||||||
|
@ -409,8 +422,6 @@ class HonSwitchEntity(HonEntity, SwitchEntity):
|
||||||
self.async_write_ha_state()
|
self.async_write_ha_state()
|
||||||
if "settings." in self.entity_description.key:
|
if "settings." in self.entity_description.key:
|
||||||
await self._device.commands["settings"].send()
|
await self._device.commands["settings"].send()
|
||||||
elif self._device.appliance_type in ["AC"]:
|
|
||||||
await self._device.commands["startProgram"].send()
|
|
||||||
await self.coordinator.async_refresh()
|
await self.coordinator.async_refresh()
|
||||||
else:
|
else:
|
||||||
await self._device.commands[self.entity_description.turn_off_key].send()
|
await self._device.commands[self.entity_description.turn_off_key].send()
|
||||||
|
|
|
@ -313,6 +313,12 @@
|
||||||
},
|
},
|
||||||
"humidity": {
|
"humidity": {
|
||||||
"name": "Vlhkost"
|
"name": "Vlhkost"
|
||||||
|
},
|
||||||
|
"freezer_temp": {
|
||||||
|
"name": "Teplota mrazničky"
|
||||||
|
},
|
||||||
|
"fridge_temp": {
|
||||||
|
"name": "Teplota chladničky"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"select": {
|
"select": {
|
||||||
|
@ -1142,6 +1148,15 @@
|
||||||
},
|
},
|
||||||
"auto_dose_detergent": {
|
"auto_dose_detergent": {
|
||||||
"name": "Automatické dávkování Prací prostředek"
|
"name": "Automatické dávkování Prací prostředek"
|
||||||
|
},
|
||||||
|
"auto_set": {
|
||||||
|
"name": "Automatické nastavení"
|
||||||
|
},
|
||||||
|
"super_cool": {
|
||||||
|
"name": "Super Cool"
|
||||||
|
},
|
||||||
|
"super_freeze": {
|
||||||
|
"name": "Super Freeze"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"binary_sensor": {
|
"binary_sensor": {
|
||||||
|
|
|
@ -313,6 +313,12 @@
|
||||||
},
|
},
|
||||||
"humidity": {
|
"humidity": {
|
||||||
"name": "Luftfeuchtigkeit"
|
"name": "Luftfeuchtigkeit"
|
||||||
|
},
|
||||||
|
"freezer_temp": {
|
||||||
|
"name": "Gefrierschrank-Temperatur"
|
||||||
|
},
|
||||||
|
"fridge_temp": {
|
||||||
|
"name": "Temperatur des Kühlschranks"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"select": {
|
"select": {
|
||||||
|
@ -1142,6 +1148,15 @@
|
||||||
},
|
},
|
||||||
"auto_dose_detergent": {
|
"auto_dose_detergent": {
|
||||||
"name": "Autodosierung Spülmittel"
|
"name": "Autodosierung Spülmittel"
|
||||||
|
},
|
||||||
|
"auto_set": {
|
||||||
|
"name": "Auto-Set"
|
||||||
|
},
|
||||||
|
"super_cool": {
|
||||||
|
"name": "Super Cool"
|
||||||
|
},
|
||||||
|
"super_freeze": {
|
||||||
|
"name": "Super Freeze"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"binary_sensor": {
|
"binary_sensor": {
|
||||||
|
|
|
@ -313,6 +313,12 @@
|
||||||
},
|
},
|
||||||
"humidity": {
|
"humidity": {
|
||||||
"name": "Υγρασία"
|
"name": "Υγρασία"
|
||||||
|
},
|
||||||
|
"freezer_temp": {
|
||||||
|
"name": "Θερμοκρασία καταψύκτη"
|
||||||
|
},
|
||||||
|
"fridge_temp": {
|
||||||
|
"name": "Θερμοκρασία ψυγείου"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"select": {
|
"select": {
|
||||||
|
@ -1142,6 +1148,15 @@
|
||||||
},
|
},
|
||||||
"auto_dose_detergent": {
|
"auto_dose_detergent": {
|
||||||
"name": "Αυτόματη Δοσολογία Απορρυπαντικό"
|
"name": "Αυτόματη Δοσολογία Απορρυπαντικό"
|
||||||
|
},
|
||||||
|
"auto_set": {
|
||||||
|
"name": "Αυτόματη ρύθμιση"
|
||||||
|
},
|
||||||
|
"super_cool": {
|
||||||
|
"name": "Super Cool"
|
||||||
|
},
|
||||||
|
"super_freeze": {
|
||||||
|
"name": "Super Freeze"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"binary_sensor": {
|
"binary_sensor": {
|
||||||
|
|
|
@ -372,6 +372,12 @@
|
||||||
},
|
},
|
||||||
"humidity": {
|
"humidity": {
|
||||||
"name": "Humidity"
|
"name": "Humidity"
|
||||||
|
},
|
||||||
|
"freezer_temp": {
|
||||||
|
"name": "Freezer temperature"
|
||||||
|
},
|
||||||
|
"fridge_temp": {
|
||||||
|
"name": "Fridge temperature"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"switch": {
|
"switch": {
|
||||||
|
@ -470,6 +476,15 @@
|
||||||
},
|
},
|
||||||
"auto_dose_detergent": {
|
"auto_dose_detergent": {
|
||||||
"name": "Autodose Detergent"
|
"name": "Autodose Detergent"
|
||||||
|
},
|
||||||
|
"auto_set": {
|
||||||
|
"name": "Auto-Set"
|
||||||
|
},
|
||||||
|
"super_cool": {
|
||||||
|
"name": "Super Cool"
|
||||||
|
},
|
||||||
|
"super_freeze": {
|
||||||
|
"name": "Super Freeze"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"select": {
|
"select": {
|
||||||
|
|
|
@ -313,6 +313,12 @@
|
||||||
},
|
},
|
||||||
"humidity": {
|
"humidity": {
|
||||||
"name": "Humedad"
|
"name": "Humedad"
|
||||||
|
},
|
||||||
|
"freezer_temp": {
|
||||||
|
"name": "Temperatura del congelador"
|
||||||
|
},
|
||||||
|
"fridge_temp": {
|
||||||
|
"name": "Temperatura del frigorífico"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"select": {
|
"select": {
|
||||||
|
@ -1142,6 +1148,15 @@
|
||||||
},
|
},
|
||||||
"auto_dose_detergent": {
|
"auto_dose_detergent": {
|
||||||
"name": "Dosificación automática Detergente"
|
"name": "Dosificación automática Detergente"
|
||||||
|
},
|
||||||
|
"auto_set": {
|
||||||
|
"name": "Auto-Set"
|
||||||
|
},
|
||||||
|
"super_cool": {
|
||||||
|
"name": "Super Cool"
|
||||||
|
},
|
||||||
|
"super_freeze": {
|
||||||
|
"name": "Super Freeze"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"binary_sensor": {
|
"binary_sensor": {
|
||||||
|
|
|
@ -313,6 +313,12 @@
|
||||||
},
|
},
|
||||||
"humidity": {
|
"humidity": {
|
||||||
"name": "Humidité"
|
"name": "Humidité"
|
||||||
|
},
|
||||||
|
"freezer_temp": {
|
||||||
|
"name": "Température du congélateur"
|
||||||
|
},
|
||||||
|
"fridge_temp": {
|
||||||
|
"name": "Température du réfrigérateur"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"select": {
|
"select": {
|
||||||
|
@ -1142,6 +1148,15 @@
|
||||||
},
|
},
|
||||||
"auto_dose_detergent": {
|
"auto_dose_detergent": {
|
||||||
"name": "Dose automatique Lessive"
|
"name": "Dose automatique Lessive"
|
||||||
|
},
|
||||||
|
"auto_set": {
|
||||||
|
"name": "Réglage automatique"
|
||||||
|
},
|
||||||
|
"super_cool": {
|
||||||
|
"name": "Super Cool"
|
||||||
|
},
|
||||||
|
"super_freeze": {
|
||||||
|
"name": "Super Freeze"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"binary_sensor": {
|
"binary_sensor": {
|
||||||
|
|
|
@ -194,6 +194,12 @@
|
||||||
},
|
},
|
||||||
"humidity": {
|
"humidity": {
|
||||||
"name": "Humidity"
|
"name": "Humidity"
|
||||||
|
},
|
||||||
|
"freezer_temp": {
|
||||||
|
"name": "Freezer temperature"
|
||||||
|
},
|
||||||
|
"fridge_temp": {
|
||||||
|
"name": "Fridge temperature"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"select": {
|
"select": {
|
||||||
|
@ -595,6 +601,15 @@
|
||||||
},
|
},
|
||||||
"auto_dose_detergent": {
|
"auto_dose_detergent": {
|
||||||
"name": "מינון אוטומטי חומר ניקוי"
|
"name": "מינון אוטומטי חומר ניקוי"
|
||||||
|
},
|
||||||
|
"auto_set": {
|
||||||
|
"name": "Auto-Set"
|
||||||
|
},
|
||||||
|
"super_cool": {
|
||||||
|
"name": "Super Cool"
|
||||||
|
},
|
||||||
|
"super_freeze": {
|
||||||
|
"name": "Super Freeze"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"binary_sensor": {
|
"binary_sensor": {
|
||||||
|
|
|
@ -313,6 +313,12 @@
|
||||||
},
|
},
|
||||||
"humidity": {
|
"humidity": {
|
||||||
"name": "Vlažnost"
|
"name": "Vlažnost"
|
||||||
|
},
|
||||||
|
"freezer_temp": {
|
||||||
|
"name": "Temperatura zamrzivača"
|
||||||
|
},
|
||||||
|
"fridge_temp": {
|
||||||
|
"name": "Temperatura hladnjaka"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"select": {
|
"select": {
|
||||||
|
@ -1142,6 +1148,15 @@
|
||||||
},
|
},
|
||||||
"auto_dose_detergent": {
|
"auto_dose_detergent": {
|
||||||
"name": "Automatsko doziranje Deterdžent"
|
"name": "Automatsko doziranje Deterdžent"
|
||||||
|
},
|
||||||
|
"auto_set": {
|
||||||
|
"name": "Automatsko postavljanje"
|
||||||
|
},
|
||||||
|
"super_cool": {
|
||||||
|
"name": "Super Cool"
|
||||||
|
},
|
||||||
|
"super_freeze": {
|
||||||
|
"name": "Super Freeze"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"binary_sensor": {
|
"binary_sensor": {
|
||||||
|
|
|
@ -365,6 +365,12 @@
|
||||||
},
|
},
|
||||||
"humidity": {
|
"humidity": {
|
||||||
"name": "Umidità"
|
"name": "Umidità"
|
||||||
|
},
|
||||||
|
"freezer_temp": {
|
||||||
|
"name": "Temperatura del congelatore"
|
||||||
|
},
|
||||||
|
"fridge_temp": {
|
||||||
|
"name": "Temperatura del frigorifero"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"select": {
|
"select": {
|
||||||
|
@ -1194,6 +1200,15 @@
|
||||||
},
|
},
|
||||||
"auto_dose_detergent": {
|
"auto_dose_detergent": {
|
||||||
"name": "Autodose Detergente"
|
"name": "Autodose Detergente"
|
||||||
|
},
|
||||||
|
"auto_set": {
|
||||||
|
"name": "Impostazione automatica"
|
||||||
|
},
|
||||||
|
"super_cool": {
|
||||||
|
"name": "Super Cool"
|
||||||
|
},
|
||||||
|
"super_freeze": {
|
||||||
|
"name": "Super Freeze"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"binary_sensor": {
|
"binary_sensor": {
|
||||||
|
|
|
@ -313,6 +313,12 @@
|
||||||
},
|
},
|
||||||
"humidity": {
|
"humidity": {
|
||||||
"name": "Luchtvochtigheid"
|
"name": "Luchtvochtigheid"
|
||||||
|
},
|
||||||
|
"freezer_temp": {
|
||||||
|
"name": "Vriezertemperatuur"
|
||||||
|
},
|
||||||
|
"fridge_temp": {
|
||||||
|
"name": "Koelkasttemperatuur"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"select": {
|
"select": {
|
||||||
|
@ -1142,6 +1148,15 @@
|
||||||
},
|
},
|
||||||
"auto_dose_detergent": {
|
"auto_dose_detergent": {
|
||||||
"name": "Automatisch doseren Wasmiddel"
|
"name": "Automatisch doseren Wasmiddel"
|
||||||
|
},
|
||||||
|
"auto_set": {
|
||||||
|
"name": "Automatisch instellen"
|
||||||
|
},
|
||||||
|
"super_cool": {
|
||||||
|
"name": "Super Cool"
|
||||||
|
},
|
||||||
|
"super_freeze": {
|
||||||
|
"name": "Super Freeze"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"binary_sensor": {
|
"binary_sensor": {
|
||||||
|
|
|
@ -313,6 +313,12 @@
|
||||||
},
|
},
|
||||||
"humidity": {
|
"humidity": {
|
||||||
"name": "Wilgotność"
|
"name": "Wilgotność"
|
||||||
|
},
|
||||||
|
"freezer_temp": {
|
||||||
|
"name": "Temperatura zamrażarki"
|
||||||
|
},
|
||||||
|
"fridge_temp": {
|
||||||
|
"name": "Temperatura lodówki"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"select": {
|
"select": {
|
||||||
|
@ -1142,6 +1148,15 @@
|
||||||
},
|
},
|
||||||
"auto_dose_detergent": {
|
"auto_dose_detergent": {
|
||||||
"name": "Automatyczne dozowanie Detergent"
|
"name": "Automatyczne dozowanie Detergent"
|
||||||
|
},
|
||||||
|
"auto_set": {
|
||||||
|
"name": "Ustawianie automatyczne"
|
||||||
|
},
|
||||||
|
"super_cool": {
|
||||||
|
"name": "Super Cool"
|
||||||
|
},
|
||||||
|
"super_freeze": {
|
||||||
|
"name": "Super Freeze"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"binary_sensor": {
|
"binary_sensor": {
|
||||||
|
|
|
@ -313,6 +313,12 @@
|
||||||
},
|
},
|
||||||
"humidity": {
|
"humidity": {
|
||||||
"name": "Humidade"
|
"name": "Humidade"
|
||||||
|
},
|
||||||
|
"freezer_temp": {
|
||||||
|
"name": "Temperatura do congelador"
|
||||||
|
},
|
||||||
|
"fridge_temp": {
|
||||||
|
"name": "Temperatura do frigorífico"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"select": {
|
"select": {
|
||||||
|
@ -1142,6 +1148,15 @@
|
||||||
},
|
},
|
||||||
"auto_dose_detergent": {
|
"auto_dose_detergent": {
|
||||||
"name": "Autodosagem Detergente"
|
"name": "Autodosagem Detergente"
|
||||||
|
},
|
||||||
|
"auto_set": {
|
||||||
|
"name": "Ajuste automático"
|
||||||
|
},
|
||||||
|
"super_cool": {
|
||||||
|
"name": "Super Cool"
|
||||||
|
},
|
||||||
|
"super_freeze": {
|
||||||
|
"name": "Super Freeze"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"binary_sensor": {
|
"binary_sensor": {
|
||||||
|
|
|
@ -313,6 +313,12 @@
|
||||||
},
|
},
|
||||||
"humidity": {
|
"humidity": {
|
||||||
"name": "Umiditate"
|
"name": "Umiditate"
|
||||||
|
},
|
||||||
|
"freezer_temp": {
|
||||||
|
"name": "Temperatura congelatorului"
|
||||||
|
},
|
||||||
|
"fridge_temp": {
|
||||||
|
"name": "Temperatura frigiderului"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"select": {
|
"select": {
|
||||||
|
@ -1142,6 +1148,15 @@
|
||||||
},
|
},
|
||||||
"auto_dose_detergent": {
|
"auto_dose_detergent": {
|
||||||
"name": "Autodozare Detergent"
|
"name": "Autodozare Detergent"
|
||||||
|
},
|
||||||
|
"auto_set": {
|
||||||
|
"name": "Setare automată"
|
||||||
|
},
|
||||||
|
"super_cool": {
|
||||||
|
"name": "Super Cool"
|
||||||
|
},
|
||||||
|
"super_freeze": {
|
||||||
|
"name": "Super Freeze"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"binary_sensor": {
|
"binary_sensor": {
|
||||||
|
|
|
@ -313,6 +313,12 @@
|
||||||
},
|
},
|
||||||
"humidity": {
|
"humidity": {
|
||||||
"name": "Влажность"
|
"name": "Влажность"
|
||||||
|
},
|
||||||
|
"freezer_temp": {
|
||||||
|
"name": "Температура в морозильном отделении"
|
||||||
|
},
|
||||||
|
"fridge_temp": {
|
||||||
|
"name": "Температура в холодильнике"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"select": {
|
"select": {
|
||||||
|
@ -1142,6 +1148,15 @@
|
||||||
},
|
},
|
||||||
"auto_dose_detergent": {
|
"auto_dose_detergent": {
|
||||||
"name": "Автодозирование Средство для стирки"
|
"name": "Автодозирование Средство для стирки"
|
||||||
|
},
|
||||||
|
"auto_set": {
|
||||||
|
"name": "Автоматическая установка"
|
||||||
|
},
|
||||||
|
"super_cool": {
|
||||||
|
"name": "Super Cool"
|
||||||
|
},
|
||||||
|
"super_freeze": {
|
||||||
|
"name": "Super Freeze"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"binary_sensor": {
|
"binary_sensor": {
|
||||||
|
|
|
@ -313,6 +313,12 @@
|
||||||
},
|
},
|
||||||
"humidity": {
|
"humidity": {
|
||||||
"name": "Vlhkosť"
|
"name": "Vlhkosť"
|
||||||
|
},
|
||||||
|
"freezer_temp": {
|
||||||
|
"name": "Teplota mrazničky"
|
||||||
|
},
|
||||||
|
"fridge_temp": {
|
||||||
|
"name": "Teplota chladničky"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"select": {
|
"select": {
|
||||||
|
@ -1142,6 +1148,15 @@
|
||||||
},
|
},
|
||||||
"auto_dose_detergent": {
|
"auto_dose_detergent": {
|
||||||
"name": "Automatická dávka Prací prostriedok"
|
"name": "Automatická dávka Prací prostriedok"
|
||||||
|
},
|
||||||
|
"auto_set": {
|
||||||
|
"name": "Automatické nastavenie"
|
||||||
|
},
|
||||||
|
"super_cool": {
|
||||||
|
"name": "Super Cool"
|
||||||
|
},
|
||||||
|
"super_freeze": {
|
||||||
|
"name": "Super Freeze"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"binary_sensor": {
|
"binary_sensor": {
|
||||||
|
|
|
@ -313,6 +313,12 @@
|
||||||
},
|
},
|
||||||
"humidity": {
|
"humidity": {
|
||||||
"name": "Vlaga "
|
"name": "Vlaga "
|
||||||
|
},
|
||||||
|
"freezer_temp": {
|
||||||
|
"name": "Temperatura zamrzovalnika"
|
||||||
|
},
|
||||||
|
"fridge_temp": {
|
||||||
|
"name": "Temperatura hladilnika"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"select": {
|
"select": {
|
||||||
|
@ -1142,6 +1148,15 @@
|
||||||
},
|
},
|
||||||
"auto_dose_detergent": {
|
"auto_dose_detergent": {
|
||||||
"name": "Samodejno odmerjanje Detergent"
|
"name": "Samodejno odmerjanje Detergent"
|
||||||
|
},
|
||||||
|
"auto_set": {
|
||||||
|
"name": "Samodejna nastavitev"
|
||||||
|
},
|
||||||
|
"super_cool": {
|
||||||
|
"name": "Super Cool"
|
||||||
|
},
|
||||||
|
"super_freeze": {
|
||||||
|
"name": "Super Freeze"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"binary_sensor": {
|
"binary_sensor": {
|
||||||
|
|
|
@ -313,6 +313,12 @@
|
||||||
},
|
},
|
||||||
"humidity": {
|
"humidity": {
|
||||||
"name": "Vlažnost"
|
"name": "Vlažnost"
|
||||||
|
},
|
||||||
|
"freezer_temp": {
|
||||||
|
"name": "Temperatura zamrzivača"
|
||||||
|
},
|
||||||
|
"fridge_temp": {
|
||||||
|
"name": "Temperatura frižidera"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"select": {
|
"select": {
|
||||||
|
@ -1142,6 +1148,15 @@
|
||||||
},
|
},
|
||||||
"auto_dose_detergent": {
|
"auto_dose_detergent": {
|
||||||
"name": "Automatsko doziranje Deterdžent"
|
"name": "Automatsko doziranje Deterdžent"
|
||||||
|
},
|
||||||
|
"auto_set": {
|
||||||
|
"name": "Automatsko podešavanje"
|
||||||
|
},
|
||||||
|
"super_cool": {
|
||||||
|
"name": "Super Cool"
|
||||||
|
},
|
||||||
|
"super_freeze": {
|
||||||
|
"name": "Super Freeze"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"binary_sensor": {
|
"binary_sensor": {
|
||||||
|
|
|
@ -313,6 +313,12 @@
|
||||||
},
|
},
|
||||||
"humidity": {
|
"humidity": {
|
||||||
"name": "Nem"
|
"name": "Nem"
|
||||||
|
},
|
||||||
|
"freezer_temp": {
|
||||||
|
"name": "Dondurucu sıcaklığı"
|
||||||
|
},
|
||||||
|
"fridge_temp": {
|
||||||
|
"name": "Buzdolabı sıcaklığı"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"select": {
|
"select": {
|
||||||
|
@ -1142,6 +1148,15 @@
|
||||||
},
|
},
|
||||||
"auto_dose_detergent": {
|
"auto_dose_detergent": {
|
||||||
"name": "Otomatik doz Deterjan"
|
"name": "Otomatik doz Deterjan"
|
||||||
|
},
|
||||||
|
"auto_set": {
|
||||||
|
"name": "Otomatik Ayarla"
|
||||||
|
},
|
||||||
|
"super_cool": {
|
||||||
|
"name": "Super Cool"
|
||||||
|
},
|
||||||
|
"super_freeze": {
|
||||||
|
"name": "Super Freeze"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"binary_sensor": {
|
"binary_sensor": {
|
||||||
|
|
|
@ -313,6 +313,12 @@
|
||||||
},
|
},
|
||||||
"humidity": {
|
"humidity": {
|
||||||
"name": "湿度"
|
"name": "湿度"
|
||||||
|
},
|
||||||
|
"freezer_temp": {
|
||||||
|
"name": "冷藏室温度"
|
||||||
|
},
|
||||||
|
"fridge_temp": {
|
||||||
|
"name": "冰箱温度"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"select": {
|
"select": {
|
||||||
|
@ -1142,6 +1148,15 @@
|
||||||
},
|
},
|
||||||
"auto_dose_detergent": {
|
"auto_dose_detergent": {
|
||||||
"name": "自动定量 洗涤剂"
|
"name": "自动定量 洗涤剂"
|
||||||
|
},
|
||||||
|
"auto_set": {
|
||||||
|
"name": "自动设置"
|
||||||
|
},
|
||||||
|
"super_cool": {
|
||||||
|
"name": "Super Cool"
|
||||||
|
},
|
||||||
|
"super_freeze": {
|
||||||
|
"name": "Super Freeze"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"binary_sensor": {
|
"binary_sensor": {
|
||||||
|
|
|
@ -82,6 +82,9 @@ NAMES = {
|
||||||
"WASHING_CMD&CTRL.DASHBOARD_MENU_MORE_SETTINGS_WATER.DETERGENT",
|
"WASHING_CMD&CTRL.DASHBOARD_MENU_MORE_SETTINGS_WATER.DETERGENT",
|
||||||
],
|
],
|
||||||
"good_night": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.GOODNIGHT",
|
"good_night": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.GOODNIGHT",
|
||||||
|
"auto_set": "REF_CMD&CTRL.MODALITIES.ECO",
|
||||||
|
"super_cool": "REF_CMD&CTRL.MODALITIES.SUPER_COOL",
|
||||||
|
"super_freeze": "REF_CMD&CTRL.MODALITIES.SUPER_FREEZE",
|
||||||
},
|
},
|
||||||
"binary_sensor": {
|
"binary_sensor": {
|
||||||
"door_lock": "WASHING_CMD&CTRL.CHECK_UP_RESULTS.DOOR_LOCK",
|
"door_lock": "WASHING_CMD&CTRL.CHECK_UP_RESULTS.DOOR_LOCK",
|
||||||
|
@ -171,6 +174,8 @@ NAMES = {
|
||||||
"WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_RESULT.WATER_EFFICIENCY",
|
"WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_RESULT.WATER_EFFICIENCY",
|
||||||
"CUBE90_GLOBAL.GENERAL.CURRENT",
|
"CUBE90_GLOBAL.GENERAL.CURRENT",
|
||||||
],
|
],
|
||||||
|
"freezer_temp": "REF_CMD&CTRL.TEMPERATURE_DRAWER_FREEZER.FREEZER_TEMPERATURE_TITLE",
|
||||||
|
"fridge_temp": "REF_CMD&CTRL.TEMPERATURE_DRAWER_FRIDGE.FRIDGE_TEMPERATURE_TITLE",
|
||||||
},
|
},
|
||||||
"number": {
|
"number": {
|
||||||
"power_management": "HINTS.COOKING_WITH_INDUCTION.POWER_MANAGEMENT",
|
"power_management": "HINTS.COOKING_WITH_INDUCTION.POWER_MANAGEMENT",
|
||||||
|
|
|
@ -53,6 +53,7 @@ for entity_type, appliances in entities.items():
|
||||||
if (
|
if (
|
||||||
isinstance(entity, HonSwitchEntityDescription)
|
isinstance(entity, HonSwitchEntityDescription)
|
||||||
and entity.entity_category != "config"
|
and entity.entity_category != "config"
|
||||||
|
and "settings." not in entity.key
|
||||||
):
|
):
|
||||||
key = f"{entity.turn_on_key}` / `{entity.turn_off_key}"
|
key = f"{entity.turn_on_key}` / `{entity.turn_off_key}"
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue