# Node-red-contrib-enocean

**URL:** <https://discourse.nodered.org/t/node-red-contrib-enocean/37409>\
**Category:** General\
**Created:** [12 December 2020 16:56 UTC](https://discourse.nodered.org/t/node-red-contrib-enocean/37409 "2020-12-12T16:56:57Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![juntiedt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/juntiedt/32/58357_2.png) [@juntiedt](https://discourse.nodered.org/u/juntiedt)\
**Post date:** [16 December 2020 12:34 UTC](https://discourse.nodered.org/t/node-red-contrib-enocean/37409/5 "2020-12-16T12:34:26Z")

</div>

Hallo Johannes,

I need your help.  
I would like to move a slider as a funtion of the time I press a rocker button.  
Every 500 ms +10 to the input of a slider. (0-100)  
this means 5 sec = 100%. (should drive a dimmer).  
One rocker button up an the rocker other button down.  
How to program a delay in js?

regards Johannes

---

_[View the full topic](https://discourse.nodered.org/t/node-red-contrib-enocean/37409)._
