You could also just create a switch in ha or openhab and call it lights in 30 minutes. If you want a light to turn on for 30 minutes you will have to make 2 routines.
Alexa Gains Lighting Features Like Sleep Timers And Dimming
Alexa turn light off in 30 minutes. Older routines can be updated to add music and to. Just create one virtual switch and use the power allowance feature in smart lighting so that it always turns itself off after x minutes. Routines can only turn devices on or off. Then when you want to turn off the lights tell echo to turn on the timer and when. Routines were updated in early 2018. So you can set recurring daily alarms that turn your smart lights on and off with commands like alexa set up an alarm for every morning at 7am with my bedside lamp and alexa set a 30.
Then you set your other real switches to follow that switch using smart lighting. Then you authorize the virtual timer switch for echo to use. Then you would be able to say turn off the bedroom lights in 10 minutes and itll trigger that function. Turn on the garage light 5 minutes. Open alexa then discover devices and scenes. I have my aquarium light that stays on for 2 minutes after my night time routine triggers to give me time to get to bed you could do.
Alexa turn off all lights after x minutes. An enhanced version of this feature could be dim bedroom light to 0 in 30 minutes. Name your scene whatever you like something like garage light 5 minutes 3. One to turn it on and a second one starting 30 minutes later to turn the light back off. You could set several up say one for 1 minute 5 minutes 10 minutes 15 minutes and 30 minutes. That way it would simply sound a bit more natural if you say alexa turn off the lights in 30 minutes and all she does is flip a virtual switch that triggers the script you were talking about.
Turn on the switchlight b. Wish this was possible alexa turn off garage lights in 5 minutes this would let me leave the garage before the lights were switched off. To make it happen open up the alexa app and either create a new routine or edit an existing one. However since ill use the restroom and grab some coffee first i can add a delay so that the space heater doesnt turn on until after a few minutes have passed. The new scene should show up in the alexa app. Say alexa ask home my invocation name to turn off living room lights in 5 mins lambda receives the command and parses it sends params livingroom off and 5mins to my raspberry pis webserver the webserver writes the params into a file my croned python script parses the file every minute if there are entries which match the current time it sends the params in this case livingroom and off to the openhab api.
When you go to add an action you can select wait from the options. Paybax ryan little september 10. Now you can start music with your routines. Add a timer to turn off the switch light in 60 seconds.