A Switch to Smart Home