The Basics of a Smart Home