I struggle with insomnia periodically. I've noticed that when I sleep on the west side of the house, where it's dark in the morning, I develop insomnia. When I sleep on the east side of the house (intense early morning light), I do not get insomnia. For me, natural light in the morning and restricting artificial light after sunset keeps my sleep regulated. Unfortunately, both those are difficult to achieve when living with other people.