Change lighting scene for doorbell chime, and back again after a few seconds

I want to change the color of my entryway lights when my Nest doorbell chime is pressed. How do I change a scene and revert it back to whatever scene (or state of the light entities) was originally active?

For instance, when the chime is pressed, the lights will turn red for 5 seconds. If the lights were green before the chime press, they return to green. Or if the lights were off before the chime press, they should return back to off.

The Scene documentation shows how to create a scene in an automation action sequence and then restore it after some other actions:

1 Like