Want to return Hue lights to original state before flashing for a notification

Hi all,

I’m trying to set up an automation so my Hue lights flash as a notification but I can’t figure out how to make them return to their original state before setting the lights a specific color, as in if the lights were dark and warm beforehand, I’d like them to go back to how they were.

Thanks

On the fly scene is your friend.