ESPEasy R120 rules: %eventvalue%

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
bfabien
New user
Posts: 3
Joined: 24 Aug 2017, 09:42

ESPEasy R120 rules: %eventvalue%

#1 Post by bfabien » 08 Sep 2017, 14:52

Dear all,

I've created a home made dimmer for my LED slabs using a ESP 8266 running ESPEasy, which triggers a MOSFET, that lets the 12V reach the LEDS.
From my controller (Jeedom), I just have to send a PWM,0,1023 to fully light the slab, PWM,0,600 to light it mildly, and PWM,0,0 for turn it off.

I would like to send a higher level message such as event on=1023 (which doesn't presume on the GPIO where the MOSFET is wired), as we can see in https://www.letscontrolit.com/wiki/inde ... _Variables, and then have a rule such as
on on do
pwm,0,%eventvalue%
endon

but in the logs, when I send event on=1023, I can see that %eventvalue% is not replaced with the actualy value of the event.

Is %eventvalue% working in R120, or am I doing something else wrong?

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: ESPEasy R120 rules: %eventvalue%

#2 Post by toffel969 » 10 Sep 2017, 21:01

bfabien wrote: 08 Sep 2017, 14:52 Dear all,

I've created a home made dimmer for my LED slabs using a ESP 8266 running ESPEasy, which triggers a MOSFET, that lets the 12V reach the LEDS.
From my controller (Jeedom), I just have to send a PWM,0,1023 to fully light the slab, PWM,0,600 to light it mildly, and PWM,0,0 for turn it off.

I would like to send a higher level message such as event on=1023 (which doesn't presume on the GPIO where the MOSFET is wired), as we can see in https://www.letscontrolit.com/wiki/inde ... _Variables, and then have a rule such as
on on do
pwm,0,%eventvalue%
endon

but in the logs, when I send event on=1023, I can see that %eventvalue% is not replaced with the actualy value of the event.

Is %eventvalue% working in R120, or am I doing something e
lse wrong?
Does the event get triggered at all?
Try naming the event something different than "on".
Also the command would be event,on=1023
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: ESPEasy R120 rules: %eventvalue%

#3 Post by toffel969 » 10 Sep 2017, 21:05

Also try : event,on=1023
On the local console in tools tab
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests