# How to dim a light based on the dimming level of a Hue lamp

**URL:** <https://community.homey.app/t/how-to-dim-a-light-based-on-the-dimming-level-of-a-hue-lamp/150112>\
**Category:** Questions & Help\
**Tags:** flow, homey-pro, advancedflow, hue\
**Created:** [January 26, 2026, 7:33pm UTC](https://community.homey.app/t/how-to-dim-a-light-based-on-the-dimming-level-of-a-hue-lamp/150112 "2026-01-26T19:33:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patric\_Bachem](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patric_bachem/32/120823_2.png) [@Patric\_Bachem](https://community.homey.app/u/Patric_Bachem)\
**Post date:** [January 26, 2026, 7:33pm UTC](https://community.homey.app/t/how-to-dim-a-light-based-on-the-dimming-level-of-a-hue-lamp/150112/1 "2026-01-26T19:33:19Z")

</div>

Hi Experts,

I would like to dim an Ikea light (connected via the Ikea Tradfri Gateway app) based on the dimming level of a Hue light (connected via the Hue app).

Something like: If Hue lamp X dimming level is 70%, then dim the Ikea ligt to 50%.

Any ideas how I get get this done?

There is no start that would evaluate the Hue lamp regarding the dimming level…..

Thanks for all your kind help!

---

<div class="post-metadata">

**Author:** ![Vnet](https://avatars.discourse-cdn.com/v4/letter/v/d78d45/32.png) [@Vnet](https://community.homey.app/u/Vnet)\
**Post date:** [January 26, 2026, 8:03pm UTC](https://community.homey.app/t/how-to-dim-a-light-based-on-the-dimming-level-of-a-hue-lamp/150112/2 "2026-01-26T20:03:53Z")

</div>

i see a WHEN card with ‘ if dim level changed’. then use the AND card evaluating the dim variable, the THEN card to dim the ikea

---

<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 26, 2026, 8:12pm UTC](https://community.homey.app/t/how-to-dim-a-light-based-on-the-dimming-level-of-a-hue-lamp/150112/3 "2026-01-26T20:12:50Z")

</div>

Create a number-variable ‘target dimlevel ikea’

WHEN  
dimlevel hue changed  
THEN  
calculate ‘target dimlevel ikea’ as {{dimlevel hue - 20%}}

WHEN  
‘target dimlevel ikea’ changed  
THEN  
dim ikea to ‘target dimlevel ikea’

---

<div class="post-metadata">

**Author:** ![Patric\_Bachem](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patric_bachem/32/120823_2.png) [@Patric\_Bachem](https://community.homey.app/u/Patric_Bachem)\
**Post date:** [January 26, 2026, 9:18pm UTC](https://community.homey.app/t/how-to-dim-a-light-based-on-the-dimming-level-of-a-hue-lamp/150112/4 "2026-01-26T21:18:35Z")

</div>

Thanks both, it kinda works…..

I did it like shown below, but I can’t calculate “target dim level” as {{dimlevel hue - 20%}}. I can only set it to dimlevel hue.

What am I missing? Thanks!

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/d/cd872bf0a30cced14d53db1fd24dd4a64245149b.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:** [January 26, 2026, 9:39pm UTC](https://community.homey.app/t/how-to-dim-a-light-based-on-the-dimming-level-of-a-hue-lamp/150112/5 "2026-01-26T21:39:51Z")

</div>

Calculate desired dimlevel ikea

 ![IMG_2075](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/5/65cc169b983b67080aa282126782f1c13cd62216.jpeg)

> [@Wim\_Post](#):
>
> WHEN  
> ‘target dimlevel ikea’ changed  
> THEN  
> dim ikea to ‘target dimlevel ikea’
