OK, just an update
After trying o find a sunny day and free time for a few days I finally gave up and decided to drop the car off with a local garage. Unfortunately the garage refused to look at the wire alone. They wanted to do diagnostics again and change the sensor with a new one if sensor code comes up.
So at that point I decided to take it to a back street garage I know who will do what I want.
Amazingly on my way to the backstreet garage, to my surprise, the engine light went off. This was very strange , as this had not happened in the last week and a bit since I saw this problem. Anyway I took it to garage and they took air filter assembly off and peeled tape of wires etc. They couldn't find the yellow/green wire and none of the wires was broken or oddly bent. Finally they gave up and put everything back together. I have now been driving the car for a few days and no sign of that engine light, no error code and no erratic idling.
now I wait and ponder what it was