I've struggled with insomnia all my life. It is very easy for me to slide into what I like to call "vampire hours" and wake up at 5-6 pm everyday.
Recently, I have managed to keep a normal day schedule. I thought melatonin was BS, but I've been able to make it work by taking it around 5-6 pm and wearing blue-light-blocking glasses. Occasionally, I drink the valerian root tea right before I sleep at 9-10 pm. When I get up around 6-7 am, I use the Phillips SAD light box.
I'm crossing my fingers that this success will continue even when my anxiety inevitably ramps back up. Right now, I'm in my primarily depressive phase. If I start running that rumination hamster wheel, the melatonin and glasses may become useless again. I can;t go back to Ambien though. That heightened my depression like nothing else.