First pin brand model of the friend or flat engine there will tell you if inside it is a push button, story.etc but in some corner of your gate put a button that when you release the precision turns on the light
Do the following:
If it has two terminals for the garage light and when it opens you have no voltage on any of it is because they are “dry contact”, so you have to feed one of them with permanent 220V and the other you connect it to the garage light , (the other of the neutral garage light) and so it will turn on when you open the gate
Luck
You can pass me a scheme of the connection of this automatisms.
I have been thinking and it has also occurred to me the following I have verified that while the door opens or closes in those contacts there is continuity and puts that they are free of tension, when the door is closed there is no continuity between them, which leads me to think that it is a dry contact of the plate relay. My proposal is the following: I can pass through this contact a supply wire either at 230 V AC or at 12 V AC that goes to the coil of an external relay and through the open contacts of this relay pass 230 V.