Mass blackouts will affect hundreds of thousands of California residents in an effort to prevent wildfires amid a forecast of hot and windy weather.