Energy storage control DC AC