i tried to send a http command to a Smartplug to switch it on and off with an app.
http://192.168.178.33/control?cmd=GPIO,14,0 works to switch the relais,
but i also want to swicht a status led. can i send 2 commands in one request?
i already have a rule that switches both relais and led with a physical button. can i trigger it per http?
Code: Select all
on Button#state do
if [Relais#state]=0
gpio,14,1
gpio,13,0
else
gpio,14,0
gpio,13,1
endif
endon
but it doesnt work. the esp receives the message but doesnt react.
Code: Select all
111809: HTTP: event, Button=1
111861: EVENT: Button=1