mirror of
https://github.com/Andre0512/hon.git
synced 2024-12-22 02:35:32 +00:00
Add FRE appliances, #177
This commit is contained in:
parent
1a78251a93
commit
6e8576c7bd
|
@ -284,6 +284,32 @@ BINARY_SENSORS: dict[str, tuple[HonBinarySensorEntityDescription, ...]] = {
|
|||
translation_key="on",
|
||||
),
|
||||
),
|
||||
"FRE": (
|
||||
HonBinarySensorEntityDescription(
|
||||
key="quickModeZ1",
|
||||
name="Super Cool",
|
||||
icon="mdi:snowflake",
|
||||
device_class=BinarySensorDeviceClass.RUNNING,
|
||||
on_value=1,
|
||||
translation_key="super_cool",
|
||||
),
|
||||
HonBinarySensorEntityDescription(
|
||||
key="quickModeZ2",
|
||||
name="Super Freeze",
|
||||
icon="mdi:snowflake-variant",
|
||||
device_class=BinarySensorDeviceClass.RUNNING,
|
||||
on_value=1,
|
||||
translation_key="super_freeze",
|
||||
),
|
||||
HonBinarySensorEntityDescription(
|
||||
key="doorStatusZ2",
|
||||
name="Door Status",
|
||||
icon="mdi:fridge",
|
||||
device_class=BinarySensorDeviceClass.DOOR,
|
||||
on_value=1,
|
||||
translation_key="door_open",
|
||||
),
|
||||
),
|
||||
}
|
||||
|
||||
BINARY_SENSORS["WD"] = unique_entities(BINARY_SENSORS["WM"], BINARY_SENSORS["TD"])
|
||||
|
|
|
@ -38,6 +38,20 @@ BUTTONS: dict[str, tuple[ButtonEntityDescription, ...]] = {
|
|||
translation_key="stop_program",
|
||||
),
|
||||
),
|
||||
"FRE": (
|
||||
ButtonEntityDescription(
|
||||
key="startProgram",
|
||||
name="Program Start",
|
||||
icon="mdi:play",
|
||||
translation_key="start_program",
|
||||
),
|
||||
ButtonEntityDescription(
|
||||
key="stopProgram",
|
||||
name="Program Stop",
|
||||
icon="mdi:stop",
|
||||
translation_key="stop_program",
|
||||
),
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ APPLIANCES: dict[str, str] = {
|
|||
"AP": "Air Purifier",
|
||||
"AS": "Air Scanner",
|
||||
"DW": "Dish Washer",
|
||||
"FRE": "Freezer",
|
||||
"HO": "Hood",
|
||||
"IH": "Induction Hob",
|
||||
"MW": "Microwave",
|
||||
|
@ -70,16 +71,23 @@ HON_FAN: dict[int, str] = {
|
|||
|
||||
# These languages are official supported by hOn
|
||||
LANGUAGES: list[str] = [
|
||||
"ar", # Arabic
|
||||
"bg", # Bulgarian
|
||||
"cs", # Czech
|
||||
"da", # Danish
|
||||
"de", # German
|
||||
"el", # Greek
|
||||
"en", # English
|
||||
"es", # Spanish
|
||||
"fi", # Finnish
|
||||
"fr", # French
|
||||
"he", # Hebrew
|
||||
"hr", # Croatian
|
||||
"hu", # Hungarian
|
||||
"it", # Italian
|
||||
"nb", # Norwegian
|
||||
"nl", # Dutch
|
||||
"nr", # Southern Ndebele
|
||||
"pl", # Polish
|
||||
"pt", # Portuguese
|
||||
"ro", # Romanian
|
||||
|
@ -87,7 +95,9 @@ LANGUAGES: list[str] = [
|
|||
"sk", # Slovak
|
||||
"sl", # Slovenian
|
||||
"sr", # Serbian
|
||||
"sv", # Swedish
|
||||
"tr", # Turkish
|
||||
"uk", # Ukrainian
|
||||
"zh", # Chinese
|
||||
]
|
||||
|
||||
|
|
|
@ -184,6 +184,26 @@ SELECTS: dict[str, tuple[SelectEntityDescription, ...]] = {
|
|||
translation_key="mode",
|
||||
),
|
||||
),
|
||||
"FRE": (
|
||||
HonConfigSelectEntityDescription(
|
||||
key="startProgram.program",
|
||||
name="Program",
|
||||
translation_key="programs_ref",
|
||||
),
|
||||
HonConfigSelectEntityDescription(
|
||||
key="startProgram.zone",
|
||||
name="Zone",
|
||||
icon="mdi:radiobox-marked",
|
||||
translation_key="ref_zones",
|
||||
),
|
||||
HonSelectEntityDescription(
|
||||
key="settings.tempSelZ3",
|
||||
name="Temperature",
|
||||
icon="mdi:thermometer",
|
||||
unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||
translation_key="temperature",
|
||||
),
|
||||
),
|
||||
}
|
||||
|
||||
SELECTS["WD"] = unique_entities(SELECTS["WM"], SELECTS["TD"])
|
||||
|
|
|
@ -780,6 +780,29 @@ SENSORS: dict[str, tuple[SensorEntityDescription, ...]] = {
|
|||
translation_key="air_quality",
|
||||
),
|
||||
),
|
||||
"FRE": (
|
||||
HonSensorEntityDescription(
|
||||
key="tempEnv",
|
||||
name="Room Temperature",
|
||||
icon="mdi:home-thermometer-outline",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
device_class=SensorDeviceClass.TEMPERATURE,
|
||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||
translation_key="room_temperature",
|
||||
),
|
||||
HonSensorEntityDescription(
|
||||
key="tempSelZ3",
|
||||
name="Temperature",
|
||||
icon="mdi:snowflake-thermometer",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
device_class=SensorDeviceClass.TEMPERATURE,
|
||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||
translation_key="temperature",
|
||||
),
|
||||
HonSensorEntityDescription(
|
||||
key="errors", name="Error", icon="mdi:math-log", translation_key="errors"
|
||||
),
|
||||
),
|
||||
}
|
||||
SENSORS["WD"] = unique_entities(SENSORS["WM"], SENSORS["TD"])
|
||||
|
||||
|
|
|
@ -375,6 +375,20 @@ SWITCHES: dict[str, tuple[SwitchEntityDescription, ...]] = {
|
|||
translation_key="touch_tone",
|
||||
),
|
||||
),
|
||||
"FRE": (
|
||||
HonSwitchEntityDescription(
|
||||
key="quickModeZ2",
|
||||
name="Super Freeze",
|
||||
icon="mdi:snowflake-variant",
|
||||
translation_key="super_freeze",
|
||||
),
|
||||
HonSwitchEntityDescription(
|
||||
key="quickModeZ1",
|
||||
name="Super Cool",
|
||||
icon="mdi:snowflake",
|
||||
translation_key="super_cool",
|
||||
),
|
||||
),
|
||||
}
|
||||
|
||||
SWITCHES["WD"] = unique_entities(SWITCHES["WD"], SWITCHES["WM"])
|
||||
|
|
Loading…
Reference in a new issue