P0505 is idle air control valve (IACV) code, though it can be caused by many other things like a vacuum leak, bad ECT sensor, TPS, etc.
Did the ELD CEL go away?
You have a fluctuating idle so it sounds like you have a vacuum leak somewhere. Check for any disconnected hoses and look into how to...