"snapshot" for light

I would like to make a welcome home script for some light. I have two philips hue lights that are normally dimmed in some color when it is dark. However when I arrive home I would like these 2 lights to dim up in a certain color for some time and then return to the original color and brightness.
I am using a “snapshot” function for my Sonos that does exactly this with music but can it be done with lights too?