Power generation grid connection and energy storage