I bought a whole set of this parts, with the wiring.
It has:
1. Light switch with "AUTO" position
2. Rear view mirror dimmable, with light sensor and ambi light led
3. Rain sensor
4. Plastic covers for sensor and mirror base
5. Whole wiring for it

So, I already fitted light switch and it works just as the old before.
I fitted new rear view mirror too.
I used old base (metal plate that is glued to windscreen).
Cleaned it and glued using Loctite 319.
Removing base is a bit pain and risk to break/crack windscreen.
So as its summer now and here the temperatures are almost 40 every day.
I parked the car on the sunlight for 3-4 hours.
And rotating the base left and right it came off in a minute.
Also the base had to be moved up, closer to the roof, so that plastic covers can be fitted properly and hide all the cables.

So, now I am on wiring.

Auto dimming mirror has 2 wires.
Brown and black.

So, I suppose brown is + and black is -

Rain sensor has 3 wires.
Brown, black and green.



I suppose brown is + and black is - and the green is some sort of signal.

Can someone please help me with this?
I would like to make rain sensor functional.
So need to know where the wires ending too.
In which connector they go?

As I can see, they go down the A pillar in the footwell.

Any advise and suggestion are welcome.