Skip to content

Instantly share code, notes, and snippets.

@MartinNuc
MartinNuc / hue_scene_cycler.yaml
Last active January 3, 2026 20:52
Adaptive Hue Wall Switch Scene Cycler for Home Assistant
blueprint:
name: Adaptive Hue Wall Switch Scene Cycler
description: |
### 💡 How it works:
1. **First press (Lights Off):** Activates the scene assigned to the current time.
2. **Subsequent presses (within 3s):** Cycles to the next defined scene.
3. **Long delay press (Lights On > 3s):** Turns the lights off.
### 🛠 Requirement:
You must create an **input_number** helper for each automation instance to store the current scene index.
### Keybase proof
I hereby claim:
* I am martinnuc on github.
* I am martinnuc (https://keybase.io/martinnuc) on keybase.
* I have a public key ASDIVAS0oY-Ij0Bj_mYjK3t3EhJxpWUkh-yZ8yGHm2ja2wo
To claim this, I am signing this object: