Fade Level always starting at 100%


#1

As I am starting to get the hang of this, I have one more question.

I have moved all my schedules from my Hue Bridge to WebCore and for the most part, it is working as expected.

I like to have the lights fade out at a specific point in time.

No problem, I can use a every day at X to set them to get darker before bed.

My only problem is, when I execute the piston, the lights start back at 100% then fade as designed.

So at midnight, my lights turn on and then fade out.

I have disabled the fade for now and have moved to just turn off but is there a way to have the fade start at the current level and work from there?


#2

Store current level, then use it that as beginning value of the fade.

image


#3

I will give that a try, thank you

I guess if I have 10 lights, I will have do it 10 times, etc

Thanks again!


#4

First thought would be to store the lights in a device variable and then do a for-each loop, unless you know they are all the same levels when you begin the fade?

Doing a for-each will probably have a noticeable delay when they all dim… or maybe not if it’s spaced out far enough.


#5

I could assume they are all the same

I suppose I could start them at 50% and work my way down unless they are off then I would skip.

I think the latter is the key thing I need to address