How to Create an Automation: Turn on Light and Off After 5 Minutes

Hey everyone! :wave: I’m new to Home Assistant and I’m trying to figure out how to create an automation that turns on a light when I trigger it manually and then turns it off after 5 minutes. I’ve been using the web UI to set this up, but I’m not quite getting it to work. Let me walk through what I’ve tried so far and maybe someone can help me out!

First, I went to the Automation section in the web UI. I selected Manually Triggerable as the trigger because I want to start the automation myself. Then, I added an action to turn on the light. That part seems to work fine when I test it. The issue comes when I try to add the second action to turn the light off after 5 minutes.

I tried using the Delay action, but I’m not sure if I’m setting it up correctly. I set the delay to 5 minutes, but when I test the automation, the light turns on but doesn’t turn off automatically. I must be missing something here. Maybe there’s a different way to structure the actions or perhaps I need to use a different type of trigger?

I also considered using Conditions, but I’m not sure if they’re necessary in this case. I just want the light to turn off after a set amount of time, regardless of any other conditions. I think I might need to use a Sequence of actions, but I’m not entirely sure how to set that up in the web UI.

If anyone has successfully created a similar automation, I’d love to hear how you did it! Maybe there’s a different approach or a specific setting I need to adjust. I’m really looking forward to getting this automation working so I can streamline my home lighting setup. Thanks in advance for any help or advice you can offer! :pray: