Tens of thousands of homes and businesses were without power across Perth as a sprinkle of rain sparked poletop fires.