Try having a look for CBD/Melatonin capsules.
Insomnia can be caused by a deficiency in Melatonin, a hormone that triggers the brain into saying it's time to sleep, and without that, especially if you are also low on vitamin D3 like much of the Western world is thanks to us covering ourselves up and not exposing our skin to enough natural sunlight (genetic factors play a part there too). Add in the CBD and the natural sedative effect can help you into blissful slumber.
So weed MIGHT help you "sleep", but that's only treating the symptom and not the cause and also does not mean you'll get the "right kind" of sleep.
Oh, and one of the biggest ones? Learn to accept that you might not get a full night's sleep, for the second you think "Here we go, I hope I sleep tonight" is the second you won't. My insomnia is seriously chronic, I "sleep like a baby" as in I waken ever 1-2 hours for no reason whatsoever, have been like that for at least 20 years, I accept that I won't get what they say is a "good night's sleep" but the sleep I do get is quality sleep so is enough for my body. That, alone, can make a huge difference.