LiFePO4 battery pack for home energy storage