The energy resources coordination inside nearly-zero energy buildings is proposed. All converter references consider the symmetrical component approach. The system also estimates the impact of the building over the whole network. The power balance between the building and the grid is made instantaneously.