Code: Select all
on System#Boot do
gpio,2,1 // Prevent relay turning on during boot
endon
on valve#Switch=0 do
timerSet,1,[watertime#duration] // duration
endon
on Rules#Timer=1 do
gpio,2,1 // Turn off relay
endon
Code: Select all
on System#Boot do
gpio,2,1 // Prevent relay turning on during boot
endon
on valve#Switch=0 do
timerSet,1,[watertime#duration] // duration
endon
on Rules#Timer=1 do
gpio,2,1 // Turn off relay
endon