# Save current LED color into variable?

**URL:** <https://community.homey.app/t/save-current-led-color-into-variable/68401>\
**Category:** Questions & Help\
**Created:** [September 4, 2022, 1:35pm UTC](https://community.homey.app/t/save-current-led-color-into-variable/68401 "2022-09-04T13:35:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pat\_M](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pat_m/32/56295_2.png) [@Pat\_M](https://community.homey.app/u/Pat_M)\
**Post date:** [September 4, 2022, 1:35pm UTC](https://community.homey.app/t/save-current-led-color-into-variable/68401/1 "2022-09-04T13:35:18Z")

</div>

Hi,

Is there any way to save the current LED-ring color to a Homey variable?  
Is it a known issue that flows setting the LED-ring color for say more than 60+ minutes fails?

Thanks!

---

<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:** [September 4, 2022, 1:57pm UTC](https://community.homey.app/t/save-current-led-color-into-variable/68401/2 "2022-09-04T13:57:46Z")

</div>

Homey cloud or - Pro?  
And share your flow. My crystal ball got nicked yesterday…

---

<div class="post-metadata">

**Author:** ![Pat\_M](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pat_m/32/56295_2.png) [@Pat\_M](https://community.homey.app/u/Pat_M)\
**Post date:** [September 5, 2022, 11:23am UTC](https://community.homey.app/t/save-current-led-color-into-variable/68401/3 "2022-09-05T11:23:26Z")

</div>

I’m on Homey Pro. I don’t have a flow yet.  
Background: I will set the LED ring color depending on a Stock Index. I would like to save that color into a variable to be used in another flow.

---

<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:** [September 5, 2022, 11:54am UTC](https://community.homey.app/t/save-current-led-color-into-variable/68401/4 "2022-09-05T11:54:49Z")

</div>

Isn’t this easier:  
From the flow that sets the color, you can start an other flow; the flow which you want to run if that color is set 😉

But, you can always install these two apps and see if they create tags for colors, or just ask the developer, @martijnpoppen 😬

---

<div class="post-metadata">

**Author:** ![martijnpoppen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijnpoppen/32/84849_2.png) [@martijnpoppen](https://community.homey.app/u/martijnpoppen)\
**Post date:** [September 5, 2022, 12:14pm UTC](https://community.homey.app/t/save-current-led-color-into-variable/68401/5 "2022-09-05T12:14:02Z")

</div>

Color variables are not supported.  
But you could set predefined flows with ledring colelction or led it be and re-use those

---

<div class="post-metadata">

**Author:** ![Pat\_M](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pat_m/32/56295_2.png) [@Pat\_M](https://community.homey.app/u/Pat_M)\
**Post date:** [September 6, 2022, 5:57am UTC](https://community.homey.app/t/save-current-led-color-into-variable/68401/6 "2022-09-06T05:57:58Z")

</div>

Thank you both! I think I will resolve it by creating a “lookup table” where my 4 predefined colors in HEX in my current flow will be saved to a “Green”, “Red” “Orange” and “Yellow” variable. Then my other flow will check for those color-strings and IF-\>Else to the exact predefined HEX color in my second flow!

Thanks!
