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

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
  • Light: Aurelle Hue Round, White ambiance

It can be done with logic flow cards:


(The colored part is just for dimming)

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

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.

2 Likes

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

Switch is up and running :star_struck:

1 Like