Smart energy management for households