Smart-home energy management in the context of occupants' activity