Photovoltaic plant battery usage