Design of an intelligent home