Batteries are one of the most important storage devices in solar renewable energy systems, if all necessary specs are followed one will always prefer using solar renewable energy like no one means of electricity because of its safety to the environment, no emissions of deadly carbon monoxide, etc. (200Ah, 150Ah, 100Ah, 75Ah Deep circle, etc.) Your Batteries which usually last you up to 16hrs when you Installed them initially don't Last up to 30 Minutes anymore.
Batteries are made up of Cells, and each Cell is made up of Electrolyte-conducting medium-dilute Sulphuric Acid 2H2SO4 and Lead (Pb) Plate (+ve and -ve)
Equation
Pb + 2H2SO4 =PbSO4 + SO2 + 2H2O
When you are powering the electrical load/equipment in your house, the battery is discharging.
Discharging Equation
PbSO4 + SO2 + 2H2O
From the Equation, you see that the lead plate attracts the SO4 to itself.
Making the plate PbSO4.
When you recharge your battery this is the result, Pb + 2H2SO4.
The lead discharge the SO4 which goes into the electrolytes and recombines to form the 2H2SO4
The system is balanced. Here is what makes your battery weak. When you discharge your battery and you don't recharge it properly to 100%, the SO4 on the lead plate Pb doesn't get off from the plate totally, As you keep using the Battery and is not recharged properly, over time, the SO4 gets glued to the Lead plate Pb and becomes hard to remove by Charging the battery. This becomes an Insulator or a covering on the Lead plate. Thereby covering the Lead plate stopping it from conducting properly. This affects the electrolyte also, making it weak in its content. The overall effect is a weak battery that doesn't hold power anymore. Your battery might be looking new and clean, but it doesn't provide power for long anymore. Partial State of Charge PSOC has affected it. So please, whenever you drain your inverter battery, ensure you charge it properly before using it the next time.
Else the battery won't last as expected We have batteries that are manufactured to overcome these PSOC effects and will last you for a long.