shelly_schedule_create
Creates a Shelly device schedule from a cron, shorthand, or sun-relative timespec plus up to five method calls, validating limits and logging the result for audit.
Instructions
Create a schedule: timespec + calls (1-5 × {method, params}).
timespec: cron "sec min hour day month dow" (e.g. "0 0 22 * * MON-THU"; 5 or 7
fields also accepted), a shorthand (@daily), or sun-relative "@sunset",
"@sunset+30m", "@sunrise-1h * * MON-FRI" (offset max ±12 h; the device needs its
location set). Validates the timespec, ≤5 calls, the ≤20-per-device limit, and each
call's method. Audit-logged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calls | Yes | ||
| device | Yes | ||
| enable | No | ||
| timespec | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||