Retrofitting a smart home