Addressing the stochastic nature of energy management in smart homes | Synapse