Rules HTTP call

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Dick60
Normal user
Posts: 57
Joined: 11 Feb 2018, 17:35
Location: The Netherlands

Rules HTTP call

#1 Post by Dick60 » 13 Jan 2020, 21:14

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

User avatar
grovkillen
Core team member
Posts: 3613
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Rules HTTP call

#2 Post by grovkillen » 13 Jan 2020, 22:15

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 :idea: :idea: :idea:

Dick60
Normal user
Posts: 57
Joined: 11 Feb 2018, 17:35
Location: The Netherlands

Re: Rules HTTP call

#3 Post by Dick60 » 13 Jan 2020, 22:24

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?

User avatar
grovkillen
Core team member
Posts: 3613
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Rules HTTP call

#4 Post by grovkillen » 13 Jan 2020, 22:36

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 :idea: :idea: :idea:

User avatar
ThomasB
Normal user
Posts: 716
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Rules HTTP call

#5 Post by ThomasB » 14 Jan 2020, 18:26

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

Dick60
Normal user
Posts: 57
Joined: 11 Feb 2018, 17:35
Location: The Netherlands

Re: Rules HTTP call

#6 Post by Dick60 » 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:

User avatar
grovkillen
Core team member
Posts: 3613
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Rules HTTP call

#7 Post by grovkillen » 14 Jan 2020, 19:49

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
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 :idea: :idea: :idea:

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests