EDIT: Now that I have found more information, I edited correct pictures and pinouts and edited allmost all of the post also. Schematic is at the post below.
I live in Finland and here we must have this front lamp height control (manual) for this yearmodel ( this is 2000 Legacy). Car used to have pneumatic "springs", and it kept the car horizontal, now it does have normal springs and I need to convert this so there is manual height control for front lights.
Here is the correct pinouts found from factory service manual:
Headlight levelling switch (Spare part number: Koito 83011AE000 (or 83011AE010 maybe also?)):
1. +12v (Lamp)
2. +12v (for electronics)
3. Left motor signal (voltage present only when connected to motor)
4. Right motor signal (voltage present only when connected to motor)
5. Ground (for electronics)
6. Ground (Lamp)
Headlight levelling motor (spare part number: Koito 37221-32045-25684):
I know many other cars use this exact same levelling motor, Toyota, Mitsubishi, Suzuki, Lexus. Someone might use same height controller knob. I might use controller knob for previously mentioned cars also, but now I have genuine Subaru controller and will be using it.
Here are the pictures.