# Cycle Hue Scenes with IKEA Tradfri Strybar Remote

**URL:** <https://community.homey.app/t/cycle-hue-scenes-with-ikea-tradfri-strybar-remote/61309>\
**Category:** Flows\
**Tags:** flow, help\
**Created:** [March 4, 2022, 1:21am UTC](https://community.homey.app/t/cycle-hue-scenes-with-ikea-tradfri-strybar-remote/61309 "2022-03-04T01:21:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![YassineGherbi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yassinegherbi/32/51223_2.png) [@YassineGherbi](https://community.homey.app/u/YassineGherbi)\
**Post date:** [March 4, 2022, 1:21am UTC](https://community.homey.app/t/cycle-hue-scenes-with-ikea-tradfri-strybar-remote/61309/1 "2022-03-04T01:21:35Z")

</div>

Hi! Does anyone know if there’s a way to set up an **IKEA Tradfri Strybar Remote** to cycle through **Philips Hue Scenes** with the “_next_” and “_previous_” arrow buttons? Or any other non-Hue remote for that matter.

I am looking for a similar behavior like the Philips Hue Dim Switch has.

Currently, I can use the arrow buttons only to set a specific scene.

**My setup**

- _Philips hue lights are connected through the Hue Bridge in Homey_
- _IKEA Tradfri Strybar Remote is connected to Homey without the IKEA Tradfri Bridge/Hub_

---

<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:** [March 4, 2022, 8:54am UTC](https://community.homey.app/t/cycle-hue-scenes-with-ikea-tradfri-strybar-remote/61309/2 "2022-03-04T08:54:12Z")

</div>

I solved this with a variable.

**Philips Hue Scene +**  
_ **When…** _  
– Right button was pressed  
_ **Then…** _  
– Calculate variable _HueLights_ as {{HueLights +1}}

**Philips Hue Scene -**  
_ **When…** _  
– Left button was pressed  
_ **Then…** _  
– Calculate variable _HueLights_ as {{HueLights -1}}

**Set Philips Hue Scene #1**  
_ **When…** _  
– Variable _HueLights_ has changed  
_ **And…** _  
– Variable _HueLights_ is 1  
_ **Then…** _  
– Set Hue Scene #1

**Set Philips Hue Scene #2**  
_ **When…** _  
– Variable _HueLights_ has changed  
_ **And…** _  
– Variable _HueLights_ is 2  
_ **Then…** _  
– Set Hue Scene #2

Create the same flows for Hue scenes 3-5 \*¹

**Switch from the last Hue Scene (No. 5) to the first Hue Scene (No. 1) by pressing +** \*¹  
_ **When…** _  
– Variable _HueLights_ has changed  
_ **And…** _  
– Variable _HueLights_ is 6 \*¹  
_ **Then…** _  
– Set variable _HueLights_ to 1

**Switch from the first Hue Scene (No. 1) to the last Hue Scene (No. 5) by pressing -** \*¹  
_ **When…** _  
– Variable _HueLights_ has changed  
_ **And…** _  
– Variable _HueLights_ is 0 \*¹  
_ **Then…** _  
– Set variable _HueLights_ to 5

\*¹ In this example I assume that there are 5 Hue scenes in total.

---

<div class="post-metadata">

**Author:** ![YassineGherbi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yassinegherbi/32/51223_2.png) [@YassineGherbi](https://community.homey.app/u/YassineGherbi)\
**Post date:** [March 25, 2022, 1:12am UTC](https://community.homey.app/t/cycle-hue-scenes-with-ikea-tradfri-strybar-remote/61309/3 "2022-03-25T01:12:55Z")

</div>

Thanks a lot! As a software developer I feel pretty stupid now haha. This is a lot cleaner than the way I did it. I manually set the scene variable number after each click and the corresponding scene. Even your improved example still seems like a lot of work… Too much work to be honest haha. Is there a more streamlined way of doing is? I could look in to making an app for homey if some could verify that something like this is possible (not sure what the api looks like or if you even can access switches from other brands like IKEA)

---

<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:** [March 29, 2022, 12:19pm UTC](https://community.homey.app/t/cycle-hue-scenes-with-ikea-tradfri-strybar-remote/61309/4 "2022-03-29T12:19:53Z")

</div>

I don’t know if there is an other, easier method. I also don’t know if it’s possible to develop an app for this. But I know where to find the [API](https://api.developer.homey.app) documentation… 😉
