Energy storage electrical control