Our smart home consists of Wi-Fi based wireless sensor and switches products. It offers cloud-based solution for remote access of electrical components and incorporate variety of sensing for automated and intelligent control. It stores every ON/OFF operation of switches and sensors data at cloud storage. Data analytics is implemented to give real-time feedback to users on the usage and appropriate actions for comfort and energy saving. Our system has rules based configuration of each switch for different type of sensors such as light, temperature, humidity, motion, gas and smoke. It also allows to create themes by grouping various switches to automate or schedule them in a single operation. This mobile application provides a user friendly interface to view the real-time sensory data and operate switches. The application also runs in offline mode seamlessly when the Internet connection is not available to cloud server.