This is a closeup of the wiring inside the rearview mirror housing of a 2017 BMW440i. I tapped the brown/black wire in the red connector at the top for the ground connection and the green/brown wire in the larger black connector for +12 volts switched by the ignition. Wire taps are by J28 Design
. I used a small tap for the ground connection and the longest tap for 12v power.