More New York City and Westchester County homeowners are harnessing the power of the sun with rooftop solar panels—and saving money on their electric bills.

Analysts expect use of the systems to keep growing as people seek to avoid paying high Consolidated Edison electricity rates.

The number of systems in ConEd's territory has grown from...