Home bed missing or obstructed when it's not
Are there blocks around the bed? The bed checks for an area all around the bed, looking for a space where a player can stand. Make sure that at least one block around the bed is able to be stood on.
(This means that beds indented into the floor are not spawnable, even with slabs around it)