The paper dwells on the unified power quality indexes characterizing the phenomenon of voltage unbalance in three-phase systems. Voltage unbalance is one of the commonest occurrences in the town mains of 0.38 kV voltage. The phenomenon describes as inequality of vector magnitude of phase voltage and shearing angle between them. Causes and consequences of the voltage unbalance in distribution networks have been considered. The algorithm, which allows switching one-phase load, has been developed as one of the methods of reducing the unbalance level. The algorithm is written in the function block diagram programming language. For determining the duration and magnitude of the unbalance level it is proposed to introduce the forecasting algorithm. The necessary data for forecasting are accumulated in the course of the algorithm based on the Function Block Diagram. The algorithm example is given for transforming substation of the urban electrical power supply system. The results of the economic efficiency assessment of the algorithm implementation are shown in conclusion. The use of automatic switching of the one-phase load for explored substation allows reducing energy losses (active electric energy by 7.63%; reactive energy by 8.37%). It also allows improving supply quality to a consumer. For explored substation the average zero-sequence unbalance factor has dropped from 3.59% to 2.13%, and the negative-sequence unbalance factor has dropped from 0.61% to 0.36%.