# How to cycle through Tradfri temperatures with Styrbar?

**URL:** <https://community.homey.app/t/how-to-cycle-through-tradfri-temperatures-with-styrbar/89525>\
**Category:** Questions & Help\
**Tags:** ikea, homey-pro\
**Created:** [September 16, 2023, 9:22am UTC](https://community.homey.app/t/how-to-cycle-through-tradfri-temperatures-with-styrbar/89525 "2023-09-16T09:22:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Talvas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/talvas/32/78909_2.png) [@Talvas](https://community.homey.app/u/Talvas)\
**Post date:** [September 16, 2023, 9:22am UTC](https://community.homey.app/t/how-to-cycle-through-tradfri-temperatures-with-styrbar/89525/1 "2023-09-16T09:22:07Z")

</div>

Hi all,

I am brand new to the smarthome world and just installed my homey 2019 and added some Tradfri bulbs and sensors. I have the Tradfri Gateway (the old one) but want to do everything via Homey.

However, I am now facing this problem: The “original” function of the Styrbar remote left and right buttons ist to cycle through a number is different light temperatures. In Homey Flow, I can only set one specific temperature for the left button, and one for the right button.

I did not find a way to overcome this, has anyone an idea or solved this problem already?

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [September 17, 2023, 1:02pm UTC](https://community.homey.app/t/how-to-cycle-through-tradfri-temperatures-with-styrbar/89525/2 "2023-09-17T13:02:08Z")

</div>

Hi Jan and welcome to the Homey Community Forum!

This can be done with numeric variables. First you have to create a numeric variable:

- Smartphone App: More → Variables → + → Number → Enter name → Value = 0 → Save
- WebApp: Flows → Variables → New variable → Number → Enter name → Value = 0 → Save → Reload web page

Because the flows are a bit more complex and it’s also a bit difficult for me to explain everything in words I created a sample flow:

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

I hope it’s understandable, otherwise ask.

---

<div class="post-metadata">

**Author:** ![Talvas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/talvas/32/78909_2.png) [@Talvas](https://community.homey.app/u/Talvas)\
**Post date:** [September 25, 2023, 6:58am UTC](https://community.homey.app/t/how-to-cycle-through-tradfri-temperatures-with-styrbar/89525/3 "2023-09-25T06:58:20Z")

</div>

Hi fabtross,  
Thanks a lot for your great reply and demonstration. Took me some time to comprehend and try it out on my homey, but I think after some time I understand the idea behind it. By clicking you increase the variable by one, but each time it reaches 5 you put it back to 1. And each variable controls a different temperature in the end.

When I understand it correctly you only have a remote with 2 switches. Since the one I use has 2 switches for ,brighter" ,darker" and two for the temperature (,cycle left, cycle right") I guess I could Programm the right button to increase variable by 1 and the left to decrease variable by 1. When it is 1 and I decrease it to 0, it should be set back to 5. Hope this is possible?

For ,switch off" I would just use variable 10 then.

In the original IKEA product, holding the dimming button seamlessly dimmed the lights - I guess this is not possible with homey?

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [September 25, 2023, 9:01am UTC](https://community.homey.app/t/how-to-cycle-through-tradfri-temperatures-with-styrbar/89525/4 "2023-09-25T09:01:20Z")

</div>

Yes, you have understood the working principle correctly. 👍🏻  
And yes, to decrease the variable by 1 you can use the left button.  
I use only one button to increase the variable. At 5 the variable is set to 1 again. I use a second button to set the variable to 0 and turn off the lamp. So I don’t have the possibility to change from e.g. 4 to 3, but I don’t want that either.

Seamless dimming is probably not possible with most remote controls via flows, e.g. by holding a button. At least I don’t know how.  
But with a Philips Hue Dimmer Switch it’s more or less possible. If you hold the brighter or darker button on the Philips Hue Dimmer Switch, then this remote control sends a new signal at intervals of about 1-2 seconds again and again. If you now use a lamp where you can set the dimming over time (set relative dimming level to +10% for 1 second), then the brightness of the lamp is dimmed relatively smoothly. In reality, however, these are actually repeated keystrokes and the brightness of the lamp is changed step by sep by +/-10%.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/8/4820684abd0cda2e32dbbc0cd9bfe4a992e3566b.png)

There is a relatively new app called “Loops” in the App Store available. Maybe seamless dimming is possible with this app, but I don’t know.

> **[Loops](https://homey.app/en-us/app/nl.mennovanhout.loops/Loops/)**
>
> Add infinite possibilities to your Homey Flows with the power of loops.

---

<div class="post-metadata">

**Author:** ![jancihr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jancihr/32/33966_2.png) [@jancihr](https://community.homey.app/u/jancihr)\
**Post date:** [November 4, 2023, 10:21pm UTC](https://community.homey.app/t/how-to-cycle-through-tradfri-temperatures-with-styrbar/89525/5 "2023-11-04T22:21:07Z")

</div>

Hi there. I am trying to do the same with the styrbar remote but when I have tried to use the left/right buttons to change the hue of my lamps in some step it did some strange things. After some investigation I have realised that pressing the left/right button once fires the “Pressed” event 3 times in Homey (probably some wrong implementation of receiving the signal on homey side). Now I wait if that will be fixed in some update as these 3 events fire simultaneously and it is hard to implement a flow where you have to take into account concurrent manipulation of some values) ☹

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [November 5, 2023, 11:42am UTC](https://community.homey.app/t/how-to-cycle-through-tradfri-temperatures-with-styrbar/89525/6 "2023-11-05T11:42:57Z")

</div>

If it’s really a bug in the app, please contact Athom:

> **[Support | Homey](https://homey.app/en-us/support/)**
