# Light scenario fade? how?

**URL:** <https://community.homey.app/t/light-scenario-fade-how/45484>\
**Category:** Flows\
**Tags:** z-wave, zigbee\
**Created:** [March 30, 2021, 9:30am UTC](https://community.homey.app/t/light-scenario-fade-how/45484 "2021-03-30T09:30:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter\_Ede](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_ede/32/11605_2.png) [@Peter\_Ede](https://community.homey.app/u/Peter_Ede)\
**Post date:** [March 30, 2021, 9:30am UTC](https://community.homey.app/t/light-scenario-fade-how/45484/1 "2021-03-30T09:30:40Z")

</div>

hi i want to make a light scenario that fades between different colors.  
just like many original apps have for their light-strips or lights-bulbs.  
but as this feature does not exist in homey  
i need to make a flow for this … any tips?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [April 21, 2021, 2:52am UTC](https://community.homey.app/t/light-scenario-fade-how/45484/2 "2021-04-21T02:52:25Z")

</div>

> [@\[APP\]\[Pro\] \< group \> (3.2.4 - Stable)](https://community.homey.app/t/app-group-2-4-2-stable/3168/339):
>
> Is it possible to add changing a group of lights to a (random) color over a period of time…?

---

<div class="post-metadata">

**Author:** ![Peter\_Ede](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_ede/32/11605_2.png) [@Peter\_Ede](https://community.homey.app/u/Peter_Ede)\
**Post date:** [April 21, 2021, 6:00am UTC](https://community.homey.app/t/light-scenario-fade-how/45484/3 "2021-04-21T06:00:12Z")

</div>

yes what I also wonder …  
there is to set random color but you solve it with time?  
for example, to change every minute until you choose to switch off.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [April 21, 2021, 3:56pm UTC](https://community.homey.app/t/light-scenario-fade-how/45484/4 "2021-04-21T15:56:41Z")

</div>

That is possible with the app Chronograph, transitions. Here´s an example I made. With the mathjs functions round() & random() combined, you can trigger a random number, within a range, to set a random color at every transition step: `{{round(random(0.01,0.99),2)}}`  
This example returns a random number between 0.01 and 0.99 with max 2 digits after the `.`

Too fast doesn’t work very well, f.i. every second an other color. You have to fiddle a bit with the best number of transitions in a timeframe.  
But once every 15 secs should work fine I guess, so 1 minute should be fine.

The Spline app is an other option to consider.

Example of my ColorChanging light:

Logs:  
 ![ColorChangingLog](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/2/02460c30319442e7a3c12c53570a4688bcacbb1a.png)
