Intelligent systems for Smart Buildings