An apparatus in a home gateway for controlling home devices in a home network system, the apparatus comprising: a communication interface (312, 314, 316, 318, 320, 322); and a processor configured to: receive a request (1104, 1404, 1704, 3106) for executing a first operation mode from a first mobile station of a first user registered in the home gateway, wherein the first operation mode is an away home mode or a coming home mode; in response to the request for executing the first operation mode, determine whether a second mobile station of a second user registered in the home gateway is in the home network system; in response to the second mobile station not being in the home network system, determine (1106; 1406; 1706,1718; 3108) at least one home device associated with the first operation mode from among home devices in the home network system; transmit (1108,1110,1112; 1408,1410,1412; 1708,1710,1712,1720,1722,1724; 3110,3112) at least one control command to the at least one home device to execute one or more functions associated with the first operation mode; and report (1114, 1414, 3114), to the first mobile station of the first user, an execution result associated with at least one of the one or more functions. a communication interface (312, 314, 316, 318, 320, 322); and a processor configured to: receive a request (1104, 1404, 1704, 3106) for executing a first operation mode from a first mobile station of a first user registered in the home gateway, wherein the first operation mode is an away home mode or a coming home mode; in response to the request for executing the first operation mode, determine whether a second mobile station of a second user registered in the home gateway is in the home network system; in response to the second mobile station not being in the home network system, determine (1106; 1406; 1706,1718; 3108) at least one home device associated with the first operation mode from among home devices in the home network system; transmit (1108,1110,1112; 1408,1410,1412; 1708,1710,1712,1720,1722,1724; 3110,3112) at least one control command to the at least one home device to execute one or more functions associated with the first operation mode; and report (1114, 1414, 3114), to the first mobile station of the first user, an execution result associated with at least one of the one or more functions. receive a request (1104, 1404, 1704, 3106) for executing a first operation mode from a first mobile station of a first user registered in the home gateway, wherein the first operation mode is an away home mode or a coming home mode; in response to the request for executing the first operation mode, determine whether a second mobile station of a second user registered in the home gateway is in the home network system; in response to the second mobile station not being in the home network system, determine (1106; 1406; 1706,1718; 3108) at least one home device associated with the first operation mode from among home devices in the home network system; transmit (1108,1110,1112; 1408,1410,1412; 1708,1710,1712,1720,1722,1724; 3110,3112) at least one control command to the at least one home device to execute one or more functions associated with the first operation mode; and report (1114, 1414, 3114), to the first mobile station of the first user, an execution result associated with at least one of the one or more functions.