Schedule a Macro
Goal: run a macro automatically at a time of day, on certain days, or relative to sunrise/sunset.
A macro schedule is GEM's time-based automation — daily routines, seasonal adjustments, a weekly backup.
Before you start
- You're logged in as an administrator.
- The macro to run exists and is enabled (see Build a Macro) — or create one inline (step 3).
Steps
-
Open Macro Schedules and click Add.
Open Macro Schedules
-
Basic Information
- Name —
lowercase_with_underscores(e.g.morning_lights,sunset_shades). - Description — a human-readable purpose ("Close shades at sunset").
- Enabled — activate the schedule.
- Name —
-
Macro — pick the macro to run. If you haven't built it yet, leave the picker empty and click the + button to create a new macro named after the schedule and open its step editor immediately.
-
When to run — set the timing:
- Cron pattern for clock-based schedules (a specific time, certain weekdays, intervals).
- Variable reference to tie execution to sunrise, sunset, or another variable — ideal for lighting and shades that should follow the sun rather than a fixed clock.
-
Date range (optional) — set a Start Time and/or End Time to limit the schedule to a season or a temporary period.
-
Save.
Verify it
- Use View Calendar to see when the schedule will fire and confirm it lands where you expect.
- For a quick functional check, run the macro manually (its Run action) to confirm the actions are correct, independent of timing.
Schedules respect the system time zone set in Configuration. To suppress runs on holidays or specific dates, use Schedule Exceptions (see the Admin Reference).
Related
- Create a Trigger — the event-based counterpart.
- Macro Schedules and Schedule Exceptions in the Admin Reference.