Light Change on Arrival Automation Help

Hi everyone, just a a couple months ago I purchased a house and knew I needed Home Assistant running it. I’ve made a bunch of automations, but I’m still really a newbie at this. I was hoping for some help on creating this honestly useless but cool automation I wanted.

To give context, All my outdoor lights are Govee outdoor wall lights that are matter compatible. I have them currently turning on with a warm color at dusk and shutting off in the morning through home assistant.

I have door sensors that know if I open my garage doors connected via matter as well.

I spent an hour or so trying to create an automation that, IF i arrive home (anytime of day), the garage lights will change color for a minute then return to their previous state (which could be on or off).

However, I just can’t figure it out, i’ve created a helper to group the lights together and trying messing with “if-then” scenarios. Maybe I’m making this more difficult then I need to, but how do i ensure they return to their original state after this garage door opening “effect” occurs?

I tried looking on the forum for answers, but I wasn’t sure how to word it and struggled to find anything…

Could anyone possibly share if they did this before or give me some advice? I’m sure this isnt that hard but it doesn’t hurt to ask…

Thanks!!!

The concept you are looking for is “ad hoc Scene” or “Creating a Scene on the fly”:

If you search the forum for scene.create you will find numerous examples of what you are looking to do.

WOWWW thank you. I would’ve never figured that out. Thank you again!