The cable had a black wire (live), a blue wire (neutral), a yellow/green wire (earth) and a brown wire, presumably the return to the light. But after trying different combinations, I tested the connection and found no circuit between the brown wire in the switch, and the brown wire that was connected to the light.
There was something else strange about this plug, and it was this:

The earth of the power-point was connected directly to one of the plug poles. I suspected that this strangeness was somehow related to the switch not working, but I couldn't work out what.
(Those of you who know something about electrics and enjoy puzzles might want to think about this before reading on.)



