diff --git a/custom_components/tahoma/climate_devices/hitachi_air_to_air_heat_pump.py b/custom_components/tahoma/climate_devices/hitachi_air_to_air_heat_pump.py index dbc82fa04..5fe41fab4 100644 --- a/custom_components/tahoma/climate_devices/hitachi_air_to_air_heat_pump.py +++ b/custom_components/tahoma/climate_devices/hitachi_air_to_air_heat_pump.py @@ -56,7 +56,6 @@ def __init__(self, device_url: str, coordinator: TahomaDataUpdateCoordinator): _LOGGER.debug("Initialized HitachiAirToAirHeatPump") _LOGGER.debug(self.device.definition.states) - _LOGGER.debug(self.device) # self._fan_modes = self.select_state_definition(FAN_SPEED_STATE) @@ -191,7 +190,7 @@ def preset_mode(self) -> Optional[str]: @property def preset_modes(self) -> Optional[List[str]]: """Return a list of available preset modes.""" - return self._preset_modes + return ["auto", "manu"] async def async_set_preset_mode(self, preset_mode: str) -> None: """Set new preset mode.""" @@ -199,6 +198,9 @@ async def async_set_preset_mode(self, preset_mode: str) -> None: if preset_mode == "auto": await self.async_execute_command("setAutoManu", "auto") + if preset_mode == "manu": + await self.async_execute_command("setAutoManu", "manu") + if preset_mode == "holidays": await self.async_execute_command("setHolidays", "on")