# Simple flow to increase brightness

**URL:** <https://community.homey.app/t/simple-flow-to-increase-brightness/121275>\
**Category:** Questions & Help\
**Tags:** zigbee, homey-pro\
**Created:** [November 22, 2024, 2:31pm UTC](https://community.homey.app/t/simple-flow-to-increase-brightness/121275 "2024-11-22T14:31:20Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![Mar16](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mar16/32/113075_2.png) [@Mar16](https://community.homey.app/u/Mar16)\
**Post date:** [January 19, 2025, 6:01pm UTC](https://community.homey.app/t/simple-flow-to-increase-brightness/121275/21 "2025-01-19T18:01:36Z")

</div>

Thanks for the detailed response Peter, I tried exactly as you said but it still didn’t work - see the screenshot for the logic in case I misunderstood. The flow always results in the lights dimming to the same level.

 ![Screen Shot 2025-01-19 at 18.45.34](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/d/4dee4afa73c02c8968503cff531df800d40674b0.png)

From here I reasoned that maybe I needed to declare the variable dim\_level\_var  
So I added in the card Calculate dim\_level\_var as Dim level (Dim level is the standard variable that I can see when interrogating the bulbs). Unfortunately this didn’t work either…

 ![Screen Shot 2025-01-19 at 18.46.05](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/2/f2a547c5b4efe561d10c346422b233bcbdec829e.jpeg)

Then I decided to check the value of dim\_level\_var by adding an additional card to create a notification with dim\_level\_var. I did this for both of the above flows. Both times the value was NaN. At least now I can see why it isn’t working, but I have run out of ideas to solve it…  
I’m using an ikea switch and Wizz bulbs, in case the route of problem is the hardware, although I doubt it.

 ![Screen Shot 2025-01-19 at 18.56.54](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/d/7dbc2ce373e8a20ec649fbb449fbcc12ac26703f.png)

Any ideas?

---

<div class="post-metadata">

**Author:** ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)\
**Post date:** [January 19, 2025, 8:05pm UTC](https://community.homey.app/t/simple-flow-to-increase-brightness/121275/22 "2025-01-19T20:05:07Z")

</div>

What happens if you store the dim level to a text-variable?

 ![IMG_1867](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/e/5e567a376e1820d4dbb68f0e6d8f3a08280f1b7f.jpeg)

In my case it reads 0.35

 ![IMG_7389](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/c/acfad900de920ece5f76234a21ec71f85920aa0a.jpeg)

---

<div class="post-metadata">

**Author:** ![ReneO](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/reneo/32/3522_2.png) [@ReneO](https://community.homey.app/u/ReneO)\
**Post date:** [January 19, 2025, 8:13pm UTC](https://community.homey.app/t/simple-flow-to-increase-brightness/121275/23 "2025-01-19T20:13:43Z")

</div>

In the logic card you have typed the variable name, but you have to select the tag in the calculation field.

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

edit:  
I forgot something: you have to assign a value to the variable dim\_level\_var via the Variables button before running.

---

<div class="post-metadata">

**Author:** ![Mar16](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mar16/32/113075_2.png) [@Mar16](https://community.homey.app/u/Mar16)\
**Post date:** [January 26, 2025, 4:14pm UTC](https://community.homey.app/t/simple-flow-to-increase-brightness/121275/24 "2025-01-26T16:14:44Z")

</div>

Thank you @ReneO this is the simple part that I was missing. Working properly now, for some reason I didn’t see the variable tag.

[Previous page](https://community.homey.app/t/simple-flow-to-increase-brightness/121275.md?page=1)
