Scenes, routines and schedules
flowchart LR
scene["Scene: several devices at once"] --> run["Run (you)"]
routine["Routine: steps in order, with waits"] --> run
schedule["Schedule: daily, chosen days or once,<br/>in the site's time zone"] --> run2["Run (as the person who saved it)"]
run --> cmd["Each step is a command:<br/>your access is checked; guarded steps wait for confirmation"]
run2 --> cmd
Open a site, then Scenes.
Making a scene or routine:
- Scene: applies its device actions together, for example "Evening: lamps on, heating to 21".
- Routine: runs its steps in order and can wait between them (up to a day). It can also run another scene. A routine that is waiting carries on after a restart.
- Actions offered: only the actions the device's capabilities declare.
- Guarded actions (unlock, mains power) are marked. When the scene runs, they wait for a person to confirm on the device page.
Running:
- Run sends each step as your own command, so your access is checked as if you pressed the device's own control.
- The result shows what was sent, and why a step was not.
- Pressing Run twice by accident (a retried request) starts only one run.
Schedules:
- When: every day, on chosen days, or once, at a time in the site's time zone. Daylight-saving changes keep the local time.
- Who it runs as: the person who saved it, checked again at every run. If they leave the account, the schedule stops running.
- Not schedulable: scenes with guarded actions (they need a person present), and sunrise or sunset (sites have no location yet).
- Deleting a scene stops its schedules.
API: /v1/scenes, /v1/scenes/{id}/runs and /v1/schedules.