Property description
The automations property allows you to define your automation rules. While you can configure multiple rules in one JSON file, we recommend one rule per file for easier management.
Minimal JSON
{
"schema": "https://schema.dawiso.com/automation-schema.json",
"automations": [
{
"key": "",
"name": ""
}
]
}
Nested properties
| Property | Description | Values | Mandatory |
|---|---|---|---|
key | Unique key of the automation rule. | string | Yes |
name | Name of the asset, used as the default EN translation. | string | Yes |
action | Actions the automation will execute when all conditions and rules are satisfied. | array | No |
description | Description of the rule. | string | No |
sortOrder | Order of the rule execution. | integer | No |
state | Current status of the rule. Supported options are: active: The rule is active., inactive: The rule is inactive and hidden. | string | No |
stream | Automation conditions, selections, and filters. | array | No |
triggers | Triggers of the automation rule. | array | No |
Circuit-breaker
Automation rules include a built-in circuit-breaker. If a rule fails 3 consecutive times, it is automatically disabled. The task log records: “Circuit breaker tripped: the last 3 runs failed. The automation has been disabled and must be re-enabled manually.”
To re-enable the rule, open it and toggle it back on. The failure threshold can be adjusted per environment in the environment configuration (env_config).