A fuzzy control system for energy management in a domestic environment