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. Paybax ryan little september 10.
Can Alexa Schedule Lights Yes How To Do It
Alexa turn light off in 30 minutes. 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. Turn on the garage light 5 minutes. Just create one virtual switch and use the power allowance feature in smart lighting so that it always turns itself off after x minutes. You could set several up say one for 1 minute 5 minutes 10 minutes 15 minutes and 30 minutes. 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. If you want a light to turn on for 30 minutes you will have to make 2 routines.
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. Then you would be able to say turn off the bedroom lights in 10 minutes and itll trigger that function. The new scene should show up in the alexa app. 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. Older routines can be updated to add music and to. Then you authorize the virtual timer switch for echo to use.
Name your scene whatever you like something like garage light 5 minutes 3. Then when you want to turn off the lights tell echo to turn on the timer and when. Turn on the switchlight b. Routines were updated in early 2018. Add a timer to turn off the switch light in 60 seconds. Alexa turn off all lights after x minutes.
Then you set your other real switches to follow that switch using smart lighting. Now you can start music with your routines. To make it happen open up the alexa app and either create a new routine or edit an existing one. Open alexa then discover devices and scenes. One to turn it on and a second one starting 30 minutes later to turn the light back off. You could also just create a switch in ha or openhab and call it lights in 30 minutes.
Routines can only turn devices on or off. When you go to add an action you can select wait from the options. An enhanced version of this feature could be dim bedroom light to 0 in 30 minutes. 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.