Connecting a pump to wall socket using a transformer
You're nearly there!







Note: European wire colours used here.


Find a suitable enclosure for the transformer, switch and a fuse.
Connect the live wire (brown) to the fuse, the fuse to the switch and the switch to one of the 230 V red wires on the transformer primary.
Connect the neutral (blue) wire to the red of the transformer primary.
Connect the pump to the two outer blue wires on the transformer.
Connect the earth / ground wire to the black centre-tap of the transformer.


The result will be a 24 V supply to the pump with what is known as a centre-tap ground. This limits the voltages at the pump to 12 V with respect to ground while still applying 24 V to the motor.


A 500 mA fuse would be adequate protection for the setup.
Water-proof everything and, if possible, keep the control box remote from any water.








If the pressure switch is exposed or difficult to insulate you may further improve safety by putting the pressure switch in the low-voltage side. This has the disadvantage that the transformer will be always on and wasting a little energy when the pump is not running. (The pressure switch link in your question links to the transformer. Check that it is rated for at least 2 A.)



Version 1 wiring. Note that switch is on mains voltage side of transformer.



Version 2 wiring. Note switch is wired on low-voltage side. Wire switch internally with left cable in nearest terminals to cable entry as shown in the instruction leaflet. Note that there is no switch on the transformer mains side. Unplug when not in use.