Can energy storage and photovoltaics be connected to the grid