Automation of any building integrates the following systems: power supply, lighting, conditioning, ventilation, resource consumption, leakage sensors, humidity sensors, control of AV equipment, etc. Controlling, collecting, storing and analyzing data is typically done by equipment with different interfaces and control protocols. How to integrate them into a single control system? – With the help of gateways.