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
Rules Problem
Moderators: grovkillen, Stuntteam, TD-er
Who is online
Users browsing this forum: Anthropic Claude Bot [bot], Google [Bot] and 13 guests