# Help with ramping dimmers? Im racking my brain!

**URL:** <https://discourse.nodered.org/t/help-with-ramping-dimmers-im-racking-my-brain/12694>\
**Category:** General\
**Created:** [28 June 2019 14:01 UTC](https://discourse.nodered.org/t/help-with-ramping-dimmers-im-racking-my-brain/12694 "2019-06-28T14:01:39Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![eyeiaye](https://avatars.discourse-cdn.com/v4/letter/e/8c91f0/32.png) [@eyeiaye](https://discourse.nodered.org/u/eyeiaye)\
**Post date:** [28 June 2019 14:01 UTC](https://discourse.nodered.org/t/help-with-ramping-dimmers-im-racking-my-brain/12694/1 "2019-06-28T14:01:39Z")

</div>

Hello,

Hey all thanks so much for everything thus far, Ive enjoyed reading! Here is my first question

I feel like I may have bitten of more than I can chew - I'm new to [Hass.io](http://Hass.io) AND node-RED.

I need some help... I want to create a transitional effect for one of my Hue light bulbs that kicks in at a certain time of the day.

To do this, so far I have two nodes in my sequence..  
an 'inject' node set to repeat at a specific time of the day (say daily at 8:00)  
this inject node is connected to the second node that makes the light turn on. When the light is on it sets the brightness in the data section {"brightness":25}.

However, I want to use transition times and found this JSON snippet online that I think will do exactly what I want, but I'm so new to this, I don't know where to place it in node RED or what to use  
The idea have the lights slowly transition to On 0 percent to say 50 percent.

{

"payload": {

"duration": 10000

}

The nice thing here is "duration": 10000... but when I enter this it does not ramp up.

Any help would be GREATLY appreciated  
Below is what im doing now that works.

[[Album] Imgur ![](https://i.imgur.com/gYvwtUj.jpg?fb "Imgur") ](https://imgur.com/a/5VPm4UZ)

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [28 June 2019 14:07 UTC](https://discourse.nodered.org/t/help-with-ramping-dimmers-im-racking-my-brain/12694/2 "2019-06-28T14:07:47Z")

</div>

So i assume there would be actually two things to send them

1. Starting and ending % i;e. start at 0% and transition to 50% brightness
2. Timeframe to transition in

Presumably giving those two values the light would gradually ramp up to the correct level - can you confirm this and what is the format of the command - or is it two seperate commands ?)

(You may (longer term) be better served looking at one of the more advanced timers to perform the start actions etc - Peter Scargills BigTimer is a good one as is Neil Cherry's MyTimeout

Craig

Craig

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [28 June 2019 14:11 UTC](https://discourse.nodered.org/t/help-with-ramping-dimmers-im-racking-my-brain/12694/3 "2019-06-28T14:11:37Z")

</div>

Reading the decription there int he mode the transition time is in seconds - so 10,000 seconds would mean you are waiting a long time to see anything happen !

Craig

---

<div class="post-metadata">

**Author:** ![eyeiaye](https://avatars.discourse-cdn.com/v4/letter/e/8c91f0/32.png) [@eyeiaye](https://discourse.nodered.org/u/eyeiaye)\
**Post date:** [28 June 2019 14:36 UTC](https://discourse.nodered.org/t/help-with-ramping-dimmers-im-racking-my-brain/12694/4 "2019-06-28T14:36:30Z")

</div>

Ah great!

How would I write this in node red?

---

<div class="post-metadata">

**Author:** ![eyeiaye](https://avatars.discourse-cdn.com/v4/letter/e/8c91f0/32.png) [@eyeiaye](https://discourse.nodered.org/u/eyeiaye)\
**Post date:** [28 June 2019 15:03 UTC](https://discourse.nodered.org/t/help-with-ramping-dimmers-im-racking-my-brain/12694/5 "2019-06-28T15:03:33Z")

</div>

> [@craigcurtin](#):
>
> So i assume there would be actually two things to send them
> 
> 1. Starting and ending % i;e. start at 0% and transition to 50% brightness
> 2. Timeframe to transition in

So sorry for being a noob, but how would i do this?

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [28 June 2019 15:49 UTC](https://discourse.nodered.org/t/help-with-ramping-dimmers-im-racking-my-brain/12694/6 "2019-06-28T15:49:09Z")

</div>

duration != transition

You need to use `{"brightness":25, "transition":10}` (for 10 seconds)

---

<div class="post-metadata">

**Author:** ![eyeiaye](https://avatars.discourse-cdn.com/v4/letter/e/8c91f0/32.png) [@eyeiaye](https://discourse.nodered.org/u/eyeiaye)\
**Post date:** [28 June 2019 16:32 UTC](https://discourse.nodered.org/t/help-with-ramping-dimmers-im-racking-my-brain/12694/7 "2019-06-28T16:32:00Z")

</div>

Hmmmm this is what I am doing. It seems to just turn the dimmer to MAX at 255 with no timer. Please see screenshot. It should ramp over 10 seconds correct?

[[Album] Imgur ![](https://i.imgur.com/EdsASMB.jpg?fb "Imgur") ](https://imgur.com/a/LWRyi5a)

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [28 June 2019 19:50 UTC](https://discourse.nodered.org/t/help-with-ramping-dimmers-im-racking-my-brain/12694/8 "2019-06-28T19:50:00Z")

</div>

Can you paste your flow in here - and tell us what node you are using so we can see what is going on with it - screen shots are too difficult to follow

Craig

---

<div class="post-metadata">

**Author:** ![eyeiaye](https://avatars.discourse-cdn.com/v4/letter/e/8c91f0/32.png) [@eyeiaye](https://discourse.nodered.org/u/eyeiaye)\
**Post date:** [28 June 2019 20:28 UTC](https://discourse.nodered.org/t/help-with-ramping-dimmers-im-racking-my-brain/12694/9 "2019-06-28T20:28:15Z")

</div>

Hey Here is what I am doing..... with help from others.

[https://paste.ubuntu.com/p/xrC4sJPSR2/](https://paste.ubuntu.com/p/xrC4sJPSR2/)

You'll have to fix the service node and connect it. Problem is that Lutron does not allow transitions from what I have read. From this I only get on and off..

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [29 June 2019 07:07 UTC](https://discourse.nodered.org/t/help-with-ramping-dimmers-im-racking-my-brain/12694/10 "2019-06-29T07:07:19Z")

</div>

How many devices do you have in hass ? Perhaps an idea to drop hass altogether and just use node-red to handle this stuff.
