Thanks for your thoughts. However I can eliminate anything to do with the clutch as the behaviour is the same either with the clutch depressed, or when rolling in neutral. The engine runs at 1500 rpm until almost at a standstill, then drops to 1000 rpm. If I’m on a slope I cat let the car roll again and the idle goes up again without touching the throttle. I think that eliminates therottle cable or butterfly sticking too.
It feels like the ECU is controlling the engine to behave in this way.