The prevalence and diffusion of the distributed generator and battery accelerate the autonomous-decentralizing of the various levels and types of Power grid system. In order to smooth the reverse power flow generated from distributed generator which have a lot of ups and downs, the local production for local consumption will be the basic issue of each power grid. Here we show the Modeling and Simulation of Home Nanogrid Energy Management System using the internal price of electricity.