Optimal home energy management including batteries and heterogenous uncertainties. (April 2023)