Page 1 of 1

ESP-Esay rules syntax ?

Posted: Tuesday 26 February 2019 9:27
by pascalspits
I try to use the rules in ESP-Easy to control devices (dimmers) in Domoticz

when I let an ESP-Easy rule control the LED directly :
SendToHTTP 192.168.20.12,80,/led/1/100
works just fine

When I manually (in Chrome) control the Domoticz device with :
http://192.168.20.2:8080/json.htm?type= ... l&level=10
it also works just fine

but when I put the command in the ESP-Easy rule (with its proper syntax, from the tutorial https://www.letscontrolit.com/wiki/inde ... rial_Rules)
SendToHTTP 192.168.20.2,8080,/json.htm?type=command&param=switchlight&idx=895&switchcmd=Set%20Level&level=10
it does nothing

am I mistaking the syntax ?
very frustrating ...

Re: ESP-Esay rules syntax ?

Posted: Tuesday 26 February 2019 12:00
by jvdz
Does your domoticz use userid/password to access the webserver?
What does the LOG show in EASPEASY when the HTTP request is done?

Jos

Re: ESP-Esay rules syntax ?

Posted: Tuesday 26 February 2019 12:05
by pascalspits
jvdz wrote: Tuesday 26 February 2019 12:00 Does your domoticz use userid/password to access the webserver?
What does the LOG show in EASPEASY when the HTTP request is done?

Jos
that could be it !
where do I put username/password ?

the log says "Timeout while reading input data!", possible because of the password ...

but why doesn't it complain about user/pasw when I use the direct URL in Chrome ?
that's why I hadn't thought about that ...

Re: ESP-Esay rules syntax ?

Posted: Tuesday 26 February 2019 13:09
by jvdz
pascalspits wrote: Tuesday 26 February 2019 12:05 that could be it !
where do I put username/password ?
I have simply added those ip addresses in the Local Network box so they don't require a userid/Password.
You could try adding it in front of the ip address:

Code: Select all

SendToHTTP userd:[email protected],80,/led/1/100

.. but I am not sure that this will work.

Jos

Re: ESP-Esay rules syntax ?

Posted: Tuesday 26 February 2019 14:09
by pascalspits
I have simply added those ip addresses in the Local Network box so they don't require a userid/Password.
this worked, thanks !