Smart home solutions provide home monitoring and automation, energy, health and media management services. However, smart home solutions are still not a major market product. This is because smart home devices are heterogeneous and so they face interoperability issues. Also, the data is identified by device address and so the user needs to know it in order to access the data. Secure data exchange is another major concern. The current solutions thus face issues of difficult setup, cumbersome maintenance and security lapses. To address these problems we propose a smart home solution based on Content Centric Networks (CCN). Name-based data access in CCN helps provide easier setup and maintenance of a smart home. CCN also helps in unifying heterogeneous devices at the network layer. Our scheme proposes the creation of virtual groups in which the devices can be controlled securely, and can be added flexibly regardless of physical locations. The management of devices and controllers is done centrally whereas all other communication takes place via a p2p connection. This provides better data synchronization, robust security and reduced device energy consumption. To validate our scheme, we implemented a proof of concept and measured time taken and packet overhead for setup and regular interactions. We found that our scheme outperforms existing work for both these metrics.