Can you sell the energy you produce to your neighbour ?

false

The answer is WRONG. Feeding energy into the grid always require to comply with the grid immission rules despite how the energy is then used.