Development and evaluation of new methods for energy management in household and office