Reduced energy consumption by using home and building control systems