The clean energy company made its name helping batteries choose their moment. Its own turning point came when it decided that selling more batteries was the wrong ambition.