Ashley’s Light Fader 2.0✨: fade lights and/or color temperature with your choice of easing (curves), including ease-in, ease-out, and ease-in-out

Hello sanojjonas,

You have to define what light you want use with this script.
Click where it says entity (entiteit) and type light.the_light_you_want_to_use

how do i add that script to the automation?
i can only find how i turn on/off a script but not excecute a script.

(again i’m a noob)

In automation creation when you ‘Add Action’ just type in ‘ashley’, select it and then fill in the required information.

i feel very dumb, i tried this yesterday and it didn’t show up, but now it functions.

and the script functions perfectly

Dumb question(s)…
Does the script always start from 0 brightness?
Can it be used in reverse to dim lights? If so, how?
Thanks!
:smiley:

(Great script by the way - really helpful!)

It will ‘fade’ from wherever the lights currently are to the target value. I use this on my way to bed at night where my ceiling lights fade over a 30 second period while my bedside lamp fades up to 75%, works like a charm.

Thanks! That’s great to know. :smiley:

Hi Ashley,

thanks for the great script!
But as soon as I enable “End color temperature”, the script won’t run any more…

- action: script.ashley_s_light_fader
    data:
      lampBrightnessScale: zeroToOneHundred
      easingTypeInput: easeInOutSine
      endBrightnessPercent: 7
      endBrightnessEntityScale: zeroToOneHundred
      shouldStopIfTheLampIsTurnedOffDuringTheFade: true
      shouldResetTheStopEntityToOffAtStart: false
      shouldInvertTheValueOfTheStopEntity: false
      minimumStepDelayInMilliseconds: 100
      shouldTryToUseNativeLampTransitionsToo: false
      isDebugMode: false
      light: light.led_mr_t_leuchte
      transitionTime:
        hours: 0
        minutes: 0
        seconds: 30
      endColorTemperatureKelvin: 3850

I have another script in which I use RGB-Colors and that works…

Could you tell me what I’m doing wrong?

Kind regards,
Alex

Love this!! Exactly what I was looking for to slowly dim up in the morning and down at night a plant feature wall! I’m using it to control some DMX lights with through Artnet DMX integration. Worked perfectly first time. Simple, configurable, user friendly and it doesn’t put any undue stress on the CPU of Home Assistant. Thank you Ashley. :slight_smile:

I haven’t implemented the script yet, but I’m already impressed. First, by the effort and dedication that went into creating a script that, just by looking at the lines of code, is clearly not something overly simple. Second, by the customization options. And third, and perhaps most importantly, by the thoroughness of the explanation and documentation. Even the installation process is written out so clearly. I believe that even someone who just started using HA would be able to implement this script with ease!

Congratulations on the amazing work!

Lovely work,

I need to fade up to a particular color (RGBW) lights, but there is no way I can define an End color. and since the lights are starting from off, in some random color, there is no way to predict what color the fade will end up at.

TLDR, I really want a “End Color or color temp” feature.