@MimiJ Hi Amanda, welcome back to the forum, great work on your 31 days 

I suffer from insomnia, not every night it comes and goes.
No rhyme or reason that I can work out 
Insomnia is very common in early sobriety and should resolve itself eventually.
But, if you are cursed with recurrent insomnia this is what to do when it hits.
Rule No1, for me is don’t stay in bed tossing and turning trying to sleep, it doesn’t work.
I get up and do something.
I use the time to read a lot of books and it’s amazing how many I get through.
I also use the time to make scale models, do some quite cleaning around the house, do things I’ve been putting off or going for a walk.
I live in a safe area, so walking at night is not a problem, and then again I have my 2 Border Collies for company and protection if needed, never been needed yet 
How I try and ensure insomnia doesn’t come to call, is by being as active as I can during the day, so I’m knackered when I go to bed. Sometimes that’s not possible 
Herbal teas can help especially Camomile
, lavender and Passion Flower 
Meditation does work, it calms the mind and reduces ‘washing machine head’ also called brain chatter 
It also can work for the sadness waves and bring calm and peace 
YouTube, has a lot of guided meditation videos some upto 3hrs long, worth a Google 
Playing PC, Xbox etc games is another option, it keeps you occupied 
I play WoW, and have done for ages.
I’ve tried a lot of different things some work better than others, some don’t work at all, it’s an individual thing everyone responds to things differently 
Take care, stay strong and stay sober.
&