how to build intelligent home operating system (1)