I'll give you may 2 cents. First a disclaimer: I have a decent knowledge of home electric BUTTTT... I am NOT an electrician.
As I see your setup, you have power coming into a box you call the subpanel. This sends a feed to the Timer which controls and powers your pump. A second feed goes to...