The paper presents an approach towards teaching of intelligent building design combined with component programming of software modules for intelligent building control. This approach is supported by a laboratory simulator and a component-based environment. The simulator is composed of several ElB modules and a house control model. The component environment consists of low-level components for intelligent bus communication. The teaching approach uses the simulator to teach programming of intelligent building modules and construction of external software control components.