Page 1 of 1

Rules HTTP call

Posted: 13 Jan 2020, 21:14
by Dick60
Read the WIKI and the forum but still not working I have switch on my ESP (Alarm_scherp#Alarm_status). If the status is "1" it must switch "on" a domoticz dummy switch. There is no need to turn it of OFF again.
If I run the SendRoHTTP in my browser the dummy switch turns on. Why isn't it working in the rules section?

On Alarm_scherp#Alarm_status=1 do
SendToHTTP 192.168.0.122,8080,/json.htm?type=command&param=switchlight&idx=398&switchcmd=On
Endon

Re: Rules HTTP call

Posted: 13 Jan 2020, 22:15
by grovkillen
You can either check/uncheck the tolerant rules option under "advanced" or enclose the entire thing with '

Re: Rules HTTP call

Posted: 13 Jan 2020, 22:24
by Dick60
I tried to activate the option in 'Advanced' but at the moment I use the version mega-20180720 and there is no tolerant option. I was not able to load the Latest version 20191208 on my WEMOS D1 but I had problems with my USB connection so I tried the mega-20180720. I can try to load the new 20191208 version. Can you explane why to add ' at the begin and end? what is the reason?

Re: Rules HTTP call

Posted: 13 Jan 2020, 22:36
by grovkillen
The reason is that it will make the rules engine parser more reliable.

Re: Rules HTTP call

Posted: 14 Jan 2020, 18:26
by ThomasB
Can you explain why to add ' at the begin and end? what is the reason?
Some useful info is found here:
https://github.com/letscontrolit/ESPEasy/issues/2724

- Thomas

Re: Rules HTTP call

Posted: 14 Jan 2020, 19:02
by Dick60
Thanks for all the help and it worked for me. I upgraded to version 20191208, activated the tolerant option and finalized this project.
:mrgreen:

Re: Rules HTTP call

Posted: 14 Jan 2020, 19:49
by grovkillen
Dick60 wrote: 14 Jan 2020, 19:02 Thanks for all the help and it worked for me. I upgraded to version 20191208, activated the tolerant option and finalized this project.
:mrgreen:
Great! Thanks for the feedback