Rules delay

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
paveleremin
Normal user
Posts: 12
Joined: 29 Dec 2016, 10:19

Rules delay

#1 Post by paveleremin » 06 Jan 2017, 13:26

Hello every one!

I got Sonoff Switch https://www.itead.cc/sonoff-wifi-wireless-switch.html and uploaded EspEasy firmware to it.
Also I added logic to the Rules to make button on device available to switch the relay.
Here it is:

Code: Select all

on relay#switch do
  if [relay#switch]=1
    gpio,13,0
  else
    gpio,13,1
  endif
endon

on button#switch=0 do
  if [relay#switch]=0
    gpio,12,1
  else
    gpio,12,0
  endif
endon
This functionality works fine, I mean toggle relay with button via Rules.
BUT... it has some delay between pressing button!
I mean, it's not possible to press button, for example, 2 times in 1 second.

Maybe it's possible to add to settings some Device that will connect button and relay directly?
Or I must edit some setting?

martiniman
Normal user
Posts: 13
Joined: 10 Jan 2017, 11:07

Re: Rules delay

#2 Post by martiniman » 10 Jan 2017, 11:09

Go to Tools>Advanced>Message Delay and set time you want.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest