I had suffered from insomnia most of my life until recently. I tried various things some mentioned here and also prescriptions. But what has helped me is pot. It may not be for everyone but for me it has helped immensely. But do your research some types are better for sleeping than others. And please, this is a sincere post.
It may be anecdotal, but I too have had success with pot. My sleep schedule has been more regular, compared with the alternatives. At any rate they are less harmful for you compared to say benzos or z-drugs like Ambien.