# 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:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wroet](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wroet/32/119407_2.png) [@Wroet](https://community.homey.app/u/Wroet)\
**Post date:** [November 22, 2024, 2:31pm UTC](https://community.homey.app/t/simple-flow-to-increase-brightness/121275/1 "2024-11-22T14:31:20Z")

</div>

I have a Homey-pro and just getting started.  
But as I proceed, I start feeling dumb and frustrated as I can’t get something simple to work.

I have several Zigbee lights (Ikea Tradfri and Hue) and a few remotes (Tradfri 5-button and 2-button).

What I want seems very simple, but I am not able to figure out how to do it (without adding 20+ flows).

When I press the “increase brightness” button, Increase the brightness level with a 10 %.  
So when it is at 20%, set it to 30%, etc. up to 100%  
Similar when I press the “Decrease brightness” button, down to 10%.

Ideally this should be done gradually (in 1 or 2 sec), but that’s optional.

If I remove the bulbs and remote from Homey and pair them directly, it works perfectly.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [November 22, 2024, 2:33pm UTC](https://community.homey.app/t/simple-flow-to-increase-brightness/121275/2 "2024-11-22T14:33:36Z")

</div>

You can try what’s explained here: [https://support.homey.app/hc/en-us/articles/360015669840-Controlling-a-Zigbee-device-with-a-Zigbee-remote-directly](https://support.homey.app/hc/en-us/articles/360015669840-Controlling-a-Zigbee-device-with-a-Zigbee-remote-directly)

---

<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:** [November 22, 2024, 7:59pm UTC](https://community.homey.app/t/simple-flow-to-increase-brightness/121275/3 "2024-11-22T19:59:21Z")

</div>

WHEN  
‘Increase dimlevel button’ pressed.  
THEN  
Calculate variable ‘dimlevel’ = ‘dimlevel’ + 0.10

WHEN  
‘Decrease dimlevel button’ pressed.  
THEN  
Calculate variable ‘dimlevel’ = ‘dimlevel’ - 0.10

WHEN  
variable ‘dimlevel’ is changed  
THEN  
Dim light to ‘dimlevel’ (during 5 seconds)

---

<div class="post-metadata">

**Author:** ![Wroet](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wroet/32/119407_2.png) [@Wroet](https://community.homey.app/u/Wroet)\
**Post date:** [November 23, 2024, 7:59am UTC](https://community.homey.app/t/simple-flow-to-increase-brightness/121275/4 "2024-11-23T07:59:41Z")

</div>

Thanks a lot!  
Seems that I’d been using the wrong ‘dim lights’ option in THEN. (relative dim)

---

<div class="post-metadata">

**Author:** ![Wroet](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wroet/32/119407_2.png) [@Wroet](https://community.homey.app/u/Wroet)\
**Post date:** [November 23, 2024, 8:00am UTC](https://community.homey.app/t/simple-flow-to-increase-brightness/121275/5 "2024-11-23T08:00:16Z")

</div>

Not exactly what I was looking for, but very helpfull nonetheless.  
Thanks

---

<div class="post-metadata">

**Author:** ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)\
**Post date:** [November 23, 2024, 9:32am UTC](https://community.homey.app/t/simple-flow-to-increase-brightness/121275/6 "2024-11-23T09:32:32Z")

</div>

Maybe this one suits your needs: [\< groep \> App voor Homey | Homey](https://homey.app/nl-nl/app/com.swttt.devicegroups/&lt;-groep-&gt;/)

---

<div class="post-metadata">

**Author:** ![Mexxwelll](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mexxwelll/32/80256_2.png) [@Mexxwelll](https://community.homey.app/u/Mexxwelll)\
**Post date:** [December 17, 2024, 7:12pm UTC](https://community.homey.app/t/simple-flow-to-increase-brightness/121275/7 "2024-12-17T19:12:34Z")

</div>

Hi Wim,

I have tried your logic, but it does not seems to work. My variable is empty after executing it. It shows the number 43, but thats a default number.

Any idea what is going wrong?

Thanks.

 ![Screenshot 2024-12-17 201215](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/b/bb439a1159754897d81cce2785ec5a5eee999c2b.png)

---

<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:** [December 17, 2024, 7:29pm UTC](https://community.homey.app/t/simple-flow-to-increase-brightness/121275/8 "2024-12-17T19:29:48Z")

</div>

use double {{ before and }} after calculation.

dimlevel = {{dimlevel + 0.1}}

---

<div class="post-metadata">

**Author:** ![Rogier\_Verheugen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogier_verheugen/32/77406_2.png) [@Rogier\_Verheugen](https://community.homey.app/u/Rogier_Verheugen)\
**Post date:** [December 17, 2024, 9:12pm UTC](https://community.homey.app/t/simple-flow-to-increase-brightness/121275/9 "2024-12-17T21:12:58Z")

</div>

Hi @Wim_Post  
Please keep it in English. Thanks

---

<div class="post-metadata">

**Author:** ![Mexxwelll](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mexxwelll/32/80256_2.png) [@Mexxwelll](https://community.homey.app/u/Mexxwelll)\
**Post date:** [December 17, 2024, 9:56pm UTC](https://community.homey.app/t/simple-flow-to-increase-brightness/121275/10 "2024-12-17T21:56:13Z")

</div>

That’s working now! Bedankt 😉!!

Any idea why this logic is working and not without the {}??

---

<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:** [December 17, 2024, 10:58pm UTC](https://community.homey.app/t/simple-flow-to-increase-brightness/121275/11 "2024-12-17T22:58:54Z")

</div>

Just because the _rtfm_ says so 😬😉

 ![1000038959](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/8/68957c368c3706d5a649d1bb1314bd1aa0fdd4b1.jpeg)

---

<div class="post-metadata">

**Author:** ![Mexxwelll](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mexxwelll/32/80256_2.png) [@Mexxwelll](https://community.homey.app/u/Mexxwelll)\
**Post date:** [December 18, 2024, 5:25am UTC](https://community.homey.app/t/simple-flow-to-increase-brightness/121275/12 "2024-12-18T05:25:48Z")

</div>

😬😬.

Right, did not see that small text beneath. Thanks.

---

<div class="post-metadata">

**Author:** ![AWBoonen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/awboonen/32/5095_2.png) [@AWBoonen](https://community.homey.app/u/AWBoonen)\
**Post date:** [January 17, 2025, 1:47pm UTC](https://community.homey.app/t/simple-flow-to-increase-brightness/121275/13 "2025-01-17T13:47:29Z")

</div>

Contrast is a bit low and I was put off guard by the name of the logic card “Calculate (numeric variable) to text.”

---

<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 17, 2025, 8:00pm UTC](https://community.homey.app/t/simple-flow-to-increase-brightness/121275/14 "2025-01-17T20:00:53Z")

</div>

Thanks so much for this thread as it’s exactly what I am trying to do.

However, I am stuck with the very first part. I can create and set a variable for the Dim level, but how can I read the existing value of the dim level variable from a lightbulb. I can see the value, and adjust it, but I cannot read it with logic function.

 ![Screen Shot 2025-01-17 at 20.56.15](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/e/0e196bd7dc44ff1188faa6632efd58368f6387ef.png)

---

<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:** [January 17, 2025, 8:50pm UTC](https://community.homey.app/t/simple-flow-to-increase-brightness/121275/15 "2025-01-17T20:50:13Z")

</div>

> [@AWBoonen](#):
>
> Calculate (numeric variable) to text

Seems to be a (translation) error @ Pro 2023.  
The ‘text’ example text should read ‘number’.  
I’d nudge support about this, to get it fixed.

---

<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:** [January 17, 2025, 9:09pm UTC](https://community.homey.app/t/simple-flow-to-increase-brightness/121275/16 "2025-01-17T21:09:06Z")

</div>

Is this more clear, Mark?

> [@Wim\_Post](#):
>
> WHEN  
> ‘Increase dimlevel button’ pressed.  
> THEN  
> Calculate variable ‘my\_dimlevel\_var’ = {{‘my\_dimlevel\_var’ + 0.1}}
> 
> WHEN  
> ‘Decrease dimlevel button’ pressed.  
> THEN  
> Calculate variable ‘my\_dimlevel\_var’ = {{‘my\_dimlevel\_var’ - 0.1}}
> 
> WHEN  
> variable ‘my\_dimlevel\_var’ is changed  
> THEN  
> Dim light to ‘my\_dimlevel\_var’ (during 5 seconds)

---

<div class="post-metadata">

**Author:** ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)\
**Post date:** [January 17, 2025, 9:39pm UTC](https://community.homey.app/t/simple-flow-to-increase-brightness/121275/17 "2025-01-17T21:39:33Z")

</div>

Maybe the formula is seen as a text string?

---

<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:** [January 17, 2025, 9:51pm UTC](https://community.homey.app/t/simple-flow-to-increase-brightness/121275/18 "2025-01-17T21:51:41Z")

</div>

The first THEN card example visual:

 ![1000041621](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/2/723f559a851c0de087d913e349b9fe2fed4fca48.jpeg)

---

<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 17, 2025, 10:11pm UTC](https://community.homey.app/t/simple-flow-to-increase-brightness/121275/19 "2025-01-17T22:11:43Z")

</div>

Thanks for the quick reply Peter, unfortunately that didn’t help. Probably I’m not understanding the logic…

My smartbulb displays a variable named “Dim level” that states the level that the lightbulb is dimmed to.

When I follow this example and I create my own variable called “dim\_level\_var” I have to set an initial value, I cannot set it to equal the variable named “Dim level” attached to the bulb. This is what I believe I need to be able to do.

Therefore whenever I initiate the flow in this screenshot the calculation takes “dim\_level\_var” then adds 0.1. This means that the flow always outputs “dim\_level\_var” = 0.2. The var “dim\_level\_var” = 0.1 and then the flow adds 0.1. When I start the flow again it simply does the same thing.

 ![Screen Shot 2025-01-17 at 23.07.34](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/1/31b53c23928e9f3b172c4e77f2af9dc6b93b484c.png)

---

<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:** [January 17, 2025, 10:14pm UTC](https://community.homey.app/t/simple-flow-to-increase-brightness/121275/20 "2025-01-17T22:14:50Z")

</div>

YW, Mark  
The lights should be driven by a separate flow, like  
WHEN  
variable ‘my\_dimlevel\_var’ is changed  
THEN  
Dim light to ‘my\_dimlevel\_var’ (during 5 seconds)

So deattach them from that flow, and start a new flow (on the same canvas), starting with this logic card

 ![1000041629](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/a/8aae3053b340dd2e55d9f2679226292db991c6a7.jpeg)

To get this result:

 ![1000041627](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/4/a4cb0cbc1d36f862c1df3a0136307a9a10b7b565.jpeg)

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