In the case of dogs knowing when their owners are coming home more likely has to do with the owners scent fading during the day and when it reaches a diminished level the owner returns. The dog learns to make the association between diminished scent and the owner arrival.