The financial benefits of buying and selling locally produced energy from rooftop solar, wind turbines and batteries within communities have been revealed in a test case run by energy tech firm LO3 Energy.