Green split pea soup, with onion, garlic, .........and smoked sausage. (or ham)
It was tooo sweet, what can be added?

I always make mine with a smoked pork hock. How/why was it too sweet? What ingredient is in it that is sweet? Can you add more pepper? or thyme?
Was there also some carrot in it that you forgot to mention, Arbon? That would make it sweet.
Or, use a sharper onion.
Or, your ham was sugar cured.
You can always add a bit of white vinegar to the soup, tasting as you add until it's right.

No carrots, the sausage was not sweet, but the 2 large onions did disapear on the second day.
"The wife" cooked the peas, and when I asked about the scum on the top, she said "that's not scum, that is now called foam"
Carrot was the first thing I thought of, as well. Too much onion might make it sweet, especially if you sauteed the onions first.

Normally we make pea soup with a large ham bone, and the left over ham bits, but we wanted to use up the smoked sausage.
It was a new bag of onions, and they did make my eyes water, which is unusual for me.
Also the split peas were larger than normal and from a new bag.
I will remember the acid next time, if there is a next time.