Author Topic: How not to repeat same event/commands within certain amount of time  (Read 1108 times)

0 Members and 1 Guest are viewing this topic.

Soda97

  • Contributor
  • ***
  • Posts: 69
  • Karma: 1
    • View Profile
Sorry, I don't know if this has been discussed before but here's the scenario.

I just figured out that I could send a command to disarm my alarm system.  So I'm gonna set up the Location from IFTTT and send me an email (or event) to trigger this command and maybe turn on light and some other stuff.  Say me and my wifey both set this up, how can I tell VC not to repeat the event or command twice ?  What is the best way to go about this? 

Haddood

  • $upporter
  • Hero Member
  • *****
  • Posts: 688
  • Karma: 22
    • View Profile
Re: How not to repeat same event/commands within certain amount of time
« Reply #1 on: January 30, 2015, 03:04:33 PM »
one way is using a variable and a timer ...
first event set the variable to disable ... timer will reset it to enable ... and your event will check the variable before performing action
(there was a thread about a timer with a kill function) ...

Experts will give an easier approach
When Voice command gets tough, use hand gestures