Buildings with generation and storage assets have the opportunity to trade in electricity markets. Residential buildings, however, have load patterns that are more difficult to predict and less flexible -introducing uncertainties to their operation. In addition, local intermittent renewable energy sources further increase these uncertainties. In this regard, an uncertainty-aware model predictive control (UA-MPC) is proposed in this paper. The proposed UA-MPC allows residential building energy management systems to trade in intraday markets without violating the operational constraints of their batteries despite the uncertainties in load consumption and solar irradiation. Moreover, the proposed UA-MPC only needs prediction intervals instead of detailed probability distribution functions to describe the uncertainties. Furthermore, in the proposed UA-MPC, the optimization is formulated as a shortest path problem. Thus, the optimization can be solved in polynomial time, which is desirable in intraday settings. Numerical simulations for two active residential buildings in grid-connected and isolated-neighborhood scenarios have been used to evaluate the proposed UA-MPC. Furthermore, the performance of the proposed UA-MPC was compared with the performance of a deterministic model predictive control (MPC) and a robust MPC. The results show that the proposed UA-MPC eliminates constraint violations that would otherwise occur in using deterministic MPC while providing lower costs than those using robust MPC. The results also show that the proposed UA-MPC can generate bidding curves in a few seconds, demonstrating its applicability in intraday market settings.