ESP Easy rules : issue with variables

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
oparker59
Normal user
Posts: 2
Joined: 30 Nov 2019, 10:47

ESP Easy rules : issue with variables

#1 Post by oparker59 » 30 Nov 2019, 11:29

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

TD-er
Core team member
Posts: 1950
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ESP Easy rules : issue with variables

#2 Post by TD-er » 30 Nov 2019, 12:25

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.

User avatar
uxhamby
Normal user
Posts: 44
Joined: 29 Dec 2016, 18:13
Location: Toronto Canada

Re: ESP Easy rules : issue with variables

#3 Post by uxhamby » 30 Nov 2019, 19:35

FWIW,

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

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

oparker59
Normal user
Posts: 2
Joined: 30 Nov 2019, 10:47

Re: ESP Easy rules : issue with variables

#4 Post by oparker59 » 02 Dec 2019, 13:40

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.

User avatar
grovkillen
Core team member
Posts: 3334
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESP Easy rules : issue with variables

#5 Post by grovkillen » 02 Dec 2019, 17:15

And we will release a new GUI within a foreseen future: https://www.patreon.com/posts/theme-import-as-31559506
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests