async def set_fan_high(self): """Set the fan speed to high.""" await self.send(write(main_airflow="4"))
async def set_fan_low(self): """Set the fan speed to low.""" await self.send(write(main_airflow="2"))
async def set_fan_normal(self): """Set the fan speed to normal.""" await self.send(write(main_airflow="3"))
async def set_away_mode(self): """Set the ventilation unit in away mode.""" await self.send( write(user_mode_away_duration=72, mode_change_request="5"))
async def set_fan_off(self): """Set the fan speed to off.""" await self.send(write(main_airflow="1"))
async def set_holiday_mode(self): """Set the ventilation unit in holiday mode.""" await self.send( write(user_mode_holiday_duration=365, mode_change_request="6"))
async def set_auto_mode(self): """Set the ventilation unit in auto mode.""" await self.send(write(mode_change_request="0"))
async def set_fireplace_mode(self): """Set the ventilation unit in fireplace mode.""" await self.send( write(user_mode_fireplace_duration=60, mode_change_request="4"))
async def set_refresh_mode(self): """Set the ventilation unit in refresh mode.""" await self.send( write(user_mode_refresh_duration=240, mode_change_request="3"))
async def set_crowded_mode(self): """Set the ventilation unit in crowded mode.""" await self.send( write(user_mode_crowded_duration=8, mode_change_request="2"))
async def set_manual_mode(self): """Set the ventilation unit in manual mode.""" await self.send(write(mode_change_request="1"))
async def set_temperature(self, value): """Set the temperature of the ventilation unit.""" await self.send(write(main_temperature_offset=int(value * 10)))