How to Schedule Automated Tasks
Create scheduled rules that run actions at specific times — like sending device commands every morning or generating reports weekly.
Quick Summary
Click Smart Workflows in the sidebar, click Create Smart Workflow, select Time-Based trigger, set the schedule, add actions, and save.
Before You Begin
- You need workflows:create permission
- Target devices must be registered
- Plan limits apply to number of scheduled rules
How Scheduled Rules Work
⏰ Schedule triggers
↓
🔄 Infodeck executes at scheduled time
↓
⚡ Run configured actions
↓
📝 Log execution
Step-by-Step: Create a Time-Based Workflow
Step 1: Open Smart Workflows
- Click Smart Workflows in the sidebar
- Click Create Smart Workflow
- Select Time-Based trigger type
Step 2: Enter Workflow Details
| Field | Required | Description |
|---|---|---|
| Name | Yes | Workflow name (e.g., "Morning Sensor Check") |
| Tags | No | Tags for organizing workflows |
Step 3: Configure Schedule
Choose schedule type:
Cron-Based Schedule
Run at specific times:
| Field | Options | Example |
|---|---|---|
| At Hours | 0-23 | 9 (9:00 AM) |
| At Minutes | 0-59 | 0 (on the hour) |
| Days of Month | 1-31, or empty for all | [1, 15] (1st and 15th) |
Rate-Based Schedule
Run at regular intervals:
| Interval | Use Case |
|---|---|
| Every 5 minutes | High-frequency checks |
| Every hour | Regular status updates |
| Every day | Daily reports |
Step 4: Add Actions
Click Add Action:
| Action Type | Description |
|---|---|
| Enqueue Command | Send command to IoT device |
| Send Notification | Alert users or teams |
| Generate Report | Create scheduled report |
Step 5: Save the Workflow
Choose how to save your workflow:
| Button | Description |
|---|---|
| Save as draft | Save without activating — workflow won't run |
| Create | Save and activate — schedule becomes active immediately |
Real-World Examples
Example 1: Daily Sensor Wake-Up Command
Situation: Battery-powered sensors sleep overnight to conserve power. You need them active by 6 AM when the facility opens.
Solution:
- Create Time-Based Workflow:
- Name:
Morning Sensor Activation
- Name:
- Configure schedule:
- At Hours: 6
- At Minutes: 0
- Days: All (empty = every day)
- Add action:
- Type: Enqueue Command
- Devices: All facility sensors
- Command: Wake Up / Force Uplink
- Click Create to activate
Result: Every morning at 6 AM, all sensors receive wake-up commands and begin sending data before staff arrive.
Example 2: Weekly Energy Report
Situation: Sustainability team needs a weekly summary of energy consumption for reporting.
Solution:
- Create Time-Based Workflow:
- Name:
Weekly Energy Summary
- Name:
- Configure schedule:
- At Hours: 8
- At Minutes: 0
- Days of Month: [1, 8, 15, 22, 29] (every Monday approximately)
- Add action:
- Type: Send Notification
- Recipients: Sustainability Team
- Message: "Weekly energy report is ready"
- Click Create to activate
Result: Team receives notification every Monday morning to review energy data.
Example 3: Monthly Device Health Check
Situation: IT needs to verify all IoT devices respond on the first of each month for compliance.
Solution:
- Create Time-Based Workflow:
- Name:
Monthly Device Health Check
- Name:
- Configure schedule:
- At Hours: 2 (2 AM to minimize disruption)
- At Minutes: 0
- Days of Month: [1] (first of month only)
- Add actions:
- Action 1: Enqueue "Status Request" to all devices
- Action 2: Notify IT Team "Monthly device check initiated"
- Click Create to activate
Result: On the 1st of each month at 2 AM, all devices receive status requests and IT is notified.
Example 4: End of Shift Sensor Interval Reduction
Situation: Sensors report every 5 minutes during work hours but should switch to hourly reporting overnight to save bandwidth.
Solution:
- Create two scheduled rules:
Rule 1 - Evening Reduction:
- Name:
Evening - Reduce Reporting - Schedule: 18:00 (6 PM)
- Action: Send "Set Interval 1hr" command
Rule 2 - Morning Restoration:
- Name:
Morning - Restore Reporting - Schedule: 06:00 (6 AM)
- Action: Send "Set Interval 5min" command
Result: Sensors automatically switch between high-frequency (day) and low-frequency (night) reporting.
Schedule Configuration Reference
Cron Fields
| Field | Range | Example |
|---|---|---|
| Hours | 0-23 | 9 = 9:00 AM |
| Minutes | 0-59 | 30 = half past |
| Days of Month | 1-31 | [1] = 1st only |
Common Schedule Patterns
| Pattern | Configuration |
|---|---|
| Every day at 9 AM | Hours: 9, Minutes: 0, Days: (empty) |
| Weekdays at noon | Hours: 12, Minutes: 0, Days: (empty), with weekday filter |
| 1st of month at midnight | Hours: 0, Minutes: 0, Days: [1] |
| Every 4 hours | Rate: 4 hours |
Action Configuration
Enqueue Device Command
| Field | Description |
|---|---|
| Asset | Target IoT device |
| Action Name | Command from Asset Type |
| fPort | LoRaWAN frame port |
| Payload | Hex command data |
| Confirmed | Require acknowledgment |
Send Notification
| Field | Description |
|---|---|
| Recipients | Users or teams |
| Channel | Email, Push, or Both |
| Message | Notification content |
Managing Time-Based Workflows
View All Schedules
- Click Smart Workflows in the sidebar
- Filter by type: Time-Based
- See all scheduled workflows with next run time
Edit Schedule
- Click on the workflow row
- Modify schedule or actions
- Click Save
- Next execution uses new settings
Pause a Schedule
- Find the workflow
- Toggle the status switch to disable
- Workflow won't run until re-enabled
Delete Schedule
- Select the workflow checkbox
- Click Delete button
- Confirm deletion
Execution Monitoring
View Execution History
- Open the scheduled rule
- Navigate to History or Logs tab
- See past executions with:
- Execution time
- Success/failure status
- Actions performed
- Error messages (if any)
Common Execution Statuses
| Status | Meaning |
|---|---|
| Success | All actions completed |
| Partial | Some actions failed |
| Failed | Execution error |
| Skipped | Rule was disabled |
Troubleshooting
Schedule Not Running
| Issue | Cause | Solution |
|---|---|---|
| Workflow disabled | Status is Draft or off | Activate the workflow |
| Wrong time zone | Server time mismatch | Verify time settings |
| Past schedule | One-time schedule passed | Update schedule |
Actions Not Executing
| Issue | Cause | Solution |
|---|---|---|
| Device offline | Can't receive commands | Check device status |
| Invalid command | Wrong payload | Verify command config |
| Permission error | Insufficient access | Check workflow permissions |
Missed Executions
| Issue | Cause | Solution |
|---|---|---|
| System maintenance | Scheduled during downtime | Adjust schedule time |
| Rate limiting | Too many rules at same time | Stagger execution times |
Best Practices
Scheduling Tips
| Practice | Benefit |
|---|---|
| Stagger rule times | Avoid system overload |
| Use off-peak hours for bulk operations | Reduce impact |
| Test with disabled status first | Validate before going live |
| Add buffer time for dependent actions | Ensure sequence completes |
Naming Conventions
| Good | Avoid |
|---|---|
Daily 6AM - Sensor Wake Up | Schedule 1 |
Weekly Monday - Energy Report | Report rule |
Monthly 1st - Device Check | Check |
Plan Limits
| Plan | Time-Based Workflows |
|---|---|
| Lite | ❌ Not available |
| Basic | 5 |
| Professional | 20 |
| Enterprise | Unlimited |
Time-based trigger workflows require Basic plan or above.
Related Articles
Need help? Contact Infodeck Support