In this thesis, we are going to describe a modular system for control of buildings with a wide variety of actuators. We will primarily focus on control of lamps and motor shades, and add general support for all sorts of sensors too. Human-machine interface consist of mobile application for operating systems Android, which connects to the control system. We are going to present and explain the system architecture including the description of the hardware and software solutions. We designed the system is such a way that it enables progressive integration in buildings. One of the main goals of the system is the suitability for installation in existing buildings by maximizing the use of existing control elements. We also assessed the cost of in...