Photovoltaic energy storage inverter integrated machine control