Energy saving in smart homes based on consumer behaviour: A case study