Hereafter my devices config:

These are my rules:
on lightSwitch#Switch do
if [lightState#Switch]=0
gpio,12,0
else
gpio,12,1
endif
endon
Moderators: grovkillen, Stuntteam, TD-er
Code: Select all
on Button#State do
if [Button#State]=0
Publish %sysname%/status,Manual turn off relay
gpio,12,0
gpio,13,1
else
Publish %sysname%/status,Manual turn on relay
gpio,12,1
gpio,13,0
endif
endon
Users browsing this forum: Amazon [Bot] and 17 guests