Blue into L, black into N, E into E, yellow was left where it was. You questioned the yellow not going anywhere at the time. EFLImpudence's sketch matches the switch box wiring exactly. I don't know how the lights functioned previously as we had the plastering gone on purchasing the house...