Integrating stochastic discrete constraints in MPC. Application to Home Energy Management System. (September 2021)