Page 1 of 1

ESP Easy rules : issue with variables

Posted: 30 Nov 2019, 11:29
by oparker59
Dear all,

I have recently started using ESP EASY version 2_3_0 Build 120 on a SONOFF BASIC.
It's working well, I have been playing with rules, timers and events ==> It's great.

Only one issue : variables are not working for me, values are always empty.

Example #1: If I put this code in rules

On setondelay do
TaskValueSet 3,4,0
Let,1,10
TaskValueSet 3,4,%V1%
endon

Then I call the event from a LINUX server :
curl "http://SONOFF10/control?cmd=event,setondelay"

Then I look in the LOG and I get

Log
2600210 : EVENT: setondelay
2600223 : ACT : TaskValueSet 3,4,0
2600228 : ACT : Let,1,10
2600230 : ACT : TaskValueSet 3,4,%V1%

When I check value on my Dummy Device, value is 0, like if %V1% was not interpreted.

I have also tryied : [VAR#1] instead of %V1% ... but no change.

Example #2 : Same issue with %eventvalue% when trying to push parameter with event.

On setondelay do
TaskValueSet 3,4,0
TaskValueSet 3,4,%eventvalue%
endon

Then I call the event from a LINUX server :
curl "http://SONOFF10/control?cmd=event,setondelay=12"

Then I look in the LOG and I get

Log
2991639 : EVENT: setondelay=12
2991652 : ACT : TaskValueSet 3,4,0
2991656 : ACT : TaskValueSet 3,4,%eventvalue%
Powered by www.esp8266.nu

When I check value on my Dummy Device, value is still 0, like if %eventvalue% was not interpreted.

If I do a "TaskValueSet 3,4,20", It works and I find value 20 in the field #4 of my dummy device #3.

Am I doing something wrong ? Am I using wrong ESP EASY version ?

Thanks for your help,
Regards

Re: ESP Easy rules : issue with variables

Posted: 30 Nov 2019, 12:25
by TD-er
I have recently started using ESP EASY version 2_3_0 Build 120 on a SONOFF BASIC.
Variables were not yet supported in that version.
Please try the latest "mega" builds.

Re: ESP Easy rules : issue with variables

Posted: 30 Nov 2019, 19:35
by uxhamby
FWIW,

Seems to be a bit of a secret but, the up to date downloads are found at:

https://github.com/letscontrolit/ESPEasy/releases

Re: ESP Easy rules : issue with variables

Posted: 02 Dec 2019, 13:40
by oparker59
Thanks for your feedback, you're right ESPEASY release installed was really old (2016).
After new flash with 2019 ESP EASY MEGA ... all my problems are cleared.

This is cool !

I can go back playing with ESP EASY / Domoticz & SONOFF.

Regards,
Olivier.

Re: ESP Easy rules : issue with variables

Posted: 02 Dec 2019, 17:15
by grovkillen
And we will release a new GUI within a foreseen future: https://www.patreon.com/posts/theme-import-as-31559506