This study introduces a smart home load scheduling system that aims to address concerns related to energy conservation and environmental preservation. A comprehensive demand response (DR) model is proposed, which includes an energy consumption scheduler (ECS) designed to optimize the operation of smart appliances. The ECS utilizes various optimization algorithms, including particle swarm optimization (PSO), genetic optimization algorithm (GOA), wind-driven optimization (WDO), and the hybrid genetic wind-driven optimization (HGWDO) algorithm. These algorithms work together to schedule smart home appliance operations effectively under real-time price-based demand response (RTPDR). The efficient integration of renewable energy into smart grids (SGs) is challenging due to its time-varying and intermittent nature. To address this, batteries were used in this study to mitigate the fluctuations in renewable generation. The simulation results validate the effectiveness of our proposed approach in optimally addressing the smart home load scheduling problem with photovoltaic generation and DR. The system achieves the minimization of utility bills, pollutant emissions, and the peak-to-average demand ratio (PADR) compared to existing models. Through this study, we provide a practical and effective solution to enhance the efficiency of smart home energy management, contributing to sustainable practices and reducing environmental impact.