Grid-connected and off-grid energy storage system parameters