The fan is to push the air inside the cabin thru the small tube, where a temp sensor is to determine the cabin air temp.
If that sensor inside is dirty, the temp inside the cabin cannot be controlled correctly.
Did you switch the aircon and fan off and it still worked?
To read codes and reset, reset oil intervals and inspection intervals, buy a Peake tool from USA, if the dealer wants 60 $ for such a reading. Costs 149 US $ and you have the money back on a short time and it is handy and you can always keep it in the glovebox.
www.peakeresearch.com