@Mustapha I currently don't have the time and patience to investgate this further, but if your car has a VIN where the last 6 digits are higher than 614383 it should be possible to enable automatic headlights. But you will need to do changes to the electronics besides changing the light switch. Turning the fog lights into DLRs is not possible. Adding a switch with pn 31318937 and a separate switch for the front fog lights might work, but it's possible that you get a DTC because the DLRs are missing. Get yourself a copy of VIDA and EWD(wiring diagrams) to do your own researches. VIDA can be found here in this forum. EWD is available here
The pin decoding sets the car in programming mode. This means the car is completely unusable. Everything goes dark and the doors can't be locked. You will also need to attach a powerfull charger while decoding. Decoding with Vdash can take up to 24 hours, but usually it shouldn't last longer than 8 hours. At least with a Super J2534 adapter. Other adapters will be slower. Of course you can pause the decoding at any time. You can also rent or buy a VDD from D5T5. Decoding via VDD shouldn't take longer than 30 minutes on most V50s.