A novel power management for nanogrids is presented. In this paper, effect of resident location in residence is taken into account for evaluation of power consumption in nanogrids. Depending on the resident location, operating conditions of heater, ventilation fan, and air-conditioner are adjusted. Electric appliances that allow delayed use, i.e., shiftable, are scheduled for efficient power management. Considering massive deployment of energy storage system (ESS) as a supplementary power source, effect of the ESS on power management is investigated. Demand response program for reduced electricity cost is also considered for power management. As a result, an objective consisting of power consumed by non-shiftable and shiftable electric appliances, power supplied/consumed by the ESS during discharging/charging, and time-varying electricity cost is formulated. Another objective for power management is a function of delays in scheduling of shiftable electric appliances. Variation of resident location combined with temporal use of electric appliances according to the resident location are considered as the resident behavior and incorporated into these two objectives. Using these two objectives, a multi-objective optimization is performed for nanogrids at each time interval. It is demonstrated by simulations that leveraging resident behavior is beneficial for power management of nanogrids. In addition, effects of the number of residents in each apartment and combined activity of each resident on the power management are presented with related simulation results. (C) 2019 Elsevier B.V. All rights reserved.