sometimes it is seems that bmw car is too smart
because actually mirror assembly have inside different modules and 2 or 3 power signals activating various functions in different conditions
for example alarm signal powered always
auto-dim function should work when car is opened but engine can be not started
and homelink is working only when engine started