ESP-Esay rules syntax ?

Moderator: leecollings

Post Reply
pascalspits
Posts: 88
Joined: Tuesday 24 February 2015 16:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Belgium
Contact:

ESP-Esay rules syntax ?

Post 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 ...
RasPi2 - Aeotec Z-Stick S2 - Fibaro multisensors - Fibaro RGBW dimmers - ETH08 relais boards
User avatar
jvdz
Posts: 2335
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: ESP-Esay rules syntax ?

Post 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
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
pascalspits
Posts: 88
Joined: Tuesday 24 February 2015 16:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Belgium
Contact:

Re: ESP-Esay rules syntax ?

Post 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 ...
RasPi2 - Aeotec Z-Stick S2 - Fibaro multisensors - Fibaro RGBW dimmers - ETH08 relais boards
User avatar
jvdz
Posts: 2335
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: ESP-Esay rules syntax ?

Post 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
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
pascalspits
Posts: 88
Joined: Tuesday 24 February 2015 16:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Belgium
Contact:

Re: ESP-Esay rules syntax ?

Post 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 !
RasPi2 - Aeotec Z-Stick S2 - Fibaro multisensors - Fibaro RGBW dimmers - ETH08 relais boards
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest