Hampton Bay Fan Control?

Any way to control a Hampton fan? i have one switch that goes to the fan, then inside the fan, it has a box that splits it out to fan and light. Want to see what i need to buy to be able to control this with Home Assistant. Any help?