Do the energy storage system and the power grid need to be switched