How to configure the battery of the energy storage system