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¶m=switchlight&idx=398&switchcmd=On
Endon
Rules HTTP call
Moderators: grovkillen, Stuntteam, TD-er
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Rules HTTP call
You can either check/uncheck the tolerant rules option under "advanced" or enclose the entire thing with '
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: Rules HTTP call
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?
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Rules HTTP call
The reason is that it will make the rules engine parser more reliable.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: Rules HTTP call
Some useful info is found here:Can you explain why to add ' at the begin and end? what is the reason?
https://github.com/letscontrolit/ESPEasy/issues/2724
- Thomas
Re: Rules HTTP call
Thanks for all the help and it worked for me. I upgraded to version 20191208, activated the tolerant option and finalized this project.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Rules HTTP call
Great! Thanks for the feedback
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 2 guests