What sleep meds are you on?
Do you get exposure to light esp in the early morning and the late afternoon (helps regulate the production of melatonin)
Is your sleep space an area separate to your living breathing working space?
My insomnia was hell when I was in one room and had a noisy upstairs neighbor but I managed to block him out with an air purifier.
Now in a place where my living space is segregated from my sleeping area, I take amitriptyline every night but vary the dose and take something alongside it but vary that too.
I also just accept that some nights I won't sleep and normally the next night is better for me.
I also have Zopiclone to use as a back up but that's a three bad nights in a row scenario rather than a regular thing.
Also I have coffee prior to nine am, if I wake up early two or three cups, if normal waking time then one cup but never ever ever after nine am.
Insomnia is the pits as a fellow sufferer since I was a teen...