Washing machine automation 2nd step

Hi all,

I just got a smart washing machine and made an automation which turns on one of our lights in green color.
Now I want to add a 2nd step which turns the light to the state which it had before turning green when I open the door of the washing machine.
I don’t have any clue how to do this. I tried to search a solution in the forum since I think this should be a common use case but failed :man_shrugging:

Save your light state in a “scene on the fly”, see: Scenes - Home Assistant

Restore that scene when the door is opened.

Great scene on the fly is looking promising. How do I call this when the door is opened.
Couldn’t find an option in the automation how to add this second step.

Use the scene.turn_on action. Then you may want to delete the saved scene, (that action is in the documentation).

Thanks I think I got it. I was missing that it is possible to add another trigger after the light was set to green.
Machine is running in 2 h i know if it’s working as intended :v:t2:

I finally got it running today :rocket:
Took me some trials but now its setting the saved scene and deleting it when the door is opened.

As next step I tried to extend to a case when somebody changes the light before the door is opened. Then the secene should be deleted and the automation should be stopped.

I tried hard in the visual editor but could not find a solution on how to wait for two triggers and do sth different dependent on which trigger happens first.

Can sb help out on this one too?