The builders or previous owner of my house had the water that drains out of the A/C going through a 1" pipe that was simply sitting inside a 2" pipe (cut just 2" above the slab). A foul odor was emanating from the gap between the two pipes. After I discovered it, I was worried that merely sealing the connection between the pipes would only result in the gases and smell going up into the central A/C and furnace.
I've always wanted a garage sink, and I'm thinking why not kill two birds with one stone. I could use the trap from the sink to also isolate the A/C drain. The existing drain did not have a vent pipe, however there is one 3' away where the washing machine is connected.
The image below shows what I have in mind. Will this work?
Edit: Assume the S-shape is actually a poorly conceived P-trap. But how does the long tail of the P need to connect to the vent and drain, anyway?


