Echo & Alexa Forums

Control a plug: on / wait / off

0 Members and 1 Guest are viewing this topic.

PJFrigate

Control a plug: on / wait / off
« on: January 27, 2018, 05:30:51 pm »
I have an Echo Dot and a single TP-Link smart outlet. I want to connect the outlet to my coffee grinder. By command I want the outlet to turn on; wait 23 seconds; turn it off. Is this possible, and if so how.

Offline tthoben

  • ****
  • 118
  • Greetings from sunny Singapore!
Re: Control a plug: on / wait / off
« Reply #1 on: January 27, 2018, 07:49:56 pm »
The easiest way is to use routines but probably the minimum interval is 1 minute between commands.
Echo Dot @ SG

Offline kenf

  • ****
  • 127
Re: Control a plug: on / wait / off
« Reply #2 on: February 28, 2018, 03:29:58 pm »
I didn't think Routines had Wait options.

look to see if IFTTT supports your switch (TP-Link).

I'm needing something similar but different (wife wake up, say good morning, 30 minutes later, get reminder to take 2nd medication).

Here's the theory to set it up (actual solution may vary):
Name your switch Grinder (for this exercise)
With IFTTT, you'd set it to watch for your Grinder to turn on, and if it allows wait 29 seconds, then send command Grinder turn off

I have SmartThings, so I can probably do this with an SS Routine, or IFTTT.  The key challenge is the wait behavior, one which platform provides that mechanism.  I suspect IFTTT to cover more of this programmer-centric kind of toolset.