Spirit houses are shrines placed in the corner of one's property. They are, as one might conclude from the name, houses for spirits.
Yellow is HM the King's birth color (each day of the week has an associated color). The blue of the Thai flag symbolizes royalty. It's also the queen's birth color.