Does anything actually work to help sleep?

I have suffered bouts of insomnia for as long as I can remember. I'm having a very bad episode, for weeks now. I take diazepam, amytriptaline, mirtazipine, propranolol (I have bpd & cptsd) as well as codeine for physical illness and I still cannot sleep. I have used zopiclone in the past when I go to the mental health unit during crisis but I can't stand the feeling the next day and the taste they leave to use them long term. What on earth can I do? It's 3:30am here and I've done 8 hours of travelling today on public transport. I am absolutely shattered but I cannot sleep. And it's making me feel like I'm actually going insane. I'm in the UK so access to mental health services is years of jumping through hoops, waiting lists and then being told I have bpd so there's not much anyone can do. Useless to put it truthfully, they're useless. Can anyone give me any ideas, and other meds you've tried that worked? I manage around 2-3 hours a night but I wake a few times, never sleep more than a full hour and I'm at my wits end.