Mini Split condensate pump to condensate drain
I don't know about code, but I don't see anything wrong with what's shown in the video. You need a 3/4" MPT threaded to 3/8" barb fitting with a small hose clamp, or a 3/4" slip x 3/8" barb fitting to connect the PVC to your hose. The T on your house A/C is probably there to provide an overflow in case the exit on the outside gets obstructed, either by dirt or by ice. Obviously you want it in a place that minimizes damage should it overflow there...