Connect the pump via a relay
take permanent live or live from time clock when time clock switches of to pipe stat, switch wire from pipe stat through A1 (2) on relay and link to N/O (3) of relay, connect pump to corresponding terminal of relay (1), then connect original wire to pump to N/C...