Battery cabinets for storing photovoltaic power