Anyone reading this post with the same fault, this is what I did to fix the problem.
2008 2.0HDI
Used Diagbox to fault find but everything seemed normal. Brake switch was changing state when the pedal pushed down and brake pressure went from 0 to 70bar and back down to 0.
Started looking through the circuit diagrams which confused things even more.
Only thing we did notice was when pressing the brake pedal and switching on the ignition, the ABS/ESP lights remained off until the pedal was released. This was the same after starting the engine, release the pedal the lights come on.
After some good advice it was suggested that it could either be the brake switch or the ABS pump.
As we had done 2 switches plus a brand new one we went for the pump.
The pump on this car also has attached to it the ESP ECU and in this combination is the pressure sensor.
After ordering and fitting an exact part number match from eBay we started off with a convention bleed which got us no where. Pressure bleeder fitted which started getting the majority of the air out the system but the pedal operation was still poor. Diagbox connected again and a full ABS bleed carried out. Loads more air out with now normal pedal operation but most important, ABS/ESP lights are gone
