Liquid from the ovan tank flows to two meter containers and then to the grey bottle alternately subject to handle positions of the blue four port valve.
The principle of communicating vessels is applied here.
No electricity is required.
Volume error depends on the oscilation of liquid level in the oval tank and the inside diameter (should be minimum) of the air pipes of the meter containers.