Relay control of electrical quantities