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¶m=switchlight&idx=895&switchcmd=Set%20Level&level=10
it does nothing
am I mistaking the syntax ?
very frustrating ...
ESP-Esay rules syntax ?
Moderator: leecollings
-
- Posts: 88
- Joined: Tuesday 24 February 2015 16:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Belgium
- Contact:
ESP-Esay rules syntax ?
RasPi2 - Aeotec Z-Stick S2 - Fibaro multisensors - Fibaro RGBW dimmers - ETH08 relais boards
- 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 ?
Does your domoticz use userid/password to access the webserver?
What does the LOG show in EASPEASY when the HTTP request is done?
Jos
What does the LOG show in EASPEASY when the HTTP request is done?
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 88
- Joined: Tuesday 24 February 2015 16:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Belgium
- Contact:
Re: ESP-Esay rules syntax ?
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
- 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 ?
I have simply added those ip addresses in the Local Network box so they don't require a userid/Password.pascalspits wrote: ↑Tuesday 26 February 2019 12:05 that could be it !
where do I put username/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
-
- Posts: 88
- Joined: Tuesday 24 February 2015 16:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Belgium
- Contact:
Re: ESP-Esay rules syntax ?
this worked, thanks !I have simply added those ip addresses in the Local Network box so they don't require a userid/Password.
RasPi2 - Aeotec Z-Stick S2 - Fibaro multisensors - Fibaro RGBW dimmers - ETH08 relais boards
Who is online
Users browsing this forum: No registered users and 1 guest