Sonoff switch rules help

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
shenery
Normal user
Posts: 18
Joined: 06 May 2017, 10:27

Sonoff switch rules help

#1 Post by shenery » 26 Jun 2017, 20:58

I have my rules set up with a sonoff switch like this.
on lightSwitch#Switch do
if [lightState#Switch]=0
gpio,12,1
else
gpio,12,0
endif
endon

My problem is, is that the switch doesn't seem to be connected to the WiFi all the time so when I click the push button on the sonoff it takes a couple of seconds for the green led to come on before the switch actually works. Does anyone have a solution for this? I'd like the push button to switch the relay instantly instead of waiting on WiFi connectivity.

Kind regards
Steven

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests