Remember he's trying to keep both feet on each side of the fence here. Yes he wants to be with you and his family and yes he wants to be with her. As long as you continue to let him do this this scenario will never stop. He is not logical by any means and his emotions are what's in total control and in the driver's seat. Life isn't Burger King. He can't have it his way 24/7.
A few questions here.
What do you think you need to do in order to not feel the urge to be in contact with him?
Does texting him serve you in any positive way, or does it make you feel even worse?