Thanks for your reply!
From all the answers I got during my googling it seems that homey cant do what i expected it to 
I’ll give the forums a shot, hopefully this will turn out for the better 
My fan is not using infrared - its 433mhz. Is there an alternative to learn from my 433mhz remote or anything else i can try?