Driving home last night and felt the car start to idle rough while sitting at a stop light. Noticed the RPM dropping way below 500 then back up over 1k. Put it in neutral to rev it up a bit and once over 1k RPM, it cleared. As I let it go back to idle, I noticed the Check Engine light was on and the idle was once again rough. but eventually smoothed and the light went out.....but only for a while as it would do it again after a few minutes. Each time I would rev it up over 1k and it would again smooth out, only to come back again. Let the car sit overnight and all seemed to be fine this morning. However after about 40 minutes the problem was back and the Check Engine light was on. So as not to get stuck on the road, I pulled it into the dealer (god, I hate them) and put it in for service. Of course the whole time I was waiting for an advisor, the car idled just fine and the light never came on. Seems the problem in intermittent.
Any ideas on what coul be the cause of this?
94 530i - 201k miles