Controlling or determining the temperature of the winding