This "chicken coop" problem comes up from time to time. The difficulties are the high current motor AND the low stand-by power consumption.
The next issue is whether a photocell, astronomic timer, or timer is appropriate,
Next is whether motor coasting is an issue.
A manual reversing switch can be made with a DPDT switch with the end pins crossed.
1 2 3
4 5 6
e.g. 1,6 and 4 to 3. Power or motor to center pins and motor or power to end pins.
That could be a DPDT relay as well.
OK, so let's add limits. So what we do is add two microswitches in series with the motor that open at the extreme. OK, but when they get to the end, they can't get back. A diode placed across the open switch at the ends will allow the ability to reverse.
So, the problem this has is the relay consumes significant current in one direction.
So, more education: There are at least two methods of control: direction only and a NOT enable, direction. Some system implement open close, coast and brake. Info really isn't that important.
Now, there are devices called a dual coil magnetic latching relay. It has two coils and operates on pulses.
There is also a device called an impulse relay. On each pulse it changes state,
So, when the coop reaches the end it has t do doo things:
1. reverse the drirection
2. urn the power off.
In any event, the necessity of the relay needing power complicates things, The timer complicates things. Basically quiescent current.
So, how about two timers. One that controls the 12 V power to the logic/motor and another that controls the door direction?
Just have them synchonized so that the power is applied to the door 10 min before used and 10 min after, so the system is wasting power for about 10 minutes.