Page 1 of 1

%eventvalue% does not give value

Posted: 26 Jan 2019, 17:27
by Soundstorm
Hi guys

I'm trying to transfer a value through an HTTP event, but I can't seem to get it working. Went back to a clean install just to make sure I did nothing wrong, but still the same issue.

Just using the rule from the example, I get the following:

Code: Select all

 on remoteTimerControl do
   timerSet,1,%eventvalue%
 endon 

Code: Select all

http://192.168.1.82/control?cmd=event,remoteTimerControl=5

Code: Select all

705880 : EVENT: remoteTimerControl=5
705883 : ACT : timerSet,1,%eventvalue%
706337 : EVENT: Rules#Timer=1
Why isn't the 5 transferred to the Timer?

Im running build 120

Code: Select all

Build:	120
Core Version:	2_3_0
Hardware is a Wemos D1 Mini

How can I get this working?
Thanks!

Re: %eventvalue% does not give value

Posted: 26 Jan 2019, 17:51
by grovkillen
I'm not sure that the event value is available in that old version.

Re: %eventvalue% does not give value

Posted: 26 Jan 2019, 17:54
by Soundstorm
I don't mind using a newer version if that is the issue, but I can't seem to find a version that works.

Re: %eventvalue% does not give value

Posted: 26 Jan 2019, 17:56
by grovkillen

Re: %eventvalue% does not give value

Posted: 26 Jan 2019, 18:13
by Soundstorm
Yes, tried a couple of them (did a full erase in between). Don't start as AP, so I can't configure them.
LED stays on most of the time.

Re: %eventvalue% does not give value

Posted: 26 Jan 2019, 19:50
by grovkillen
What type of unit are you flashing?

Re: %eventvalue% does not give value

Posted: 27 Jan 2019, 09:45
by Soundstorm
Got it working with mega-20190116 and the espeasyflasher instead of the espresif one.
%eventvalue% works now!

Thanks for pointing out it was a version related issue! Just a bit strange this is not mentioned in the documentation, as Build 120 is the latest stable version according to it.

Cheers

Re: %eventvalue% does not give value

Posted: 27 Jan 2019, 11:48
by grovkillen
Soundstorm wrote: 27 Jan 2019, 09:45 Got it working with mega-20190116 and the espeasyflasher instead of the espresif one.
%eventvalue% works now!

Thanks for pointing out it was a version related issue! Just a bit strange this is not mentioned in the documentation, as Build 120 is the latest stable version according to it.

Cheers
I know, it's the current/official stable version. But we are releasing the brand new version soon. But we're doing a lot of development in the background that we want to have in place for the release. I'm the one responsible for the documentation but haven't had time for a couple of weeks (I'm doing consulting for an income until this brings us a steady income)

Re: %eventvalue% does not give value

Posted: 27 Jan 2019, 13:15
by Soundstorm
No problem. Just a bit confusing when you just start out with espeasy, and the first thing you try doesn't work.

Thanks a lot. Keep up to good work!