Inversor on grid/off grid