Everything is right, it is headlight switch is for an X5. It approaches and works. But, as have noticed above, after coding in tail light section 5, but not 7 lights up.
There are no head fog lights in my car therefore I have put the button from the old switch
upload pictures