Unless you're in a country with cheap electricity, like the US, you're better off selling excess energy to your neighbours.