After 40 plus years of on call, sleep is still a challenge. But I can nap within minutes, and wake quickly. I avoid caffeine except for 7am coffee.
I find that if I go to my iPad, as I am now, I will rarely go back to sleep. If I read a paper book, I can return to sleep within an hour. I don’t use an herbal tea, or OTC meds. A sleep study with a Cpap for spouse maybe answer for spouse snoring, the pet however you have much less control.