With the recent global energy crisis, some countries have implemented electrical rationing (ER), making it necessary for smart homes to play a pivotal role in optimizing energy consumption and contributing to sustainable practices. To effectively manage smart home consumption, a stochastic programming approach for a grid-connected smart home energy management system (SHEMS) is proposed in this paper. The system includes PV, battery, diesel, and gas-based heating/cooling systems (HCS). Additionally, a demand response program (DRP) has been employed under time-of-use tariffs in the Syrian energy market. The main objective is to minimize the day-ahead expected cost and consumer discomfort by optimizing the operation of dispatchable units and loads. To manage the risks associated with the expected cost due to potential uncertainties in PV energy generation and electrical rationing programs, the conditional value-at-risk (CVaR) approach is adopted. Two methods are proposed to model the uncertainty in PV energy generation; interval bands and interval-based scenarios. The problem is modeled as a mixed-integer non-linear programming (MINLP) model, and coded in GAMS to test different cases. Based on the results obtained, substantial reductions reached 56.2% in worst-case cost scenarios when employing concurrent DRP-risk management.