With the increasingly prevalence of building automation devices and two-way communication infrastructure, home energy management has drawn lots of attentions in recent years. As a newly emerged residential energy resource, the home plugged electric vehicle (EV) has the potential to discharge energy and serve the home consumption. This paper proposes a home energy management (HEMS) by considering the penetration of vehicle-to-home (V2H) technology. The proposed system optimally schedules the plugged EV together with the automatically operated appliances in a real-time pricing environment, with the aim to minimize the one-day cost of the house. A recently proposed heuristic based algorithm, i.e., Natural Aggregation Algorithm (NAA) is applied to solve the HEMS model. Simulations results show that the V2H technology can significantly reduce the home energy cost for the residential users.