Investing in community energy