# Cycle through scene's? \[Namron, Philips Hue\]

**URL:** <https://community.homey.app/t/cycle-through-scenes-namron-philips-hue/83748>\
**Category:** Questions & Help\
**Tags:** zigbee, flow, homey-bridge, hue\
**Created:** [July 2, 2023, 9:59am UTC](https://community.homey.app/t/cycle-through-scenes-namron-philips-hue/83748 "2023-07-02T09:59:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![FondaLaShay](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fondalashay/32/80379_2.png) [@FondaLaShay](https://community.homey.app/u/FondaLaShay)\
**Post date:** [July 2, 2023, 9:59am UTC](https://community.homey.app/t/cycle-through-scenes-namron-philips-hue/83748/1 "2023-07-02T09:59:14Z")

</div>

I would like to have a flow that cycles through Philips Hue scene’s (like the Philips Hue Dimmer Remote does) when I push a wireless button. So either it goes to the next scene in a list (if it can somehow know scene which is active) or just goes to the first one in the list right and starts going down the list with each additional click.

For example:

- 1 click, scene 1
- 2 clicks, scene 2
- 3 clicks, scene 3

Any ideas on how to solve this? I was thinking if there was a way to say IF it was pushed again within 1-5 seconds, THEN scene X… but really not seeing how to do that.

**Setup** :

- Hubs: Homey Bridge (10.0.2), Philips Hue Bridge
- Apps: Namron, Philips Hue
- Switch: Namron ZigBee 2 Channel Switch K4, wireless [4512729](https://www.elektroimportoren.no/namron-zigbee-2-kanal-bryter-k4-sort/4512729/Product.html)
- Light: Aurelle Hue Round, _White ambiance_

---

<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:** [July 2, 2023, 10:35am UTC](https://community.homey.app/t/cycle-through-scenes-namron-philips-hue/83748/2 "2023-07-02T10:35:32Z")

</div>

It can be done with logic flow cards:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/a/7a9a11dce17836b1caeea4b570f542bc3158c549.jpeg)  
(The colored part is just for dimming)

But I don’t know exactly if the Homey Bridge has the logic calculation card… 🤔

Explained in words:  
If the on button is pushed and the light is switched off, then set logic variable XYZ to 1.  
If the on button is pushed and the light is switched on, then calculate the logic variable XYZ + 1.  
If the logic variable XYZ has changed and it is equal to 1, then set scene 1  
If the logic variable XYZ has changed and it is equal to 2, then set scene 2  
If the logic variable XYZ has changed and it is equal to 3, then set scene 3  
If the logic variable XYZ has changed and it is equal to 4 (no scene!), then set scene 1  
If the off button is pushed, then switch light off and set variable XYZ to 0.

---

<div class="post-metadata">

**Author:** ![FondaLaShay](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fondalashay/32/80379_2.png) [@FondaLaShay](https://community.homey.app/u/FondaLaShay)\
**Post date:** [July 2, 2023, 12:19pm UTC](https://community.homey.app/t/cycle-through-scenes-namron-philips-hue/83748/3 "2023-07-02T12:19:56Z")

</div>

Thank you so much, this really opened my eyes to how the logic works 😃

Switch is up and running 🤩
