Thousands of residents across Perth are in for a long, hot night following several power outages on a day the city experienced scorching temperatures.