The smart home is a field that uses smart devices and gadgets to automate tasks and operations in the house, and it is expected that this study subject will become a focal point in future civilizations. The adoption of smart home services faces significant obstacles in terms of reliability and stability. The Software Defined Networking (SDN) paradigm offers up novel approaches and trends to embrace smart technologies to tackle the issues of smart homes. To avoid accidents, we developed a vertical SDN-based multi-level structure consisting of two controllers with a parent-child connection. It enables smart homes to make optimal use of current services while also providing new services to smart homes and buildings, opening the path for future smart services. In addition, we created an Application Programming Interface (API) for the smart home to make it easier to use current services and pave the path for future smart services. We designed numerous jobs depending on their categorization to give smart services, which is beneficial for smart homes. Local topologies, cloud topologies, and cloud-local topologies have all been compared in the evaluation section. The performance of POX, NOX, and Flood Light controllers is measured using three performance metrics: mean throughput, Round-Trip Time (RTT), and packet loss across all three topologies. Our findings revealed that the cloud-local topology had the lowest packet loss ratio of 1.4%, while the local and cloud topologies had 1.9% and 2.3%, respectively.