Replace potentiometer for Kemo M012 Power Control
I'm guessing that in that black box is a phase controlled triac, and that the potentiometer needs to withstand full 240VAC and provide safety isolation, so don't use a cheap potentiometer with metal shaft and body.