Is there a second switch? Do you want it back as 2 way?
If not
Red to com
black to L1
Leave red, yellow, blue, as they are.
If so....
Black to L1
Red to L2
And red, yellow, Blue the same in both switches
E.g.
Red to com
Yellow to L1 with the black
Blue to L2 with the red.