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
ESP Easy rules : issue with variables
Moderators: grovkillen, Stuntteam, TD-er
Re: ESP Easy rules : issue with variables
Variables were not yet supported in that version.I have recently started using ESP EASY version 2_3_0 Build 120 on a SONOFF BASIC.
Please try the latest "mega" builds.
Re: ESP Easy rules : issue with variables
FWIW,
Seems to be a bit of a secret but, the up to date downloads are found at:
https://github.com/letscontrolit/ESPEasy/releases
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
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.
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.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: ESP Easy rules : issue with variables
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
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Who is online
Users browsing this forum: Bing [Bot] and 95 guests