A smart energy management controller can improve energy efficiency, save energy costs, and reduce carbon emissions and energy consumption while accurately catering to consumer consumption habits. Having integrated various renewable energy systems (RESs) and a battery storage system (BSS), we proposed an optimization-based demand-side management (DSM) scheduler and energy management controller (SEMC) for a smart home. The suggested SEMC creates a DSM-based operational plan regarding user-centered and comfort-aware preferences. Using the generated appliances operation plan, consumers can reduce energy costs, carbon emissions, peak-to-average ratio (PAR), improve their comfort in terms of thermal, illumination, and appliances usage preferences. A schedule for residential consumers is suggested using ant colony optimization (ACO), teaching learning-based optimization (TLBO), Jaya algorithm, rainfall algorithm, firefly algorithm, and our hybrid ACO and TLBO optimization (ACTLBO) algorithm. Five existing algorithms-based frameworks validate the DSM framework that relies on ACTLBO. The results validate that the integration of RESs and BSS, and adapting our proposed algorithm and SEMC under demand response program real-time price reduced the energy bill costs, PAR and CO2 in Case I: only external grid (EG) usage by 42.14%, 22.05%, and 28.33%, in Case II: EG with RESs by 21.79%, 11.27%, 17.02%, and in Case III: EG with RESs and BSS by 28.76%, 41.53%, 21.86%, respectively as compared to without employing SEMC. Moreover, the user comfort improvement index-ratio with scheduling using ACTLBO is 7.77%, 24.73%, 5.00%, and 3.43% in terms of average delay, indoor air quality, thermal, and visual, respectively. Simulation results show that the proposed DSM-based framework outperforms existing frameworks to reduce energy bill costs, reduce carbon emissions, mitigate peak loads, and improve user comfort.