ESP Easy rules : issue with variables
Posted: 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
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