You need an earth wire from the earths inside the switch box, to the earth terminal on the new switch.
The brown wire with the folded over copper end to COM.
The brown and the grey that are sharing the same brown sleeve to L2.
The remaining browns and the black to L1.