The paper describes an approach to management of heterogeneous swarm of cyber-physical devices. This approach includes 3 functional levels: the aggregation level, the peripheral level and the data collection level. Variants of using this approach are considered: a crisis management network, a robotic complex for monitoring premises and a system for detecting security incidents in premises.