Multi-Scene Light Switch
FlowBits step sequences and timers make it easy to create a smart light switch that cycles through scenes with quick presses, but turns off after a pause. This creates an intuitive user experience: tap quickly to browse scenes, wait a moment and tap again to turn off.
This example shows how to set up a Philips Hue Wall Switch Module that cycles through different lighting presets in your living room.
What you'll get
A wall switch that behaves intelligently:
- Lights off → First press turns on the first scene
- Lights on + quick press (within 3 seconds) → Cycles to the next scene
- Lights on + press after 3 seconds → Turns lights off
The available scenes are:
- Off — All lights off
- Bright — Full brightness for activities
- Relaxed — Warm, dimmed lighting for the evening
- Movie — Very dim ambient light
Requirements
- A Philips Hue Wall Switch Module (or similar smart wall switch)
- Smart lights in the room
- Scenes configured in your Philips Hue app
How it works
The logic uses a timer to track whether the button was pressed recently:
- When the button is pressed and lights are off, go to step 1 and start a 3-second timer.
- When the button is pressed and the timer is running (quick press), cycle to the next scene and restart the timer.
- When the button is pressed and the timer is not running (after cooldown), turn off the lights.
Flow
Step 1: Press when lights are off
When the lights are off (sequence is at step 0), turn them on to the first scene.
Step 2: Quick press to cycle scenes
When the lights are on and the timer is still running (pressed within 3 seconds), cycle to the next scene.
Step 3: Press after cooldown to turn off
When the lights are on and the timer has finished (pressed after 3 seconds), turn the lights off.
Step 4: React to sequence changes
Now set up flows that react when the sequence reaches each step.
Turn off lights (step 0):
Activate Bright scene (step 1):
Activate Relaxed scene (step 2):
Activate Movie scene (step 3):
Tips
Adjust the cooldown — Change the 3-second timer to suit your preference. A shorter time requires quicker presses, while a longer time gives you more time to decide.
Use button 2 for instant off — If your wall switch has a second button, use it to turn off the lights immediately:
- Reset when leaving — Reset the sequence when you leave home to ensure lights start from "off":