A timely mobile alert may have prevented hundreds of thousands of Californians from being plunged into darkness in the middle of a heat wave Tuesday night.