The latest Minecraft update now has beds, which is very nice for the first few nights of the game while you establish a mob-resistant area that you can work in during the night.
For reference, you sleep in a bed during the nighttime and it fast-forwards to daylight.
My problem is that I've put down a bed, and every time I sleep in it I get woken up by mobs inside my house. I've made sure it's very light, darkened it a bit - tried a few combinations but no luck.
What am I missing? How can I avoid having mobs spawning inside my house every time I try and get some sleep?