Page 1 of 1

%eventvalue%

Posted: 11 Dec 2020, 19:16
by uxhamby
OK, I am playing with an esp01 running espeasy v R120.

I read on, what I believe to be, the version appropriate rules tutorial page about %eventvalue%.

I have set up a simple set of rules as follows:
on remoteTimerControl do
gpio,0,0
gpio,2,1
timerSet,1,%eventvalue%
endon

on Rules#Timer=1 do
gpio,0,1
gpio,2,0
endon
gpio 0 and 2 have leds on them

As per the rules tutorial page I am sending

esp17.lan/control?cmd=event,remoteTimerControl=5

via http.

I see the leds change as I would expect but the timing seems off, so I retry wiht other values

esp17.lan/control?cmd=event,remoteTimerControl=50
esp17.lan/control?cmd=event,remoteTimerControl=1000

timing seems not to change proportional to eventvalue and is highly variable regardless of the eventvalue value sent.

Where am I going wrong?

Thanks,

Brian H.
Uxbridge Ont

Re: %eventvalue%

Posted: 11 Dec 2020, 19:40
by mrwee
Please also read that R120 is waay to old. You should retest with a more recent version. Much good have happened since R120 😀

Re: %eventvalue%

Posted: 11 Dec 2020, 19:56
by TD-er
See this for more recent versions:
https://github.com/letscontrolit/ESPEasy/releases

And where did you find a link to R120?

Re: %eventvalue%

Posted: 11 Dec 2020, 20:11
by uxhamby
This is only a 1M esp01 version of the hardware. Do up to date revisions of espeasy fit on such a device?

Re: %eventvalue%

Posted: 11 Dec 2020, 20:12
by TD-er
They do fit, but you may not be able to perform an OTA update.

Re: %eventvalue%

Posted: 12 Dec 2020, 20:08
by uxhamby
Yup, that's fixed it, thanks.

Re: %eventvalue%

Posted: 12 Dec 2020, 23:08
by Wiki
[OT On]
Voyager?
[/OT Off]

Re: %eventvalue%

Posted: 12 Dec 2020, 23:22
by TD-er
Wiki wrote: ↑12 Dec 2020, 23:08 [OT On]
Voyager?
[/OT Off]
Delta quadrant?
I don't get it...

Re: %eventvalue%

Posted: 15 Dec 2020, 21:05
by Wiki
TD-er wrote: ↑12 Dec 2020, 23:22
Wiki wrote: ↑12 Dec 2020, 23:08 [OT On]
Voyager?
[/OT Off]
Delta quadrant?
I don't get it...
Totally Off Topic, no relation to ESPEasy or the topic itself. Maybe uxhamby may understand.

Re: %eventvalue%

Posted: 02 Jan 2021, 21:27
by uxhamby
OT on
'84 Venture
/OT off