Need a circuit that can switch motor direction by photo or timer input

acmotor

I have a reversible 115 volt ac motor that has its own internal limit switches to cut the power. It has 4 wires to the motor green-ground and red-hot ,black-hot, and white-neutral. If I have the red and white connected to power it turns one way and the black and white connected it turns the other way. I would like to know what sort of circuit I can use to switch power from the red wire to black wire and back depending on light levels or timer input. ie red wire powered by increasing light and black powered by decreasing light. It is for a door to be opened in the morning and closed in the evening.
Thanks

Best Answer

use a DPDT relay and photo-transistor made for turning on an outdoor light. You can buy them at any hardware store... DPDT relay for 110vAC at radioshack.