how to wire a smart house