I will searche out the pins for you!
Normally
This is the positive wire
Pin 8 from mirror goes to pin 1 junction box connector x11008 (0,5mm² red/green)
Negative wire
Pin 10 from mirror to cars negative connector x2814
(0,5mm² brown)
Pin.1 from mirror to junction box pin 38 connector x11002 (0,35mm² black/white)
Pin 7 from mirror to CA comfort access module Pin 3 connector x13354 (0,35mm² white/Brown)
Pin 2 from mirror to CAS module goes to X15 connector pin 22 and from there to CAS module connector x10318 pin 33
(0,35mm² Yellow wire)
This was only for your remote key + one wire for Comfort Access (keyless Go)
Pin 4 (black/brown) and pin 5 (black/red) goes to left and right mirror
Maybe it helps!
You can make a picture and I can try to help!
Wiring is for your Vin
Pin 7 is for comfort acces you don't have this option
Of you have automatic dimming, you have connect pin 4 and pin 5 but important is for you now.
Pin 2 pin 8 and pin 10
Maybe your mirror has the option for automatic dimming that's why you have 5 cable on mirror side and only 3 car side
Next ist you can retrofit the dimming option as well!
Only for the inside mirror, if we solve problem 1 we can go to retrofit part
The best thing is post pictures too