Energy storage system connected to the grid voltage level