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?
ESPEasy R120 rules: %eventvalue%
Moderators: grovkillen, Stuntteam, TD-er
Re: ESPEasy R120 rules: %eventvalue%
Does the event get triggered at all?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?
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
Re: ESPEasy R120 rules: %eventvalue%
Also try : event,on=1023
On the local console in tools tab
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
Who is online
Users browsing this forum: No registered users and 20 guests