logo elektroda
logo elektroda
X
logo elektroda

IFTTT - How do I add a delay for Alexa to turn off Sonoff?

jonbrawo 831 4
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 18640741
    jonbrawo
    Level 10  
    Hello
    Perhaps someone has solved the problem of entering a delay in IFTTT and is able to help. I unfortunately have not found a method so far.

    I have two Sonoff relays controlled simultaneously using Amazon Alexa.
    By using IFTTT with a single command (e.g. "Alexa, trigger TEST") I switch on Sonoff 1 and switch off Sonoff2 (in IFTTT there are two separate commands for each Sonoff separately). Everything works beautifully.

    I would like to extend the command controlling Sonoff2 to add a delay of say 20 seconds to the execution of the switch off command, so as to get the light connected to Sonoff2 to switch off after a certain time after the command has been spoken to Alexa.

    At one time, Stringify, available on Google Play, was supposedly great for this purpose. However, the app/service no longer works.

    Thanks for your help
  • ADVERTISEMENT
  • Helpful post
    #2 18642708
    sk1977

    IT specialist
    Does it have to be in IFTTT?
    Just a quick look at the ALEXA application
    IFTTT - How do I add a delay for Alexa to turn off Sonoff? .
    You can add before WAIT on/off 1 sonoff and you have the whole thing.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 18642980
    jonbrawo
    Level 10  
    Rather, it would have to be IFTTT,
    The problem presented is only a small part to not "obscure" the description.
    In general, my whole system runs on Alexa, Harmony Hub and Sonoff relays.
    Alexa is used for voice control, Haremony Hub controls devices over IR, BT or Ethernet AV devices, but unfortunately is not able to manage Sonoff. For Sonoff, I use IFTTT.

    Example of operation:
    - Command to Alexa: Alexa, trigger TV (command activates a set of rules in IFTTT).
    - IFTTT triggers the set action activity in the harmony Hub:
    - triggering the monitor (with the setting has the corresponding HDMI source), triggering the DVBt tuner, triggering the Receiver and sets it to the corresponding HDMI source
    - IFTTT activates the Sonoff relay - switching on the subwoofer
    - IFTTT turns off the light (which needs to be delayed by approx. 20 seconds)

    Actually the Sonoff could be managed from within Alexa, but I want one command to run everything (turning the lights off I could just do with a second command, but if something can work better it needs to be made to work).

    As I wrote earlier, what I need to do was implemented by Stringify (below is a link to an article describing how it works). Unfortunately Stringify can no longer be used.
    https://www.reddit.com/r/ifttt/comments/7autx...cipe_create_a_delayed_trigger_timer_in_ifttt/
  • ADVERTISEMENT
  • Helpful post
    #4 18643021
    sk1977

    IT specialist
    Have you tried assigning the same command a delay in the application? Will it execute in parallel?

    Or a set of commands in Alexa:
    - Set activation in IFTTT (this you probably already have)
    - wait
    - sonoff delayed

    It won't be 100% in IFTTT but it might solve the problem.
    Helpful post? Buy me a coffee.
  • #5 18645520
    jonbrawo
    Level 10  
    Many thanks to #sk1977

    Buddy, indeed alexa has given advice. I hadn't thought before that it could be used, so by all means my problem solved :) (solved by you).

    However, I would leave the topic open as not everyone will always have Alexe to use. Personally, I also have a Google Home Mini to test, and I don't know if google offer like Amazon -> "Routines" in which you can set actions (macros) with the order in which tasks are performed.

    If anyone ever comes across a programmatic Delay that can be dropped into IFTTT then please write :) .

    And for colleague sk1977 thanks because my problem with using Alexa solved :) .
ADVERTISEMENT