Two %eventvalue%
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 531
- Joined: 07 Jun 2018, 06:47
- Location: Gdynia/Poland
Two %eventvalue%
I want to send two values from Domoticz script to nodeMCU in one http request. In rule, I assign user variable to %eventvalue%. My question is because if I sent such values in two separate requests (one by one, without 2-3 sec delay between), both user variables value are assigned to the first %eventvalue% received. It is important, because delay in sending is not always equal delay in receiving. So even delay in sending in some cases couse receiving in the same time (WiFi occasional problems, poor WiFi coverage etc). Is it possible to use something like (in the meaning of "philosophy") %eventvalue_one% and %eventvalue_two% or so? Or any workaround?
Re: Two %eventvalue%
Here's what I propose.Or any workaround?
1. Send the two values to ESPEasy's dummy vars.
2. If mission critical, ESPEasy rules could "echo" back a message to the sender to acknowledge when each value was received.
3. Send a event command that runs a rule that acts on the new values.
- Thomas
-
- Normal user
- Posts: 531
- Joined: 07 Jun 2018, 06:47
- Location: Gdynia/Poland
Re: Two %eventvalue%
I will do so.
-
- Normal user
- Posts: 531
- Joined: 07 Jun 2018, 06:47
- Location: Gdynia/Poland
Re: Two %eventvalue%
Build 20190827 normal, core 2.5.2. Two questions
First. I set dummy sensor as temp/hum date type and click on Submit. But it returns to default data type "Single". So I try with type "dunle". But the result is the same. That means after clicking "Submit" it still returns to data type "Single". Is it issue?
Of course as workaround I can use two dummy devices.
Second. What is a proper syntax of HTTP request for sending data from server to easyESP? Docu contains only info about using dummy sensor in easyESP rule. That is:
First. I set dummy sensor as temp/hum date type and click on Submit. But it returns to default data type "Single". So I try with type "dunle". But the result is the same. That means after clicking "Submit" it still returns to data type "Single". Is it issue?
Of course as workaround I can use two dummy devices.
Second. What is a proper syntax of HTTP request for sending data from server to easyESP? Docu contains only info about using dummy sensor in easyESP rule. That is:
But how to pass parameters in HTTP reqest from server to nodeMCU?TaskValueSet <task nr>,<taskvalue nr>,<value|formula>
Re: Two %eventvalue%
Q1: Can't help.
Q2:
http://<espeasyip>/control?cmd=TaskValueSet,<task nr>,<taskvalue nr>,<value>
- Thomas
Q2:
It uses ESPEasy's HTTP command format. Like this:What is a proper syntax of HTTP request for sending data from server to easyESP?
http://<espeasyip>/control?cmd=TaskValueSet,<task nr>,<taskvalue nr>,<value>
HTTP Protocol is shown here: https://www.letscontrolit.com/wiki/inde ... _ReferenceDocu contains only info about using dummy sensor in easyESP rule.
- Thomas
-
- Normal user
- Posts: 531
- Joined: 07 Jun 2018, 06:47
- Location: Gdynia/Poland
Re: Two %eventvalue%
THX. Sometimes is extremely difficult to find the simplest thing.. Shame..HTTP Protocol is shown here: https://www.letscontrolit.com/wiki/inde ... _Reference
But the first thing I will rapport as a issue.
Who is online
Users browsing this forum: No registered users and 125 guests