Echo & Alexa Forums

General Category => Smart Devices and Gadgets => Topic started by: Marronnier on December 10, 2017, 05:54:11 am

Title: Delays in Alexa Routines
Post by: Marronnier on December 10, 2017, 05:54:11 am
I want to use Alexa to operate my curtains. To do this I need to turn on a wifi socket wait 20 seconds while the curtains open or close and then switch off the wifi socket.

There's no problem turning the wifi socket on and off but I can't find a way of waiting 20 seconds between the two commands. Does anyone know if this is possible?

Thanks
Title: Re: Delays in Alexa Routines
Post by: tuicemen on December 10, 2017, 01:03:40 pm
Routines are very new and simple macros thought new things get added as users make suggestions in the feed back of the Alexa app. ;)
It is possible we'll see this in the future.
Title: Re: Delays in Alexa Routines
Post by: Drwoodr on December 21, 2017, 07:56:25 am
I want to use Alexa to operate my curtains. To do this I need to turn on a wifi socket wait 20 seconds while the curtains open or close and then switch off the wifi socket.

There's no problem turning the wifi socket on and off but I can't find a way of waiting 20 seconds between the two commands. Does anyone know if this is possible?

Thanks

Does it have to be powered for exactly 20 seconds or are you just turning off the switch because you don’t want to leave it on? If the latter, you don’t say what brand socket You have, but my Wemo switches can be set to turn off automatically X minutes after Being turned on. See if your switch has a similar setting.
Title: Re: Delays in Alexa Routines
Post by: Automated aidy on December 31, 2017, 08:24:47 am
At the moment you can't set delays between commands with alexa :( I'm using an rm pro and the rm pluggin app to do this but it works a treat :)
Title: Re: Delays in Alexa Routines
Post by: tvdwouw on July 30, 2018, 04:23:49 am
There is a simple workaround which I tested.
For a short delay insert a command to make Alexa simple say "OK". For longer times make her say a longer sentence!
It may be annoying to hear the voice, so you may precede this line with Set volume to 0, but then don't forget to reset the volume as last command!
Title: Re: Delays in Alexa Routines
Post by: Marronnier on November 03, 2018, 12:12:08 pm
There is a simple workaround which I tested.
For a short delay insert a command to make Alexa simple say "OK". For longer times make her say a longer sentence!
It may be annoying to hear the voice, so you may precede this line with Set volume to 0, but then don't forget to reset the volume as last command!

Hi tvdwouw

Thanks for your reply - I've only just seen it. This sounds very promising. When I tried it, however, the operations that control the socket all get grouped together and the speach output is played after. This happens no matter what order I enter the commands.

I've entered a routine something like :-

Turn On: Socket1
Sing a song
Turn Off: Socket1

but it gets reorder to be :-

Turn On: Socket1
Turn Off: Socket1
Sing a song

.. so no delay, any thoughts? Thanks againfor your reply
Title: Re: Delays in Alexa Routines
Post by: asianrocker on November 06, 2018, 03:40:00 am
Maybe it didn't work coz you didn't use the say command like he suggested. I would just let Alexa say a countdown like 54321. Ya know.
Title: Re: Delays in Alexa Routines
Post by: renegade600 on November 06, 2018, 05:06:01 pm
Maybe it didn't work coz you didn't use the say command like he suggested. I would just let Alexa say a countdown like 54321. Ya know.

I have been playing around with delays in routines too.  I don't need it, just killing time.  I found the order does get change at times though not every time.  I think it has something to do with the timing of the signal sent.    Just something to think about
Title: Re: Delays in Alexa Routines
Post by: Jerome on November 20, 2018, 07:51:50 am
I think you can introduce delays (timers) with Stringify :
https://www.reddit.com/r/Stringify/comments/97oxe5/using_a_stringify_flow_from_an_alexa_routine/

Create a dummy 20-seond timer in a basic Stringify flow then call that flow in your Alexa routine.
Worth a shot.