I think the mirror has light sensors on front and rear and looks for a differential between them to determine if it should turn on the dimming feature. Possibly something wrong with one of the sensors? Possibly you have something blocking the front facing sensor?