I have an Project for House automation, and i am going to start with the gate, the goal, is to open the gate via bluetooth or wifi or both, i use a xiaomi mi band, and i could use it to open my gate, or remotly via VPN and an App, i have a Server at home with firewall etc... i new to robotics, i have just made my first quadcopter which its nice, and now i want to start with something more advanced, i dont understand much of House Electric, so i am asking here for help!
Here is the gate opener circuit:
http://i.imgur.com/JhEm94s.jpg

The P2 its the switch button, if i press it opens the gate
What kind of hardware am i going to need, and which version of PI is appropriated? the smaller the better i want to place everything inside that box aswell, if i cant isnt a problem.
Thanks!