When I bought my home, the basement dehumdifier hose was just draining into an open wye off a drain pipe in the floor which also goes up to the kitchen sink drain. Since then, when I had air conditioning installed, the installer also put the drain hose for the condensate pump into this same pipe. (They probably should not have done this, but I guess I can't blame them since there was already something draining there).
Since the basement is mostly finished and livable space, I'd really rather not have an open pipe just sitting there. Both for the potential of entering sewer gases and possible backflow.
My currently plan is to connect the wye to a reducing bushing and then add a check valve to prevent backflow followed by a condensate trap. The dehumidifier would then drain into the condensate pump and the condensate pump drain line would just rest inside the vertical part of the open P-trap.
I'd like some feedback on this approach and whether it will be successful at preventing backflow and sewer gases from entering my home. My main concern is whether there will be enough pressure to actually open the check valve and have it drain properly. My alternate plan is to forego the check valve and simply add a good length of vertical pipe before connecting the condensate trap so there's room to absorb some amount of backflow before spilling on the floor.