Rules Problem

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
leealder
New user
Posts: 1
Joined: 04 Apr 2018, 01:23

Rules Problem

#1 Post by leealder » 04 Apr 2018, 01:55

using Sonoff Basic
I can turn the led off from another station but not on

Code----
on lightSwitch#Switch do
if [lightState#Switch]=0
sendTo 1,gpio,12,1
gpio,12,1
gpio,13,0
sendTo 1.gpio,13,0
else
sendTo 1,gpio,12,0
gpio,12,0
gpio,13,1
sendTo 1,gpio,13,1
endif
endon

ESP Easy Mega: Ugly_Box_Easy
MainConfigControllersHardwareDevicesRulesNotificationsTools
Task Enabled Device Name Port Ctr (IDX) GPIO Values
Edit 1 ✔ Switch input - Switch lightSwitch ❶ (0) ⚠ GPIO-0 Switch: 1
Edit 2 ✔ Switch input - Switch lightState ❶ (0) ⚠ GPIO-12 Switch: 0

Ok let the noob have it!!

Standing ready!!
oh yea thanks in advance

Who is online

Users browsing this forum: Anthropic Claude Bot [bot], Google [Bot] and 13 guests