Saving state of turned off light in automations

Hey all!

I’ve got the following scenario: I have a hue RGB light which I set to a specific color for a few seconds if an event happens. After that the light gets set to its original state before the automation.

It works well via the scene.create service, except when the light was off before the automation got triggered. Then the light keeps the colour which the automation did set.

What’s the best way to handle this?

Is there a recommended way to work around this problem?