# API SonOff zf200118.1812

Home...
<% if _GET.LED == "on" then gpio.write(zLED, gpio.LOW) gpio.mode(zLED, gpio.OUTPUT) zout("LED=".._GET.LED.."
") zout(' Off
') end if _GET.LED == "off" then gpio.write(zLED, gpio.HIGH) gpio.mode(zLED, gpio.OUTPUT) zout("LED=".._GET.LED.."
") zout(' On') end %> <% if _GET.RELAY == "on" then gpio.mode(zRELAY, gpio.OUTPUT) gpio.write(zRELAY, gpio.HIGH) zout("RELAY=".._GET.RELAY.."
") zout(' Off
') end if _GET.RELAY == "off" then gpio.mode(zRELAY, gpio.OUTPUT) gpio.write(zRELAY, gpio.LOW) zout("RELAY=".._GET.RELAY.."
") zout(' On') end %>