Appearance
Scheduler
The scheduler runs timed control jobs against one or more devices: set shared attributes or send commands.
When to use
- Daily pump / relay on-off windows
- Periodic setpoint writes
- One-shot deferred commands
- Interval heartbeats / ping commands
Schedule types
| Type | Config |
|---|---|
| once | runAt timestamp (must be future when created/started) |
| cron | 5-field cron + timezone (default Asia/Kolkata) |
| interval | Every N seconds (minimum 60) |
Actions
| Action | Behavior |
|---|---|
set_shared_attributes | Writes SHARED scope (reboot-safe control path) |
send_command | Device command / RPC payload |
UI
- Scheduler —
/scheduler - Editor —
/scheduler/newor/scheduler/:id - Start / pause, preview next run, recent run history
Ops
- Runner ticks every 15s
- Multi-instance safe (
FOR UPDATE SKIP LOCKED) - Kill switch:
SCHEDULER_ENABLED=false - Migration:
0025_scheduled_jobs.sql
