Record color lights before an event

Hello everybody !

I need your help (again…) !
Here is my use case:

1 - My lights are in a current color
2 - Some trigger happens
3 - My lights blink in a certain color
4 - My lights should return to their originals colors

do you have an idea ?

thank you !!

How many lights are you talking about?