# Setting Homey Ring brightness from a flow

**URL:** <https://community.homey.app/t/setting-homey-ring-brightness-from-a-flow/15574>\
**Category:** Questions & Help\
**Created:** [July 14, 2019, 4:38pm UTC](https://community.homey.app/t/setting-homey-ring-brightness-from-a-flow/15574 "2019-07-14T16:38:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tiwas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tiwas/32/10066_2.png) [@Tiwas](https://community.homey.app/u/Tiwas)\
**Post date:** [July 14, 2019, 4:39pm UTC](https://community.homey.app/t/setting-homey-ring-brightness-from-a-flow/15574/1 "2019-07-14T16:39:00Z")

</div>

Hi. I wanted to change the ring brightness from a few of my flows and ran into some problems. Seems whatever I feed it it won’t change brightness. Anyone else had this problem? I can set it to a specific value using the slider, but not directly from the value of another device. Seems I cannot directly set the value as a number either.

I’ve tried both of these (and more).

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/0/08a1cdddf1c35c21a093b5f83a7776158dd6ba0c.png)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/9/95cb6d008b66c727bf47161e1b941a88d81ae4c6.png)

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [July 14, 2019, 4:50pm UTC](https://community.homey.app/t/setting-homey-ring-brightness-from-a-flow/15574/2 "2019-07-14T16:50:20Z")

</div>

You have to use a value between 0 and 1 ( 0.13 ) or a percentage like:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/7/75a68163ac4ca43b06fe91c2b52af71f4d1bf86d.png)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/6/6b5334b28097c78679137ee851d922a843d4dc1e.png)  
( The Lamp is a virtual, dimable, device, I used the AND because I don’t want to set it to zero)

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [July 14, 2019, 4:56pm UTC](https://community.homey.app/t/setting-homey-ring-brightness-from-a-flow/15574/3 "2019-07-14T16:56:09Z")

</div>

And then use a delay to give Homey some time to actually set the variable before using it?

---

<div class="post-metadata">

**Author:** ![Tiwas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tiwas/32/10066_2.png) [@Tiwas](https://community.homey.app/u/Tiwas)\
**Post date:** [July 14, 2019, 5:50pm UTC](https://community.homey.app/t/setting-homey-ring-brightness-from-a-flow/15574/4 "2019-07-14T17:50:27Z")

</div>

Thanks guys. I’ve tried both 0\<\>1 and 0\<\>100 for values, but…For one running the test from my computer didn’t work at all. When I added the delay and changed the set number value to set a variable I started getting a “not a value” error.

Isn’t this the right syntax to divide luminancy by 100?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/5/5b5029ed7bfe33b285373b25adb51340bab335ea.png)

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [July 14, 2019, 5:57pm UTC](https://community.homey.app/t/setting-homey-ring-brightness-from-a-flow/15574/5 "2019-07-14T17:57:33Z")

</div>

The change of brightness is not very clear on Homey, I have it set to 0.01 and it is still quite bright indoor, you better test it first with fixes values to see for your self how the Homey Led Ring reacts on this.

---

<div class="post-metadata">

**Author:** ![Tiwas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tiwas/32/10066_2.png) [@Tiwas](https://community.homey.app/u/Tiwas)\
**Post date:** [July 14, 2019, 6:00pm UTC](https://community.homey.app/t/setting-homey-ring-brightness-from-a-flow/15574/6 "2019-07-14T18:00:52Z")

</div>

For the most part I use set values for the ring, but this calculation would be the base for the rest of my dynamic lighting. Do you see what’s wrong with it causing the “not a number” error?

---

<div class="post-metadata">

**Author:** ![Tiwas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tiwas/32/10066_2.png) [@Tiwas](https://community.homey.app/u/Tiwas)\
**Post date:** [July 14, 2019, 6:06pm UTC](https://community.homey.app/t/setting-homey-ring-brightness-from-a-flow/15574/7 "2019-07-14T18:06:30Z")

</div>

Removed the brackets and it seems to work now. I’ll play around with it some more, avoiding the dynamic ring values 🙂

Is there a rule of thumb as to what delay one should use when setting a variable?
