Add FRE appliances, #177

This commit is contained in:
Andre Basche 2024-03-17 23:54:50 +01:00
parent 1a78251a93
commit 6e8576c7bd
6 changed files with 107 additions and 0 deletions

View file

@ -284,6 +284,32 @@ BINARY_SENSORS: dict[str, tuple[HonBinarySensorEntityDescription, ...]] = {
translation_key="on", 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"]) BINARY_SENSORS["WD"] = unique_entities(BINARY_SENSORS["WM"], BINARY_SENSORS["TD"])

View file

@ -38,6 +38,20 @@ BUTTONS: dict[str, tuple[ButtonEntityDescription, ...]] = {
translation_key="stop_program", 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",
),
),
} }

View file

@ -29,6 +29,7 @@ APPLIANCES: dict[str, str] = {
"AP": "Air Purifier", "AP": "Air Purifier",
"AS": "Air Scanner", "AS": "Air Scanner",
"DW": "Dish Washer", "DW": "Dish Washer",
"FRE": "Freezer",
"HO": "Hood", "HO": "Hood",
"IH": "Induction Hob", "IH": "Induction Hob",
"MW": "Microwave", "MW": "Microwave",
@ -70,16 +71,23 @@ HON_FAN: dict[int, str] = {
# These languages are official supported by hOn # These languages are official supported by hOn
LANGUAGES: list[str] = [ LANGUAGES: list[str] = [
"ar", # Arabic
"bg", # Bulgarian
"cs", # Czech "cs", # Czech
"da", # Danish
"de", # German "de", # German
"el", # Greek "el", # Greek
"en", # English "en", # English
"es", # Spanish "es", # Spanish
"fi", # Finnish
"fr", # French "fr", # French
"he", # Hebrew "he", # Hebrew
"hr", # Croatian "hr", # Croatian
"hu", # Hungarian
"it", # Italian "it", # Italian
"nb", # Norwegian
"nl", # Dutch "nl", # Dutch
"nr", # Southern Ndebele
"pl", # Polish "pl", # Polish
"pt", # Portuguese "pt", # Portuguese
"ro", # Romanian "ro", # Romanian
@ -87,7 +95,9 @@ LANGUAGES: list[str] = [
"sk", # Slovak "sk", # Slovak
"sl", # Slovenian "sl", # Slovenian
"sr", # Serbian "sr", # Serbian
"sv", # Swedish
"tr", # Turkish "tr", # Turkish
"uk", # Ukrainian
"zh", # Chinese "zh", # Chinese
] ]

View file

@ -184,6 +184,26 @@ SELECTS: dict[str, tuple[SelectEntityDescription, ...]] = {
translation_key="mode", 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"]) SELECTS["WD"] = unique_entities(SELECTS["WM"], SELECTS["TD"])

View file

@ -780,6 +780,29 @@ SENSORS: dict[str, tuple[SensorEntityDescription, ...]] = {
translation_key="air_quality", 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"]) SENSORS["WD"] = unique_entities(SENSORS["WM"], SENSORS["TD"])

View file

@ -375,6 +375,20 @@ SWITCHES: dict[str, tuple[SwitchEntityDescription, ...]] = {
translation_key="touch_tone", 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"]) SWITCHES["WD"] = unique_entities(SWITCHES["WD"], SWITCHES["WM"])