Scenes & Routines
A scene sets a mood in one phrase — lights, music, and a spoken briefing
together. openhome ships time‑of‑day scenes you can trigger by voice or tap.
Built‑in scenes
| Say | Does |
|---|---|
| "Good morning" | Warm living‑room light + your morning playlist (shuffled) + the day's briefing (weather, headlines, transit) read over the music. |
| "Good afternoon" | Your afternoon mix. |
| "Good evening" | Evening playlist and lighting. |
| "Good night" | Winds things down. |
Only "good morning" reads the full briefing by default.
How a scene runs
runScene applies the scene's light settings (color + brightness) to the room,
plays its music context, then — after a short warm‑up delay — enables shuffle.
Triggers are deterministic (no LLM), so they fire fast and the same way every
time.
Configuring scenes
Scene definitions live in the hub's durable scene config: each scene has
lights {rgb, brightness} and music {contextUri, name, shuffle} (a Spotify
playlist or artist). Edit via the app's scene controls or the scene config,
then they persist across reboots.
Example shape:
{
"good_morning": {
"lights": { "rgb": {"r":255,"g":180,"b":107}, "brightness": 100 },
"music": { "contextUri": "spotify:playlist:...", "name": "Upbeat Morning Jazz", "shuffle": true }
}
}
Tips & gotchas
- Give scenes ~12 seconds between back‑to‑back triggers — Spotify Connect can
get confused by rapid context switches.
- If a scene's music lands on the wrong device, make sure your room's speaker is
advertised (e.g. the Snapcast/soloist service is running). See
Next: Cooking Agent · Voice Guide