Complete documentation overhaul.
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
# `automations`
|
||||
|
||||
Automatically take [actions](actions.md) based on [conditions](conditions.md) being met.
|
||||
|
||||
?> To change configuration conditionally use [overrides](overrides.md).
|
||||
|
||||
```yaml
|
||||
automations:
|
||||
- conditions:
|
||||
- [condition]
|
||||
actions:
|
||||
- [action]
|
||||
actions_not:
|
||||
- [action]
|
||||
```
|
||||
|
||||
| Option | Default | Description |
|
||||
| - | - | - |
|
||||
| `conditions` | | A list of [conditions](conditions.md) that must evaluate to `true` in order to trigger the automation. |
|
||||
| `actions` | | An optional list of [actions](actions.md) that will be run when the [conditions](conditions.md) evaluate `true`. |
|
||||
| `actions_not` | | An optional list of [actions](actions.md) that will be run when the [conditions](conditions.md) evaluate `false`. |
|
||||
|
||||
# Fully expanded reference
|
||||
|
||||
[](common/expanded-warning.md ':include')
|
||||
|
||||
```yaml
|
||||
automations:
|
||||
- conditions:
|
||||
- condition: fullscreen
|
||||
fullscreen: true
|
||||
actions:
|
||||
- action: custom:frigate-card-action
|
||||
frigate_card_action: live_substream_on
|
||||
actions_not:
|
||||
- action: custom:frigate-card-action
|
||||
frigate_card_action: live_substream_off
|
||||
```
|
||||
Reference in New Issue
Block a user