Smart Energy Control Systems For Sustainable Buildings