Solar energy storage system charges and discharges at the same time