Automation
New Automation items can be added.
Automation
Automations provide a method to automate tasks and action.
- Trigger data - The model data that will trigger (start) this automation.
Commands
Properties
Enable
Enable this automation.
- Data type: boolean
- Default:
true - Configuration
CLI: (cli)> config automation <key> enable
Label
The label used to describe and locate this automation.
- Data type: string
- Configuration
- Optional
CLI: (cli)> config automation <key> label
Running
The run status of this automation.
| Option | Label |
|---|---|
true | Running |
false | Not running |
- Data type: boolean
- Status
CLI: (cli)> show automation <key> running
Error
The error associated with the recent failed run.
- Data type: string
- Status
CLI: (cli)> show automation <key> error
Script
The javascript automation source.
- Data type: string
- Default:
console.log(data) - Configuration
- Required
CLI: (cli)> config automation <key> script
Run schedule
Run the automation action on a schedule.
- Data type: string
- Configuration
- Optional
CLI: (cli)> config automation <key> schedule
Run on start
Run the automation action immediately after boot up or the automation is added.
- Data type: boolean
- Default:
true - Configuration
CLI: (cli)> config automation <key> run-on-start
